Code Review Graph

Scopes code-review blast radius and detects architectural hotspots using Tree-sitter AST analysis and GraphRAG, with an MCP server for graph-based analysis.

SamyakJhaveri Updated 0 repo stars

File contents

code-review-graph

GraphRAG-powered code review that uses Tree-sitter AST analysis to scope blast radius for diffs and detect architectural hotspots. 24-language support.

Upstream: https://github.com/tirth8205/code-review-graph

Install

pip install code-review-graph

MCP Server Setup

Add to your project's .mcp.json:

{
  "code-review-graph": {
    "type": "stdio",
    "command": "uvx",
    "args": ["code-review-graph", "--stdio"],
    "env": {}
  }
}

The MCP server exposes tools for graph-based code analysis.

How It Complements Loam

  • code-review-graph decides WHICH code to look at (blast-radius scoping)
  • /multi-review decides WHAT to say about it (quality analysis)

Use code-review-graph first to identify affected files, then feed those into /multi-review for focused critique.

Requirements

  • Python 3.10+
  • Tree-sitter (auto-installed)
  • Optional: sentence-transformers, igraph

Notes

  • MIT license, actively maintained
  • No benefit below ~200 files — graph overhead exceeds savings
  • Windows has known deadlock issues
  • Still Beta with many open issues

SamyakJhaveri/loam/tree/main/cultivation/marketplace/code-review-graph/skills/code-review-graph commit 0f3e276c0c

Frequently asked questions

npx skillmds@latest add samyakjhaveri/code-review-graph