Code graph for Claude Code
Vesalius indexes a repository on the Mac and gives Claude Code five read-only MCP tools to answer codebase questions with file and line references.
In a 20-question benchmark, Claude Code used 51% fewer tokens per typical question, with answer quality scored about the same.
Overview
How it was set up
Install with Homebrew, then run vesalius setup. It registers the MCP server with Claude Code (and Codex if installed), allows its read-only tools, and indexes the repo locally.
Worth knowing
Requires a Mac with Apple silicon on macOS 15 or later. The two tools loaded up front add about 900 tokens to each session's context.
A prompt to start from
Who calls [function name], and what would I have to update if I renamed it?Written by Agentic Feats from the source. Not the author's exact prompt.
Sources 1
History
- Source published
- 2026-10-22
- Added to Agentic Feats
- 2026-10-26
- Pick
- No
- Markdown copy
- /c/code-graph-for-claude-code.md
More in setup and meta
38 featsResultTickets run unattended with per-turn cost receipts; one ticket reached $402 over nine runs before the cost showed in the app, which prompted a fix.
ResultEight identical TypeScript checks dropped from 22.32 s to 4.46 s on an M1 Pro, and digests cut context by about 97%.
ResultA demo shows Claude building the bat project (223 crates) with a single bar that fills during the build and turns green when done.