Skip to main content

code-review-graph

Local code graph so AI coding tools read only what matters

Code / DevToolsFreeOpen source

code-review-graph builds a persistent, local map of your codebase and exposes it over MCP and a CLI, so AI coding tools can pull only the relevant code for reviews and large-repo work instead of reading everything.

Key specs
32,729 GitHub stars source
as of 2026-11-12

What we know

LicenseMITsource, checked 2026-11-30
Open sourceYessource, checked 2026-11-30
PricingFreefrom our original listing, not yet re-checked
GitHub stars32,987source, checked 2026-11-30

Overview

code-review-graph builds a structural map of your codebase so AI coding tools can read only what matters. When an agent reviews a change, it can ask which callers, dependents and tests the change reaches, with a risk score, instead of scanning whole directories. The graph updates incrementally through hooks or watch mode.

Key capabilities

  • Code graph: functions, classes, imports, calls and tests in one graph.
  • Impact analysis: shows what a change can break, with a risk score.
  • Incremental updates: re-parses only changed files.
  • One-step install: detects your AI tools and writes their MCP config, hooks and skills.
  • Clean uninstall: removes only its own files and entries, with a dry-run preview.

Tradeoffs

  • The install writes config files (such as .claude/ and .mcp.json) into your repo; decide whether to commit them.
  • Needs Python 3.10+ even for JavaScript projects.
  • The graph must be built before it helps, and kept fresh.

Ideal for

  • AI-assisted code review on medium and large repos
  • Cutting agent token use on big codebases
  • Teams using several AI coding tools at once

Not ideal for

  • Tiny projects
  • Environments where you can't install Python tooling

Getting started

  1. Install with pip install code-review-graph (or pipx install code-review-graph). Python 3.10+ is required.
  2. Run code-review-graph install. It detects your AI coding tools and writes their MCP config, hooks and skills; pass --platform cursor (or another name) to set up just one.
  3. Run code-review-graph build to parse the codebase.
  4. Ask your agent to review a change. To remove everything later, run code-review-graph uninstall --dry-run first, then uninstall.

Technical notes

  • Install: pip install code-review-graph, then code-review-graph install and build
  • Storage: local SQLite
  • License: MIT
  • Source: tirth8205/code-review-graph
  • GitHub stars: 32,729 (as of 2026-11-12)

FAQ

What does code-review-graph actually do?

It parses your code with Tree-sitter into a graph of functions, classes, imports, calls and tests, stored in one local SQLite file. AI coding tools query it over MCP to see what a change can affect instead of re-reading large parts of the codebase.

Which AI tools does it support?

Its installer configures many, including Claude Code, Codex, Cursor, Windsurf, Zed, Continue, Gemini CLI, Qwen Code and Kiro.

Does my code leave my machine?

No. The graph is a local SQLite file; cloud embeddings are opt-in.

Alternatives

Is your tool an alternative to code-review-graph? Sponsor this spot for 30 days, marked Sponsored.

Integrations

None listed.

Built on

None listed.

For the team behind code-review-graph

Growth plan: from $399 a month

SEO, AI search (how ChatGPT, Perplexity and Google describe code-review-graph), UX, CRO and support from one account manager, with a monthly report. Includes a Featured launch on db.fyi. Starts with a free audit.

Founding offer: $299 a month for your first 3 months, plus a free case study.

Get a free audit

Listed 2026-11-12 · updated 2026-11-12