AI Tools
CodingIntermediate

code-review-graph

code-review-graph is a local-based code intelligence graph engine released by developer Tirth Kanani on June 15, 2026. This tool leverages Tree-sitter (a Tree-sitter parser) technology to parse the source code of various programming languages and precisely extract only the call and dependency relationships between classes, functions, and variables within the system, constructing an in-memory and disk-based Knowledge Graph in SQLite format. The constructed Knowledge Graph is used with Anthropic's MCP (Model Context Pro).

code-review-graph` is a locally-based code intelligence graph engine released by developer Tirth Kanani on June 15, 2026. This tool leverages Tree-sitter (a parsing technology) to parse the source code of various programming languages and precisely extracts only the call and dependency relationships between classes, functions, and variables within the system, constructing it as an in-memory and disk-based Knowledge Graph using SQLite. The constructed Knowledge Graph supports Anthropic's MCP (Model Context Protocol) standard and CLI integration, enabling next-generation AI IDEs and automation agents like Claude Code or Cursor to navigate the codebase without reading the entire file unnecessarily, instead receiving only the relevant relationship information and snippets.

In traditional large-scale source code analysis and code review tasks, AI LLMs often wasted tokens and experienced hallucination issues by directly inputting hundreds of files into the context window or relying on simple keyword-based RAG (Retrieval-Augmented Generation). To illustrate, if previous AI coding tools were inefficient, like reading an entire library to find the answer to a question, code-review-graph is structured like first creating a table of contents and a three-dimensional index for the library and then accurately finding only the necessary paragraphs. By transforming the dependency structure of the codebase into structured graph data, it uses a clear node-tracking method instead of random text search when analyzing code changes or the impact of calling a specific function, thereby reducing the LLM context input token count by up to 49 times, even in large monorepo environments.

The utility of code-review-graph is also very high in bioinformatics software development and bio data pipeline engineering practices. For example, you can apply git hook-based incremental indexing to a Python and C++ codebase where genomic data analysis algorithms, pipeline modules, and omics data parsing utilities are intricately intertwined across dozens of files. When a developer modifies the source code and creates a PR (Pull Request), calling the code-review-graph CLI allows the modified function and its associated parent classes and child dependency nodes to be retrieved from the SQLite graph in just a few milliseconds. This enables the AI code review agent to perfectly evaluate the impact of genomic algorithm modifications with only a precise context of less than 1,000 tokens, without scanning the entire library.

💻 System Requirements

🧠RAM

0 (CPU 전용 동작)

💾Storage

인덱스당 50MB - 500MB (프로젝트 크기에 따라 SQLite 디스크 용량 가변)

Installation

4-1. Quick Start

pip install code-review-graph code-review-graph index ./

4-2. 상세 설치

Repository 클론 및 전역 CLI/MCP 서빙 설치

git clone https://github.com/tirth8205/code-review-graph.git cd code-review-graph pip install -e .

Claude Code / Cursor MCP 설정 예시 (mcp.json) { "mcpServers": { "code-review-graph": { "command": "code-review-graph", "args": ["mcp", "--db", "./.code-graph.sqlite"] } } } Git hook 등록 (커밋 시 자동 증분 인덱싱)

code-review-graph hooks install

🧬 Bio Use Cases

🔬

Genomic Analysis Pipeline Monorepo Impact Analysis

In a large-scale pipeline project containing dozens of omics analysis scripts and C++ C-extension modules, when a specific input/output parser is modified, only the top-level analysis modules affected are precisely extracted through graph relationship queries, enabling impact assessment execution without token consumption.

🧬

AI-Powered Automated Pull Request Review

Within a GitHub Actions pipeline, by executing the code-review-graph diff command and transmitting only the minimum necessary call graph information directly related to the changed code nodes to the Claude agent via MCP, token inefficiency is overcome, and review accuracy is significantly improved.

💊

Onboarding Legacy Bioinformatics Codebase

The call flow between functions in a large, unstructured legacy pipeline project is converted into an SQLite knowledge graph, allowing new developers and AI agents to clearly visualize and explore the execution path of a specific main function.

FAQ

What is code-review-graph?

code-review-graph is a locally-based code intelligence graph engine released by developer Tirth Kanani on June 15, 2026. This tool leverages Tree-sitter (a parsing technology) to parse the source code of various programming languages and precisely extracts only the call and dependency relationships between classes, functions, and variables within the system, constructing it as an in-memory and disk-based Knowledge Graph using SQLite. The constructed Knowledge Graph supports Anthropic's MCP (Model Context Protocol) standard and CLI integration, enabling next-generation AI IDEs and automation agents like Claude Code or Cursor to navigate the codebase without reading the entire file unnecessarily, instead receiving only the relevant relationship information and snippets. In traditional large-scale source code analysis and code review tasks, AI LLMs often wasted tokens and experienced hallucination issues by directly inputting hundreds of files into the context window or relying on simple keyword-based RAG (Retrieval-Augmented Generation). To illustrate, if previous AI coding tools were inefficient, like reading an entire library to find the answer to a question, code-review-graph is structured like first creating a table of contents and a three-dimensional index for the library and then accurately finding only the necessary paragraphs. By transforming the dependency structure of the codebase into structured graph data, it uses a clear node-tracking method instead of random text search when analyzing code changes or the impact of calling a specific function, thereby reducing the LLM context input token count by up to 49 times, even in large monorepo environments. The utility of code-review-graph is also very high in bioinformatics software development and bio data pipeline engineering practices. For example, you can apply git hook-based incremental indexing to a Python and C++ codebase where genomic data analysis algorithms, pipeline modules, and omics data parsing utilities are intricately intertwined across dozens of files. When a developer modifies the source code and creates a PR (Pull Request), calling the code-review-graph` CLI allows the modified function and its associated parent classes and child dependency nodes to be retrieved from the SQLite graph in just a few milliseconds. This enables the AI code review agent to perfectly evaluate the impact of genomic algorithm modifications with only a precise context of less than 1,000 tokens, without scanning the entire library.

When should I use code-review-graph?

code-review-graph is a local-based code intelligence graph engine released by developer Tirth Kanani on June 15, 2026. This tool leverages Tree-sitter (a Tree-sitter parser) technology to parse the source code of various programming languages and precisely extract only the call and dependency relationships between classes, functions, and variables within the system, constructing an in-memory and disk-based Knowledge Graph in SQLite format. The constructed Knowledge Graph is used with Anthropic's MCP (Model Context Pro).

What is a biomedical use case for code-review-graph?

Genomic Analysis Pipeline Monorepo Impact Analysis: In a large-scale pipeline project containing dozens of omics analysis scripts and C++ C-extension modules, when a specific input/output parser is modified, only the top-level analysis modules affected are precisely extracted through graph relationship queries, enabling impact assessment execution without token consumption.

📄 Official Docs🐙 GitHub

📝 Update Notes

  1. vv2.3.77/21/2026

    이번 v2.3.7 업데이트에서는 Python, Rust 등 다양한 언어에 대한 지원이 확대되었고, 사용하지 않는 코드를 찾아내는 dead-code 분석 기능이 새롭게 추가되었습니다. 특히 코드의 변경 위험도(churn risk)와 영향력을 정밀하게 분석할 수 있어, 복잡한 바이오인포매틱스 파이프라인의 유지보수 효율을 높이는 데 매우 유용합니다. 보안 취약점 해결과 함께 시스템 안정성도 강화되었으므로, 대규모 분석 코드를 관리하는 연구원님들께 안전한 업데이트가 될 거예요.

🧪 Related Code of Life

No related Code of Life posts yet.