oc-pilot weekly downloads statistics
By MyNameIsNikki · npm · Claude Code
Local AI code review, tested fixes, test-failure analysis and secret scanning for agent CLIs
oc-pilot has 7,440 recorded weekly downloads on npm, an increase of 2038% over the past 30 days, ranking #1391 of 3,247 tracked listings.
About oc-pilot
oc-pilot: a quality gate for AI-generated code
Русский · Command reference · Integrations · Changelog
oc-pilot is a local CLI and MCP server that acts as an immune system for code written by AI agents. Run it before a commit or PR to catch leaked secrets, weakened tests, risky dependency changes, and other problems in the diff. Use the report to decide what to fix and what still needs human review.
The CLI runs on Node.js 22+ with zero runtime dependencies. Use Git for repository checks. The standard preflight checks do not need a model, a provider account, or network access once the package is installed.
Quick start
From your project directory, run:
npx oc-pilot
This shows the AI Hygiene Score, up to three issues, and one suggested next command. The quick check examines tracked changes relative to HEAD (only staged changes before the first commit) without invoking a model or running tests. An empty or oversized diff does not get a score. Use npx oc-pilot --help for the command overview or npx oc-pilot demo for a walkthrough. To run the pre-commit checks:
npx oc-pilot check preflight --staged
Stage the files you intend to commit first. If nothing is staged, a staged check tells you nothing about your unstaged work. Use --unstaged for unstaged tracked changes, or --base main to review a committed branch against its base (substitute your branch name).
The gate reports which checks passed or need attention. If it flags a change, fix the underlying issue and run the same command again. For example, restore a weakened assertion rather than silencing the check. Keep running your project's usual tests; preflight's test inspection is not a replacement for executing the suite.
Main commands
Use npx oc-pilot in place of oc-pilot if you have not installed the binary. These examples use the grouped CLI; in a source checkout, build with npm ci and npm run build, then use node dist/cli.js instead.
| Command | When to use it |
|---|---|
oc-pilot check preflight --staged | Run the offline gate on what you are about to commit. |
oc-pilot fix patch --staged | Ask a configured model to propose a patch without applying it. |
oc-pilot security scan --staged | Look for exposed secrets in staged changes. |
oc-pilot test guard --staged | Look for removed or weakened test checks. |
oc-pilot arch boundaries | Check module boundaries against project rules. |
oc-pilot chaos butterfly --command "npm test" | Run your own tests with local fault injection. |
oc-pilot mcp serve --read-only | Start the local MCP server for an agent. |
Run oc-pilot help check preflight to see flags, oc-pilot lab --help for specialized workflows, or oc-pilot help all for the legacy command list. Existing top-level aliases still work. See the command reference for options and examples.
Connect an MCP client
These examples run the same stdio server in read-only mode. Replace /absolute/path/to/project with the repository path. In Windows JSON configuration, forward slashes work in absolute paths such as C:/work/project. If your client cannot launch npx directly on Windows, use a built checkout and launch node with the absolute path to dist/mcp.js, followed by the server flags.
Cursor
Merge this server into your project's .cursor/mcp.json, preserving any existing entries:
{
"mcpServers": {
"oc-pilot": {
"command": "npx",
"args": ["-y", "oc-pilot", "mcp", "--read-only", "--cwd", "/absolute/path/to/project"]
}
}
}
Claude Code
From the repository, register the server and verify that Claude Code can see it:
claude mcp add oc-pilot -- npx -y oc-pilot mcp --read-only --cwd .
claude mcp list
OpenCode
In OpenCode V2, merge this entry into your project's opencode.jsonc, then check the connection with opencode mcp list:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"oc-pilot": {
"type": "local",
"command": ["npx", "-y", "oc-pilot", "mcp", "--read-only", "--cwd", "."]
}
}
}
}
Start by asking your agent to run check on staged changes and summarize the verdict. The compact profile advertises six tools: check, review, scan, test_guard, boundaries, and flight_prove. If an existing integration needs another tool, append --mcp-profile=full to the server arguments. This changes the catalog, not write permissions. The integration guide covers other clients, HTTP, engines, and CI.
Local checks, models, and CI
- Use the offline gate if code must stay local. Model-backed review and patch generation use your configured engine; review its data handling before using it on private code.
- Preview a proposed patch before opting in to
--apply. Run commands that execute project tests only in a checkout you trust. - Once the gate works locally, pin the version you tested in CI. Use an explicit base ref for PR checks and fetch enough Git history to resolve it. See the CI examples.
Description from the npm listing.
- opencode
- code-review
- ai
- cli
- docgen
- test-fix
- secret-scanning
- git-diff
- ci
- mcp
- model-context-protocol
- claude-code
- codex
- cursor
- gemini-cli
- vibe-coding
- ai-code-review
- fix
- docker
- github-actions
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (135)Similar npm Claude Code plugins
All 20 oc-pilot alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/oc-pilot. First seen Nov 16, 2026; last successful collection Dec 6, 2026. See the methodology.