On-device code graph for Claude Code: who calls what, where features live, and what breaks on change. All tools are read-only and indexing runs on your Mac.
Vesalius gives Claude Code a map of your codebase, indexed entirely on your Mac, so it answers questions about your code with exact file and line references in fewer tokens.
If Vesalius is useful to you, a coffee keeps it going.
Install
brew install haplollc/tap/vesalius
vesalius setup
Try it
vesalius usages RepositoryEngine.ensureFresh
If this is useful, a star helps others find it.
When you ask an AI coding assistant about your project, something like "what breaks if I change this?", it works
the way a new teammate would on their first day: search for a name, open a file, search again, open another file,
and slowly piece the answer together. Every one of those steps costs time and tokens, and on a real codebase they
add up fast. Vesalius gives your assistant a map instead. It reads your repository once, right on your Mac, and
remembers how everything connects: which file uses which, who calls what, where a feature actually lives. Then Claude
Code can ask it directly and get answers with exact file and line references, usually in one call instead of a chain
of searches. In our benchmark that cut the tokens Claude Code spent answering real questions about real codebases
roughly in half, and a blind AI judge scored the answers about the same. A map is useful to people too, so Vesalius
also comes as a Mac app and a VS Code extension for exploring code yourself. Vesalius itself never uploads your code.
Quick start
brew install haplollc/tap/vesalius
vesalius setup
That's it. Open Claude Code in any project and ask the way you normally would. It picks the right tool on its own:
Who calls SessionStore.save, and what would I have to update if I renamed it? Where are in-app purchases handled? Are there any circular imports under src/? What's in PaymentService.swift?
Most answers come back in one call, with file:line evidence. Claude still opens or greps files when it wants to check
something, just far less: in our benchmark, 2.65 search, read and shell calls per question instead of 7.2.
Here is setup in Vesalius's own repository:
$ vesalius setup
Setting up Vesalius 2.1.0 (/opt/homebrew/bin/vesalius)
✓ Claude Code: registered for every project
claude mcp add --scope user vesalius -- /opt/homebrew/bin/vesalius mcp
✓ Claude Code: now runs Vesalius's read-only tools without asking
mcp__vesalius__* in permissions.allow, ~/.claude/settings.json
✓ Claude Code: connected
– Codex: not installed
✓ Indexed Vesalius: 256 files in 3.6 s
Next: start Claude Code in a project (in a session that's already open, run /mcp), then ask, for example:
Who uses Theme, and what would I have to change to rename it?
vesalius doctor checks the connection any time
vesalius stats shows what Claude asked Vesalius
vesalius setup --undo reverses all of this