
# CodeMore
### The static analyzer your AI agent reads.
AI agents ship code fast — and ship bugs fast. CodeMore scans the code, then hands the **agent that wrote it** a machine-readable report with the exact fix and the criteria to verify it. The agent closes its own findings.
[**Website**](https://codemore.tech) · [**Docs**](https://codemore.tech/docs) · [**Rule Catalog**](docs/rules) · [**Report Schema**](docs/schema.md) · [**Changelog**](CHANGELOG.md)
[](https://www.npmjs.com/package/codemore)
[](LICENSE)
[](docs/rules)
[](docs/external-tools.md)
[](accuracy-report-2026-07-07.md)
[](accuracy-report-2026-07-07.md)
```bash
npx codemore@latest scan .
```
**64 native rules · 8 external adapters · CLI · MCP server · VS Code extension · GitHub Action — one report, byte-identical on every surface.**
---
## Table of contents
- [Why CodeMore](#why-codemore)
- [Quick start](#quick-start) — [CLI](#cli) · [MCP server](#mcp-server--cursor-claude-code-codex-claude-desktop) · [VS Code](#vs-code-extension) · [GitHub Action](#github-action) · [Hosted](#web-scanner-hosted)
- [What it catches](#what-it-catches)
- [The report is the product](#the-report-is-the-product)
- [Agentic fix loop](#agentic-fix-loop)
- [Accuracy, measured honestly](#accuracy-measured-honestly)
- [What CodeMore does *not* catch](#what-codemore-does-not-catch)
- [Architecture](#architecture)
- [Development](#development) · [Contributing](#contributing) · [License](#license)
---
## Why CodeMore
AI-assisted coding ships vulnerabilities at a measured, growing rate:
| Finding | Source |
|---|---|
| **45%** of AI-generated code carries an OWASP Top-10 vulnerability | Veracode 2025/26 |
| **98%** of 1,072 scanned vibe-coded sites had ≥ 1 security flaw | Symbiotic |
| **70%** of audited Lovable apps shipped with Supabase RLS disabled | DEV |
| **2×** baseline secret-leak rate on AI-tool-assisted commits | GitGuardian SOSS 2026 |
| **35 CVEs/month** attributed to AI-generated code (was 6/month in January) | March 2026 |
Existing scanners (SonarQube, DeepSource, Snyk) target **human reviewers sitting at dashboards**. But this code wasn't written by a human — and the LLM that wrote it is fully capable of fixing its own bug, *if the report is shaped for a machine reader*.
That's the wedge. CodeMore is not another SAST dashboard. **It's the report contract between a scanner and a coding agent**: every finding carries a `suggestedFix` with a patch template and explicit `verificationCriteria` — not just "here's a problem," but "here's exactly how to know you fixed it."
> **The agent that wrote the bug can also write the fix — if it can read the report.**
---
## Quick start
### CLI
```bash
npx codemore@latest scan .
```
Prints a summary to the terminal. Add `--json` for the full [report](docs/schema.md) on stdout, or `--out codemore-report.json` to write it to disk: every finding pinned to `file:line:column` with rule citation, fix template, and verification criteria. Pipe it to your agent and watch findings close.
```bash
npm install -g codemore # once — or prefix each command below with `npx codemore@latest`
codemore update # global install pinned an old version? this pulls latest
codemore scan . --fail-on BLOCKER # CI gate: non-zero exit on any BLOCKER
codemore scan . --external-tools ruff,biome # opt in to external tools
codemore scan . --external-tools all # ruff · golangci-lint · clippy · biome · bandit · gitleaks · npm-audit · pip-audit
codemore scan . --format sarif --out codemore.sarif # GitHub code scanning (upload-sarif)
codemore fix . --rule