code-review-graph
MCP ServerFreeLocal 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.
Capabilities12 decomposed
tree-sitter-based incremental codebase parsing with sha-256 change tracking
Medium confidenceParses source code using Tree-sitter AST parsing across 40+ languages, extracting structural entities (functions, classes, types, imports) and storing them in a persistent knowledge graph. Tracks file changes via SHA-256 hashing to enable incremental updates—only re-parsing modified files rather than rescanning the entire codebase on each invocation. The parser system maintains a directed graph of code entities and their relationships (CALLS, IMPORTS_FROM, INHERITS, CONTAINS, TESTED_BY, DEPENDS_ON) without requiring full re-indexing.
Uses Tree-sitter AST parsing with SHA-256 incremental tracking instead of regex or line-based analysis, enabling structural awareness across 40+ languages while avoiding redundant re-parsing of unchanged files. The incremental update system (diagram 4) tracks file hashes to determine which entities need re-extraction, reducing indexing time from O(n) to O(delta) for large codebases.
Faster and more accurate than LSP-based indexing for offline analysis because it maintains a persistent graph that survives session boundaries and doesn't require a running language server per language.
blast-radius impact analysis with dependency graph traversal
Medium confidenceWhen a file changes, the system traces the directed graph to identify all potentially affected code entities—callers, dependents, inheritors, and tests. This 'blast radius' computation uses graph traversal algorithms (BFS/DFS) to walk the CALLS, IMPORTS_FROM, INHERITS, DEPENDS_ON, and TESTED_BY edges, producing a minimal set of files and functions that Claude must review. The system excludes irrelevant files from context, reducing token consumption by 6.8x to 49x depending on repository structure and change scope.
Implements graph-based blast radius computation (diagram 3) that traces structural dependencies to identify affected code, rather than heuristic-based approaches like 'files in the same directory' or 'files modified in the same commit'. The system achieves 49x token reduction on monorepos by excluding 27,000+ irrelevant files from review context.
More precise than git-based impact analysis (which only tracks file co-modification history) because it understands actual code dependencies and can exclude files that changed together but don't affect each other.
evaluation framework with benchmark metrics and token reduction reporting
Medium confidenceIncludes an automated evaluation framework (`code-review-graph eval --all`) that benchmarks the tool against real open-source repositories, measuring token reduction, impact analysis accuracy, and query performance. The framework compares naive full-file context inclusion against graph-optimized context, reporting metrics like average token reduction (8.2x across tested repos, up to 49x on monorepos), precision/recall of blast radius analysis, and query latency. Results are aggregated and visualized in benchmark reports, enabling teams to understand the expected token savings for their codebase.
Includes an automated evaluation framework that benchmarks token reduction against real open-source repositories, reporting metrics like 8.2x average reduction and up to 49x on monorepos. The framework enables teams to understand expected cost savings and validate tool performance on their specific codebase.
More rigorous than anecdotal claims because it provides quantified metrics from real repositories and enables teams to measure performance on their own code, rather than relying on vendor claims.
graph storage and persistence with sqlite backend
Medium confidencePersists the knowledge graph to a local SQLite database, enabling the graph to survive across sessions and be queried without re-parsing the entire codebase. The storage layer maintains tables for nodes (entities), edges (relationships), and metadata, with indexes optimized for common query patterns (entity lookup, relationship traversal, impact analysis). The SQLite backend is lightweight, requires no external services, and supports concurrent read access, making it suitable for local development workflows and CI/CD integration.
Uses SQLite as a lightweight, zero-configuration graph storage backend with indexes optimized for common query patterns (entity lookup, relationship traversal, impact analysis). The storage layer supports concurrent read access and requires no external services.
Simpler than cloud-based graph databases (Neo4j, ArangoDB) because it requires no external services or configuration, making it suitable for local development and CI/CD pipelines.
mcp server integration with claude code and llm assistants
Medium confidenceExposes the knowledge graph as an MCP (Model Context Protocol) server that Claude Code and other LLM assistants can query via standardized tool calls. The MCP server implements a set of tools (graph management, query, impact analysis, review context, semantic search, utility, and advanced analysis tools) that allow Claude to request only the relevant code context for a task instead of re-reading entire files. Integration is bidirectional: Claude sends queries (e.g., 'what functions call this one?'), and the MCP server returns structured graph results that fit within token budgets.
Implements MCP server with a comprehensive tool suite (graph management, query, impact analysis, review context, semantic search, utility, and advanced analysis tools) that allows Claude to query the knowledge graph directly rather than relying on manual context injection. The MCP integration is bidirectional—Claude can request specific code context and receive only what's needed.
More efficient than context injection (copy-pasting code into Claude) because the MCP server can return only the relevant subgraph, and Claude can make follow-up queries without re-reading the entire codebase.
semantic search and embedding-based code retrieval
Medium confidenceGenerates embeddings for code entities (functions, classes, documentation) and stores them in a vector index, enabling semantic search queries like 'find functions that handle authentication' or 'locate all database connection logic'. The system uses embedding models (likely OpenAI or similar) to convert code and natural language queries into vector space, then performs similarity search to retrieve relevant code entities without requiring exact keyword matches. Results are ranked by semantic relevance and integrated into the MCP tool suite for Claude to query.
Integrates semantic search into the MCP tool suite, allowing Claude to discover code by meaning rather than keyword matching. The system generates embeddings for code entities and maintains a vector index that supports similarity queries, enabling Claude to find related code patterns without explicit keyword searches.
More effective than regex or keyword-based search for discovering related code patterns because it understands semantic relationships (e.g., 'authentication' and 'login' are related even if they don't share keywords).
watch mode with auto-update hooks for continuous graph synchronization
Medium confidenceMonitors the filesystem for code changes (via file watchers or git hooks) and automatically triggers incremental graph updates without manual intervention. When files are modified, the system detects changes via SHA-256 hashing, re-parses only affected files, and updates the knowledge graph in real-time. Auto-update hooks integrate with git workflows (pre-commit, post-commit) to keep the graph synchronized with the working directory, ensuring Claude always has current structural information.
Implements filesystem-level watch mode with git hook integration (diagram 4) that automatically triggers incremental graph updates without manual intervention. The system uses SHA-256 change detection to identify modified files and re-parses only those files, keeping the graph synchronized in real-time.
More convenient than manual graph rebuild commands because it runs continuously in the background and integrates with git workflows, ensuring the graph is always current without developer action.
code review context generation with token-optimized summaries
Medium confidenceGenerates concise, token-optimized summaries of code changes and their context by combining blast radius analysis with semantic search. Instead of sending entire files to Claude, the system produces structured summaries that include: changed code snippets, affected functions/classes, test coverage, and related code patterns. The summaries are designed to fit within Claude's context window while providing sufficient information for accurate code review, achieving 6.8x to 49x token reduction compared to naive full-file inclusion.
Combines blast radius analysis with semantic search to generate token-optimized code review context that includes changed code, affected entities, and related patterns. The system achieves 6.8x to 49x token reduction by excluding irrelevant files and providing structured summaries instead of full-file context.
More efficient than sending entire changed files to Claude because it uses graph-based impact analysis to identify only the relevant code and semantic search to find related patterns, resulting in significantly lower token consumption.
vs code extension with graph visualization and interactive exploration
Medium confidenceProvides a VS Code extension that visualizes the knowledge graph as an interactive diagram, allowing developers to explore code structure, dependencies, and impact analysis results directly in the editor. The extension displays nodes (files, functions, classes) and edges (relationships) in a visual format, supports filtering and search, and integrates with VS Code's code navigation (go-to-definition, find-references). Developers can click on entities to view details, trace dependencies, and understand code structure without leaving the editor.
Integrates graph visualization directly into VS Code as an extension, allowing developers to explore code structure interactively without leaving the editor. The extension supports filtering, search, and integration with VS Code's code navigation features.
More integrated than standalone graph visualization tools because it runs within VS Code and connects to the editor's code navigation, allowing developers to jump directly to code definitions from the graph.
multi-language support with language-agnostic graph schema
Medium confidenceSupports parsing and indexing code in 40+ programming languages (Python, JavaScript, TypeScript, Go, Rust, Java, C++, etc.) using language-specific Tree-sitter grammars, while maintaining a unified, language-agnostic graph schema. All languages are represented with the same node types (File, Class, Function, Type, Test) and edge types (CALLS, IMPORTS_FROM, INHERITS, CONTAINS, TESTED_BY, DEPENDS_ON), enabling cross-language dependency analysis in monorepos. The parser system automatically detects language based on file extension and applies the appropriate grammar.
Maintains a unified, language-agnostic graph schema across 40+ languages using Tree-sitter grammars, enabling cross-language dependency analysis in polyglot monorepos. All languages are represented with the same node and edge types, allowing consistent impact analysis regardless of language mix.
More comprehensive than language-specific tools because it supports multiple languages in a single graph and enables cross-language dependency analysis, whereas most tools focus on a single language.
incremental graph update system with delta computation
Medium confidenceImplements an incremental update mechanism that computes the delta between the current codebase state and the previous indexed state, then applies only the necessary graph updates. The system uses SHA-256 file hashing to detect changes, identifies which entities (functions, classes, imports) were added, modified, or deleted, and updates only the affected graph nodes and edges. This delta-based approach reduces update time from O(n) to O(delta), where delta is the number of changed entities, enabling fast graph synchronization even in large codebases.
Implements delta-based incremental updates (diagram 4) that compute the difference between current and previous codebase states, then apply only necessary graph changes. The system uses SHA-256 hashing to detect file changes and identifies which entities were added/modified/deleted, reducing update time from O(n) to O(delta).
Faster than full re-indexing because it only re-parses changed files and updates affected graph nodes, whereas naive approaches would re-parse the entire codebase on every change.
cli command suite for graph management and analysis
Medium confidenceProvides a comprehensive command-line interface for building, querying, and analyzing the knowledge graph. Commands include: `build` (initial graph construction), `update` (incremental updates), `query` (graph traversal and entity lookup), `impact` (blast radius analysis), `review` (code review context generation), `watch` (continuous synchronization), `visualize` (graph export for visualization), and `eval` (evaluation and benchmarking). The CLI is designed for both interactive use and integration into CI/CD pipelines, with structured output formats (JSON, YAML) for programmatic consumption.
Provides a comprehensive CLI suite with commands for graph building, querying, impact analysis, review context generation, and evaluation. The CLI supports structured output formats (JSON, YAML) for programmatic consumption and integration into CI/CD pipelines.
More flexible than GUI-only tools because it supports scripting, automation, and integration into existing workflows, while also being accessible to developers who prefer command-line interfaces.
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with code-review-graph, ranked by overlap. Discovered automatically through the match graph.
Scaffold
** - Scaffold is a Retrieval-Augmented Generation (RAG) system designed to structural understanding of large codebases. It transforms your source code into a living knowledge graph, allowing for precise, context-aware interactions that go far beyond simple file retrieval.
repomix
📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, Grok, and more.
codebase-memory-mcp
High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 66 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.
Second
Automated migrations and upgrades for your code
Sourcerer
** - MCP for semantic code search & navigation that reduces token waste
Claude 4, DeepSeek R1, ChatGPT, Copilot, Cursor AI and Cline, AI Agents, AI Copilot, and Debugger, Code Assistants, Code Chat, Code Completion, Code Generator, Autocomplete, Codestral, Generative AI
Bugzi: Multi-Agent AI and Code Scanning. Your AI Partner for Development. Bugzi is a powerful AI assistant that seamlessly integrates into your VS Code workflow, designed to enhance productivity and streamline your entire development process. While Bugzi includes a realtime security scanner to prote
Best For
- ✓teams maintaining large codebases (10k+ files) where full re-parsing is prohibitively expensive
- ✓developers using Claude Code or similar LLM assistants who need persistent context across sessions
- ✓monorepo maintainers needing language-agnostic structural analysis
- ✓code review workflows where context window is limited (e.g., Claude Code with 200k token limit)
- ✓large monorepos (Next.js, Kubernetes, etc.) where naive full-file inclusion would exceed token budgets
- ✓teams needing to understand change impact before merging pull requests
- ✓developers optimizing LLM API costs by minimizing token consumption per review
- ✓teams evaluating code-review-graph before adoption
Known Limitations
- ⚠Tree-sitter parsing accuracy varies by language maturity; less mature grammars may miss edge cases in dynamic or metaprogramming-heavy code
- ⚠SHA-256 change detection is file-level only—moving or renaming files without content changes may trigger unnecessary re-parsing
- ⚠Graph construction time scales linearly with codebase size; initial indexing of 100k+ file monorepos may take minutes
- ⚠No built-in support for generated code or transpiled outputs; requires manual configuration to exclude build artifacts
- ⚠Blast radius is conservative—it may include false positives if the graph contains indirect or transitive dependencies that don't actually affect behavior
- ⚠Dynamic imports, reflection, or metaprogramming patterns may not be captured in the static graph, leading to incomplete blast radius computation
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Repository Details
Last commit: Apr 21, 2026
About
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.
Categories
Alternatives to code-review-graph
Are you the builder of code-review-graph?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →