Of everything in this space, code-review-graph is the closest to TokenSave in philosophy: a local, symbol-level graph in SQLite, queried by the agent through specialised MCP tools. It is also, by a wide margin, the more popular project. The differences are implementation language, analysis depth, and what each one thinks the graph is for.
TokenSave v7.12.1 · code-review-graph v2.3.8 (PyPI, Sep 2026)| Dimension | TokenSave | code-review-graph |
|---|---|---|
| Implementation | Rust, single static binary | Python 3.10+ |
| Runtime deps | None — OS libraries only | Python interpreter + tree-sitter bindings |
| License | MIT | MIT |
| Adoption | ~640 stars | ~31,500 stars |
| MCP tools | 87 | 30 |
| Languages | 60 | 40+, plus Jupyter/Databricks notebooks |
| Storage | libSQL, WAL, FTS5, async | SQLite |
| Multi-repo | One project at a time | Registry + cross-repo search |
| Clustering | Coupling and DSM analysis | Leiden communities, recursive split |
| Execution flows | Call traversal only | Named, criticality-ranked flows |
| Doc generation | doc_coverage measures existing docs | Wiki generation from the graph |
| MCP prompts | None | 5 templates |
| Framework awareness | Generic extraction across 60 grammars | Laravel PSR-4, Spring DI |
| Multi-branch | Per-branch graphs, cross-branch diff | No |
| Edit primitives | 4 atomic writers, re-index in place | refactor / apply_refactor |
| Published benchmarks | tokensave bench, reproducible on your repo | ~63x median reduction, F1 0.69 |
callers, callees, impact, call_chain — but never assembles them into ranked flows. Their own numbers put flow detection around 33% recall, so treat it as a lead generator rather than ground truth.PreToolUse hook that fires on every Agent, Grep and Bash call and redirect symbol-shaped searches into the graph. Pay a Python cold start on every tool call and that design stops being viable — which is why code-review-graph is invoked deliberately rather than reflexively.find_large_functions.you work across several repositories, you want execution flows and named communities, you want generated wiki documentation, you value framework-aware extraction for PHP or Java, or you simply want the project with the largest community behind it.
you want the graph invoked reflexively rather than deliberately, you need deep per-symbol quality metrics, you work across branches and worktrees, or you want the agent to edit code with the graph staying true afterwards.
Every TokenSave figure on this page was verified against the source at origin/master
(v7.12.1), not taken from its own README:
test_tool_definitions_complete in src/mcp/tools/handlers/mod.rs; 86 when the optional ast-grep binary is absent from PATH.[features] tiers in Cargo.toml: 11 lite, 9 medium, 40 full. The README's "50+" is conservative.real time for a complete tokensave status invocation, best of repeated runs on an Apple Silicon Mac. Your hardware and repo size will differ.otool -L on the released binary; system frameworks only.