← 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-only operation)

💾Storage

50MB - 500MB per index (SQLite disk usage varies by project size)

⚡ Installation

4-1. Quick Start

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

4-2. Detailed Installation

Clone repository and install global CLI/MCP server

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

Example Claude Code / Cursor MCP configuration (mcp.json) { "mcpServers": { "code-review-graph": { "command": "code-review-graph", "args": ["mcp", "--db", "./.code-graph.sqlite"] } } } Register Git hook (automatic incremental indexing on commit)

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.99/18/2026

    code-review-graph v2.3.9에서는 전체 저장소가 아닌 특정 코드 영역(neighborhood)만 선택해 시각화할 수 있는 기능이 새롭게 추가되었습니다. 덕분에 방대한 규모의 바이오인포매틱스 코드베이스에서도 특정 유전자 분석 알고리즘이나 핵심 로직만을 빠르게 추출하여 구조를 파악할 수 있습니다. 또한, 특정 저장소 범위 내 검색 기능과 파싱 오류 발생 시 상세한 파일 보고 기능이 강화되어, 복잡한 생명공학 소프트웨어의 디버깅과 유지보수 효율이 더욱 높아졌습니다.

  2. vv2.3.89/14/2026

    code-review-graph v2.3.8 업데이트는 대규모 바이오인포매틱스 파이프라인 코드를 분석하는 연구원님께 더욱 안정적인 환경을 제공해요. 파일 변경을 감지하는 'watch' 모드가 개선되어, 복잡한 디렉토리 구조나 대용량 라이브러리가 포함된 프로젝트에서도 끊김 없이 실시간으로 코드 그래프를 업데이트할 수 있습니다. 특히 검색 결과가 없을 때 그 이유(인덱싱 누락, 분석 한계 등)를 명확히 알려주는 기능이 추가되어, 분석 스크립트의 논리적 오류를 찾아내는 디버깅 과정이 훨씬 수월해졌어요. 또한 예상치 못한 토큰 과부하 문제를 해결하여, 방대한 양의 코드를 검토할 때도 시스템의 안정성을 보장받을 수 있습니다.

  3. 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.

BioPlayground

Reading, linking, and lawful quotation stay open; high-speed bulk collection and unauthorized redistribution do not.

Unless stated otherwise, content rights belong to BioPlayground or the relevant rights holder.