← Back to Catalog

tirth8205/code-review-graph

↗ GitHub

Local knowledge graph for Claude Code. Builds a persistent map of your codebase so Claude reads only what matters — 6.8× fewer tokens on reviews and up to 49× on daily coding tasks.

3,932

Stars

345

Forks

21

Watchers

8

Open Issues

Python·MIT License·Last commit Mar 31, 2026·by @tirth8205·Published April 1, 2026·Analyzed 6d ago
A

Safety Rating A

No hardcoded secrets, malicious code patterns, suspicious dependencies, or prompt injection attempts were identified. The project is a straightforward open-source developer tool with MIT license, standard Python packaging, CI via GitHub Actions, and all data stored locally in SQLite. The README contains no embedded instructions targeting AI analysts.

AI-assisted review, not a professional security audit.

AI Analysis

code-review-graph is a local knowledge graph tool for AI coding assistants (Claude Code, Cursor, Windsurf, etc.) that parses codebases into a structural graph using Tree-sitter, stores it in SQLite, and exposes it via the Model Context Protocol (MCP). It performs blast-radius analysis to identify the minimal set of files relevant to a change, enabling significant token reductions (averaging 8.2× vs naive full-codebase reads). It supports 19 programming languages plus Jupyter notebooks, incremental updates triggered by git hooks or file watches, semantic search via vector embeddings, community detection, execution flow tracing, refactoring previews, and multi-repo cross-search.

Use Cases

  • Reducing token consumption when using LLM coding assistants on large codebases
  • Performing precise, blast-radius-aware AI code reviews
  • Incrementally indexing and querying code structure without re-reading entire repos
  • Generating architecture overviews and markdown wikis from code community structure
  • Detecting risky changes and test coverage gaps before merging pull requests
  • Enabling semantic and full-text search over code entities across multiple repositories

Tags

#knowledge-graph#mcp#code-generation#llm#local-first#static-analysis#rag#embeddings#vector-database#cli-tool#database#context-engineering

Project Connections