codegraph vs code-review-graph

Local code graphs for coding agents and AI reviews

codegraph and code-review-graph both build local SQLite graphs of repository structure and expose code context through MCP and a CLI. codegraph focuses on agent-driven code exploration and keeping an index current, while code-review-graph emphasizes review context, impact analysis, and pull request workflows.

codegraphcode-review-graph
LanguageCPython
LicenseMITMIT
Stars73.1k31.9k
Forks4.7k2.9k
Last analyzedOct 3, 2026Oct 3, 2026

Key differences

  • codegraph offers source retrieval, symbol paths, and affected-test discovery; code-review-graph adds review context, dead-code inspection, architecture overviews, and visualization exports.
  • codegraph watches files and incrementally syncs changes; code-review-graph supports incremental updates through hooks and watch mode.
  • code-review-graph includes a GitHub Action for risk-scored pull request comments; codegraph describes agent configuration for Claude Code, Cursor, Codex, Gemini, and GitHub Copilot.
  • codegraph is written in C and code-review-graph is written in Python; code-review-graph requires Python 3.10 or newer, while embedding codegraph's library requires Node.js 22.5 or later.
  • Both use the MIT license and store graph data locally by default. code-review-graph can optionally use external embedding providers, while codegraph reports anonymous usage telemetry by default with opt-out options.
  • The supplied project data lists 73.1k stars for codegraph and 31.9k for code-review-graph.

Choose codegraph if you…

  • want agents to retrieve relevant source, call paths, and potential change impact while exploring code.
  • need file watching and incremental index syncing for a project-specific code graph.
  • want CLI commands for tracing callers and callees or finding tests related to changed files.
Read the codegraph analysis →

Choose code-review-graph if you…

  • need focused AI review context and impact analysis across callers, dependents, and tests.
  • want a GitHub Action for risk-scored pull request review comments.
  • need CLI tools for dead-code discovery or exporting graph visualizations.
Read the code-review-graph analysis →

Compare the numbers side by side, or add more projects

This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.