uGitMe

uGitMe

The Push: July 18th, 2026

Smarter repo maps, portable metrics specs, and tiny UI coaching packets for AI teammates

Anshul Desai's avatar
Anshul Desai
Jul 18, 2026
∙ Paid

Code Review Graph: Code Review Finally Gets Memory

github.com/tirth8205/code-review-graph | License: MIT

A pull request touches one auth function, one test, and one config file. Your AI reviewer still chews through half the repo like every line might matter. That behavior was tolerable when code assistants were autocomplete with branding. It gets expensive and weird once they start reviewing, debugging, and proposing architectural changes inside real monorepos. Code Review Graph attacks that waste directly. Instead of treating context like a giant text dump, it builds a persistent structural map of the codebase and hands AI tools only the pieces that are actually implicated.

The Drop: The Repo Stops Being a Token Buffet

GitHub Copilot, Claude Code, Cursor, and friends are all great at one thing and bad at another. They can reason across code surprisingly well, but they often gather context like panicked interns, opening file after file because they lack a durable model of the repo. That creates two problems at once.

First, cost. Big repositories turn every review into a token bonfire, especially when the assistant re-reads the same modules repeatedly. Second, quality. When an AI tool grabs broad but shallow context, signal gets buried. A tiny change in a shared utility can matter more than twenty untouched files, but naive retrieval often can’t tell the difference.

Code Review Graph exists because code review is not a search problem alone. It is a dependency problem, a change-impact problem, and honestly a memory problem. The repo’s claim is simple but sharp: if an assistant knew which functions call this one, which tests cover it, which classes inherit from it, and which files import it, review context could shrink dramatically without getting dumber. That frustration is especially acute in large teams where every AI-powered workflow quietly turns into repeated full-repo scanning.

The Stack: Tree-Sitter Meets MCP Plumbing

Under the hood, Code Review Graph is mainly Python, with Tree-sitter parsing source into syntax trees and SQLite storing the resulting graph locally. The project also plugs into MCP, which lets compatible AI tools query that graph at review time, plus a TypeScript VS Code extension for visualization and navigation.

The Sauce: Persistent Structure Beats Repeated Reading

What makes Code Review Graph interesting is the choice to build a local-first code intelligence graph, not a one-shot retrieval layer. Plenty of AI coding tools act like every prompt begins from amnesia. Code Review Graph keeps a durable graph of nodes, e.g. files, functions, classes, tests, and typed relationships between them, then updates that graph incrementally as the repo changes.

That architecture matters because it turns context selection into graph traversal instead of brute-force document stuffing. A changed file triggers blast radius analysis, the project’s term for tracing callers, dependents, inheritance links, and associated tests to identify what is plausibly affected. The assistant then reads the minimal review set, not the whole neighborhood.

Two details make this more than a neat parser demo. First, the graph is persistent and local, which means the expensive structural understanding happens once and compounds over time. Second, updates are incremental, based on changed files and dependency checks, so the map stays fresh without reparsing the world. That’s the right design for day-to-day coding, where the important question is rarely “what exists in this repo?” and more often “what changed, what depends on it, and what should be re-checked?”

The MCP layer is the distribution hack. Instead of shipping yet another full editor, Code Review Graph becomes shared infrastructure for many AI coding surfaces, from CLI tools to IDE assistants. Honestly, that interoperability is the part that seems strategically smart. It positions the project less like an app and more like a context back end.

The Move: Put Context Discipline on the Critical Path

Teams shipping AI-assisted code can use Code Review Graph as a quiet quality and cost control layer. The obvious move is inside large repos, where reviews, refactors, and bug investigations already involve too much context gathering. Build the graph once, connect it to the coding assistants already in use, and start routing review prompts through structural context rather than raw file search.

Founders and product leads should care because this changes throughput math. If an engineering team spends less time waiting for assistants to crawl the codebase, and less time correcting hallucinated review comments based on irrelevant files, cycle time tightens. That is not just convenience, it is margin.

Another practical use sits in platform teams managing monorepos. Code Review Graph can become a shared source of truth for impact analysis, e.g. which tests likely matter, which downstream modules are exposed, which files deserve reviewer attention first. The repo also supports custom language definitions, which matters if the codebase includes odd internal DSLs or notebook-heavy workflows. Useful infrastructure wins when it fits the messy repo you already have, not the pristine demo repo nobody runs.

The Aura: Software Starts Remembering Its Own Shape

Developers are getting trained into a bad habit: asking AI to reread the same codebase over and over, then pretending that’s intelligence. Code Review Graph pushes toward a different expectation, where software assistants carry forward structural memory and spend tokens on reasoning, not rediscovery.

That sounds technical, but the human implication is bigger. People stop managing context manually. They stop pasting giant diffs and apologizing to the model. They start expecting tools to know what is adjacent, risky, and relevant by default. That is the behavior change here. The machine remembers the repo’s shape, so the human can focus on judgment.

The Play: Infrastructure for Context-Efficient AI Coding

From a VC lens, this looks less like a flashy 0-to-1 consumer category and more like a sharp wedge into the AI coding infrastructure stack. The TAM is broad because every serious software team using AI assistants faces the same tax: wasted tokens, noisy reviews, and weak impact analysis in large repos. PMF signals look real, 20,000-plus stars, strong cross-tool integration, benchmarks, docs depth, and a Discord suggest this is resonating beyond a weekend demo.

The moat is not raw code alone, because parsing and graph storage are reproducible. The defensibility comes from distribution through MCP ecosystems, execution speed across many coding surfaces, and growing switching costs once teams bake graph-aware review habits into daily workflow. If that behavior sticks, CAC stays low because the product rides existing IDE and assistant adoption, while LTV rises with repo size and team complexity.

Winners:

  • Factory: Faster agent-based software workflows compound because better context routing makes autonomous coding sessions cheaper and less error-prone.

  • Cursor: Higher-quality reviews and lower context waste strengthen retention as users push the editor into larger, messier production repos.

  • GitHub: Better structural context infrastructure increases the value of Copilot inside enterprise codebases where review quality and token efficiency directly affect expansion.

Losers:

  • Sweep AI: Generic code-change automation loses edge when buyers expect persistent repo understanding instead of broad prompt-and-pray generation.

  • Magic: Premium AI coding positioning gets pressured if open context infrastructure narrows quality gaps in large-repo workflows.

  • Atlassian: Static ticket-centric impact tracking erodes when live code graphs start answering “what changed and what breaks?” more credibly than workflow metadata.

tl;dr

Code Review Graph turns a repository into a persistent structural map that AI coding tools can query instead of repeatedly rereading whole codebases. The smart part is the local graph plus blast-radius logic, which cuts context to what actually matters. Worth a look for teams using AI in large repos, especially monorepos.

Stars: 20,037 | Language: Python

User's avatar

Continue reading this post for free, courtesy of Anshul Desai.

Or purchase a paid subscription.
© 2026 Anshul Desai · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture