{"name":"code-review-graph: AI-Powered Code Intelligence for Smarter Reviews","description":"code-review-graph is a local-first code intelligence graph that optimizes AI coding tools by building a persistent map of your codebase. It significantly reduces context for AI reviews and large-repo workflows, ensuring AI assistants read only the most relevant code. This leads to more efficient and cost-effective code analysis.","github":"https://github.com/tirth8205/code-review-graph","url":"https://osrepos.com/repo/tirth8205-code-review-graph","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/tirth8205-code-review-graph","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/tirth8205-code-review-graph.md","json":"https://osrepos.com/repo/tirth8205-code-review-graph.json","topics":["ai-coding","code-review","knowledge-graph","llm","python","static-analysis","developer-tools","code-intelligence"],"keywords":["ai-coding","code-review","knowledge-graph","llm","python","static-analysis","developer-tools","code-intelligence"],"stars":null,"summary":"code-review-graph is a local-first code intelligence graph that optimizes AI coding tools by building a persistent map of your codebase. It significantly reduces context for AI reviews and large-repo workflows, ensuring AI assistants read only the most relevant code. This leads to more efficient and cost-effective code analysis.","content":"## Introduction\n\nAI coding tools often face a challenge, they re-read extensive portions of your codebase for review tasks, leading to wasted tokens and slower performance. `code-review-graph` addresses this by providing a local-first code intelligence graph. It builds a persistent, structural map of your codebase using Tree-sitter, incrementally tracking changes and delivering precise context to your AI assistants via the Model Context Protocol (MCP). This ensures AI tools read only what is essential, significantly reducing context for reviews and large-repository workflows.\n\n## Installation\n\nGetting started with `code-review-graph` is straightforward. Python 3.10+ is required, and for the best experience, installing `uv` is recommended.\n\nTo install and set up:\n\nbash\npip install code-review-graph                     # or: pipx install code-review-graph\ncode-review-graph install          # Automatically identifies and configures all supported platforms\ncode-review-graph build            # Parse your codebase\n\n\nThe `install` command intelligently detects your AI coding tools, writes the correct MCP configuration for each, and adds graph-aware instructions to your platform rules. Remember to restart your editor or tool after installation.\n\nTo target a specific platform:\n\nbash\ncode-review-graph install --platform codex\ncode-review-graph install --platform cursor\ncode-review-graph install --platform claude-code\n\n\n## Examples\n\nOnce the graph is built, you can interact with your AI assistant using natural language or dedicated slash commands.\n\nA common prompt for your AI assistant would be:\n\nBuild the code review graph for this project\n\n\nAfter the initial build, which takes about 10 seconds for a 500-file project, the graph can automatically update via watch mode and supported platform hooks.\n\nYou can also use specific slash commands within your AI coding environment:\n\n*   `/code-review-graph:build-graph`: Create or rebuild the code graph.\n*   `/code-review-graph:review-delta`: Review changes since the last commit.\n*   `/code-review-graph:review-pr`: Perform a full PR review with blast-radius analysis.\n\nThe project also offers a rich CLI for direct interaction:\n\nbash\ncode-review-graph update           # Incremental update (only changed files)\ncode-review-graph watch            # Auto-update on file changes\ncode-review-graph visualize        # Generate interactive HTML graph\ncode-review-graph detect-changes   # Risk-scored change impact analysis\n\n\n## Why Use It\n\n`code-review-graph` offers compelling advantages for developers working with AI coding tools:\n\n*   **Massive Token Reduction**: Benchmarks show an average token reduction of approximately 65 times per query, with some cases reaching up to 376 times. This translates to significant cost savings and faster AI responses.\n*   **Blazing Fast Incremental Updates**: Subsequent updates complete in less than 2 seconds, even for large projects, by only re-parsing changed files and their dependents.\n*   **Extensive Language and Notebook Support**: It supports a wide array of languages including Python, JavaScript/TypeScript, Go, Rust, Java, C/C++, and many more, alongside Jupyter/Databricks notebooks.\n*   **Deep Code Intelligence**: Features like blast-radius analysis, semantic search, community detection, architectural overviews, and risk-scored reviews provide unparalleled insights into your codebase.\n*   **Seamless AI Integration**: With 30 MCP tools and 5 workflow templates (review, architecture, debug, onboard, pre-merge), it integrates effortlessly with popular AI coding assistants.\n*   **Local-First Design**: All core graph storage is handled locally in a SQLite file within `.code-review-graph/`, eliminating the need for external databases or cloud services.\n\n## Links\n\n*   **GitHub Repository**: [https://github.com/tirth8205/code-review-graph](https://github.com/tirth8205/code-review-graph){target=\"_blank\"}\n*   **Official Website**: [https://code-review-graph.com](https://code-review-graph.com){target=\"_blank\"}\n*   **PyPI**: [https://pypi.org/project/code-review-graph/](https://pypi.org/project/code-review-graph/){target=\"_blank\"}","metrics":{"detailViews":0,"githubClicks":0},"dates":{"published":null,"modified":"2026-08-06T11:48:58.000Z"}}