|
2 | 2 |
|
3 | 3 | > **Before an AI writes a new class/id/function, CodeLens must be checked. This is not optional.** |
4 | 4 |
|
5 | | -CodeLens is an AI-native code intelligence platform that gives AI agents **full visibility** into a codebase before they write any code. It prevents collision, overwrite of existing logic, security vulnerabilities, and dead code through 71 CLI commands, an MCP server with 69 tools (54 static + 15 dynamic), AST-based taint analysis, live CVE/OSV scanning, a plugin system with OWASP Top 10 + Compliance rule packs, a true graph data model (nodes + edges) for structural code queries, and token-efficient `--format compact` output for high-volume agent workflows (issue #17). |
| 5 | +CodeLens is an AI-native code intelligence platform that gives AI agents **full visibility** into a codebase before they write any code. It prevents collision, overwrite of existing logic, security vulnerabilities, and dead code through 77 CLI commands, an MCP server with 75 tools (56 static + 19 dynamic), AST-based taint analysis, live CVE/OSV scanning, a plugin system with OWASP Top 10 + Compliance rule packs, a true graph data model (nodes + edges) for structural code queries, and token-efficient `--format compact` output for high-volume agent workflows (issue #17). |
6 | 6 |
|
7 | 7 | ## Features |
8 | 8 |
|
9 | | -- **71 CLI Commands** — From basic scan/query to AST taint analysis, CVE scanning, plugin management, auto-fix, dashboards, CI/CD quality gates, and `graph-schema` for cheap graph-shape introspection |
10 | | -- **MCP Server (69 Tools)** — Native AI agent integration via Model Context Protocol (JSON-RPC over stdio), 54 statically-defined tools + 15 dynamically discovered, every tool accepts a `format` parameter (`json`/`markdown`/`ai`/`sarif`/`compact`) |
| 9 | +- **77 CLI Commands** — From basic scan/query to AST taint analysis, CVE scanning, plugin management, auto-fix, dashboards, CI/CD quality gates, and `graph-schema` for cheap graph-shape introspection |
| 10 | +- **MCP Server (75 Tools)** — Native AI agent integration via Model Context Protocol (JSON-RPC over stdio), 56 statically-defined tools + 19 dynamically discovered, every tool accepts a `format` parameter (`json`/`markdown`/`ai`/`sarif`/`compact`) |
11 | 11 | - **Token-Efficient Compact Output (v8.2, issue #17)** — `--format compact` produces single-char-key JSON with abbreviated types, omitted null fields, and relative paths — ~50% smaller than `json` on real trace output. Combined with `--limit`/`--offset` pagination, 5 structural queries now cost <5k tokens (down from 30-80k) |
12 | 12 | - **AST Taint Engine** — Tree-sitter based taint analysis with return-value propagation, scope hierarchy, and branch condition refinement |
13 | 13 | - **Live CVE/OSV Scanning** — Real-time vulnerability data from OSV.dev API with SQLite cache, 9 ecosystems (PyPI, npm, crates.io, Go, Maven, NuGet, RubyGems, Pub, Hex) |
@@ -225,8 +225,8 @@ codelens/ |
225 | 225 | │ ├── changelog.md # Older changelog (per-version highlights) |
226 | 226 | │ └── agent-integration.md # AI agent integration guide |
227 | 227 | ├── scripts/ |
228 | | -│ ├── codelens.py # CLI entry point (71 commands registered) |
229 | | -│ ├── mcp_server.py # MCP JSON-RPC server (69 tools) |
| 228 | +│ ├── codelens.py # CLI entry point (77 commands registered) |
| 229 | +│ ├── mcp_server.py # MCP JSON-RPC server (75 tools) |
230 | 230 | │ ├── registry.py # Registry read/write/build |
231 | 231 | │ ├── persistent_registry.py # SQLite persistent storage (WAL mode) |
232 | 232 | │ ├── base_parser.py # Base tree-sitter parser |
|
0 commit comments