Skip to content

Commit 4684c80

Browse files
committed
chore: sync command count after rebase
1 parent 97a5461 commit 4684c80

6 files changed

Lines changed: 15 additions & 15 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
> **Before an AI writes a new class/id/function, CodeLens must be checked. This is not optional.**
44
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 69 CLI commands, an MCP server with 67 tools (54 static + 13 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 72 CLI commands, an MCP server with 70 tools (54 static + 16 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).
66

77
## Features
88

9-
- **69 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 (67 Tools)** — Native AI agent integration via Model Context Protocol (JSON-RPC over stdio), 54 statically-defined tools + 13 dynamically discovered, every tool accepts a `format` parameter (`json`/`markdown`/`ai`/`sarif`/`compact`)
9+
- **72 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 (70 Tools)** — Native AI agent integration via Model Context Protocol (JSON-RPC over stdio), 54 statically-defined tools + 16 dynamically discovered, every tool accepts a `format` parameter (`json`/`markdown`/`ai`/`sarif`/`compact`)
1111
- **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)
1212
- **AST Taint Engine** — Tree-sitter based taint analysis with return-value propagation, scope hierarchy, and branch condition refinement
1313
- **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/
225225
│ ├── changelog.md # Older changelog (per-version highlights)
226226
│ └── agent-integration.md # AI agent integration guide
227227
├── scripts/
228-
│ ├── codelens.py # CLI entry point (69 commands registered)
229-
│ ├── mcp_server.py # MCP JSON-RPC server (67 tools)
228+
│ ├── codelens.py # CLI entry point (72 commands registered)
229+
│ ├── mcp_server.py # MCP JSON-RPC server (70 tools)
230230
│ ├── registry.py # Registry read/write/build
231231
│ ├── persistent_registry.py # SQLite persistent storage (WAL mode)
232232
│ ├── base_parser.py # Base tree-sitter parser

SKILL-QUICK.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ $CLI list --limit 5 --offset 10 --format compact # → paginated + co
115115
| "Cross-file taint" | `dataflow` | `taint` (taint is single-file, AST-deep) |
116116
| "Auto-fix issues" | `fix` | `check` (check just gates, doesn't fix) |
117117

118-
## All 69 Commands
118+
## All 72 Commands
119119

120120
### Setup & Lifecycle (8+)
121121
`init` · `scan [--incremental] [--max-files N] [--full]` · `registry-validate` · `detect` · `watch [--debounce SECS] [--git-mode] [--interval SECS]` · `git-status` · `migrate` · `serve` · `lsp-status` (issue #33: `codelens --lsp-status` top-level flag is an alias of `codelens lsp-status` — both delegate to `hybrid_engine.get_lsp_status()` and return the identical payload)
@@ -147,19 +147,19 @@ $CLI list --limit 5 --offset 10 --format compact # → paginated + co
147147
### Tooling (1)
148148
`plugin <install|list|search|update|info|validate>`
149149

150-
**Total: 69 commands** (auto-registered via `commands/__init__.py`; rerun `python3 scripts/sync_command_count.py --apply` after adding/removing a command)
150+
**Total: 72 commands** (auto-registered via `commands/__init__.py`; rerun `python3 scripts/sync_command_count.py --apply` after adding/removing a command)
151151

152-
## MCP Server (67 Tools)
152+
## MCP Server (70 Tools)
153153

154154
Start the MCP server for AI agent integration:
155155

156156
```bash
157157
python3 scripts/codelens.py serve
158158
```
159159

160-
Exposes 67 tools as `codelens_<command>` (e.g., `codelens_query`, `codelens_taint`, `codelens_graph_schema`, `codelens_architecture`, `codelens_resolve_types`, `codelens_git_status`):
160+
Exposes 70 tools as `codelens_<command>` (e.g., `codelens_query`, `codelens_taint`, `codelens_graph_schema`, `codelens_architecture`, `codelens_resolve_types`, `codelens_git_status`):
161161
- 50 statically-defined tools (full JSON schemas in `mcp_server.py`)
162-
- 13 dynamically-discovered tools (auto-discovered from `COMMAND_REGISTRY`; long-running `watch` and `serve` are excluded)
162+
- 16 dynamically-discovered tools (auto-discovered from `COMMAND_REGISTRY`; long-running `watch` and `serve` are excluded)
163163
- Every tool accepts a `format` parameter (`json`/`markdown`/`ai`/`sarif`/`compact`). Use `format: "compact"` for token-efficient responses (~50% smaller than `json`).
164164
- `watch` and `serve` itself are excluded (long-running)
165165

SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
name: codelens
33
description: >
4-
CodeLens — AI-Native Code Intelligence. 69 commands for AI-powered code analysis,
4+
CodeLens — AI-Native Code Intelligence. 72 commands for AI-powered code analysis,
55
security auditing, quality scoring, AST-based taint analysis, live CVE scanning,
66
and pre-write safety checks. Supports 28+ languages with tree-sitter + regex
7-
fallback parsing. MCP server exposes 67 tools for AI agent integration.
7+
fallback parsing. MCP server exposes 70 tools for AI agent integration.
88
For quick command reference with validated output schemas, see SKILL-QUICK.md.
99
For version history, see CHANGELOG.md.
1010
---

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "codelens"
77
version = "8.2.0"
8-
description = "Live Codebase Reference Intelligence — 69 commands for AI-powered code analysis, security auditing, and quality scoring"
8+
description = "Live Codebase Reference Intelligence — 72 commands for AI-powered code analysis, security auditing, and quality scoring"
99
readme = "README.md"
1010
license = {text = "MIT"}
1111
requires-python = ">=3.8"

scripts/graph_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- New tables `graph_nodes` and `graph_edges` are additive (prefixed `graph_`
1414
to avoid colliding with any existing table name).
1515
- The flat registry tables and JSON files are untouched.
16-
- All 69 existing CLI commands continue to work unchanged.
16+
- All 72 existing CLI commands continue to work unchanged.
1717
1818
Schema:
1919
graph_nodes(

skill.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "codelens",
33
"version": "8.2.0",
4-
"description": "Live Codebase Reference Intelligence. 69 commands for AI-powered code analysis, security auditing, quality scoring, and pre-write safety checks. Supports 28+ languages with regex+AST hybrid parsing. Must activate before writing/editing/deleting any class, id, or function.",
4+
"description": "Live Codebase Reference Intelligence. 72 commands for AI-powered code analysis, security auditing, quality scoring, and pre-write safety checks. Supports 28+ languages with regex+AST hybrid parsing. Must activate before writing/editing/deleting any class, id, or function.",
55
"author": "codelens",
66
"command_categories": {
77
"setup": [

0 commit comments

Comments
 (0)