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.
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 -AddToPathThen 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.
Overview · CodeGraph · Docs · MCP server · Extractors · Benchmarks · Prompts · Changelog · Claude Code plugin · VS Code extension
