Local code knowledge graph that gives AI coding tools precise review context over MCP
open sourceMITfreeMCP
code-review-graph builds a structural map of a codebase with Tree-sitter (functions, classes, imports, calls and tests in one graph) so AI coding tools read only what matters instead of re-reading large parts of the repository to review a change. It shows what a change can break (the callers, dependents and tests it reaches, with a risk score), stays current through hooks and a watch mode that re-parse only changed files, and serves it all over MCP and a CLI; one install sets up each AI tool it finds. It keeps everything in one local SQLite file, with cloud embeddings opt-in, and has a GitHub Action.
Problems it solves
- give Claude Code only the relevant context for a code review
- see what a change can break before merging
- reduce the tokens my AI coding agent spends reading a large repo
Features
- Tree-sitter graph of functions, classes, imports, calls and tests
- blast radius and risk score for a change
- incremental updates via hooks and watch mode
- MCP server and CLI
- local SQLite, no cloud service
- GitHub Action
Capabilities
| Has an MCP server | plan not known |
|---|
Alternatives
The same job
These do what code-review-graph does.
