Skip to content
nerdculesPublic

About

The compiler's answers for Claude Code: who calls this, what breaks if I change it, which tests guard it. A code graph MCP server for C#, TypeScript, Java, Go, Rust and Python.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

CodeGraph

Overview · CodeGraph · Docs · MCP server · Extractors · Benchmarks · Prompts · Changelog · Claude Code plugin · VS Code extension

Idea: nerdcules · Written by: Claude, in Claude Code · How it was built

CodeGraph gives your AI coding assistant the compiler's answers: who calls this, what breaks if I change it, which tests guard it.

It works with any MCP client, and sets itself up for Claude Code, GitHub Copilot (CLI, VS Code, Visual Studio, JetBrains), Codex, Cursor, the Gemini CLI, and the Roo Code, Kilo Code and Continue extensions. Tested with Claude Code, the Copilot CLI, Copilot in VS Code, Codex and Cursor.

CI Release

A real Claude Code session on 14 November 2026, replayed from its transcript: asked what breaks if GraphStore.Replace changes, Claude calls find_symbol, impact_of, tests_for and snippet, and answers that 37 tests guard it, in 42 seconds

A real session, replayed from its transcript. Click for the video with sound: the same question with CodeGraph on (42 s, "37 tests guard it") and off (87 s, "about 40"). A later run-time check found 44 tests that execute the method (why).

It reads a codebase with its compiler (C#, TypeScript and Angular, Java, Go, Rust, Python), stores what it finds as a graph, and serves that graph to your assistant as MCP tools. In the session above, the assistant answered with four codegraph calls in 42 seconds; without CodeGraph it ran eight shell commands, took 87 seconds and estimated "about 40" tests.

Install, with the path of a repository to set up:

curl -fsSL https://raw.githubusercontent.com/nerdcules/CodeGraph/main/codegraph/install.sh | bash -s -- ~/dev/YourApp --add-to-path
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/nerdcules/CodeGraph/main/codegraph/install.ps1))) C:\dev\YourApp -AddToPath

Then start your assistant in that repository and ask what breaks if you change something. The script sets the repository up for Claude Code and the Copilot CLI; add --client copilot,cursor,codex and so on (or all) for the others.

The project lives in codegraph/. Its README shows the first five minutes, the questions you can ask, and where to go next depending on who you are; the docs have the rest, including the story of how a developer and an AI assistant built this.

Architecture: extractors write graph.db, the MCP server reads it, the live daemon keeps it current


Overview · CodeGraph · Docs · MCP server · Extractors · Benchmarks · Prompts · Changelog · Claude Code plugin · VS Code extension

About

The compiler's answers for Claude Code: who calls this, what breaks if I change it, which tests guard it. A code graph MCP server for C#, TypeScript, Java, Go, Rust and Python.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages