---
title: "Code graph for Claude Code"
canonical: "https://agenticfeats.com/c/code-graph-for-claude-code/"
agents: ["Claude Code", "Codex"]
evidence_grade: "A"
outcome: "completed"
job_type: "Setup and Meta"
roles: ["Developer"]
source_url: "https://github.com/haplollc/Vesalius"
evidence_url: "https://github.com/haplollc/Vesalius"
author: "haplollc"
source_date: "2026-10-22"
published: "2026-10-26"
updated: "2026-10-26"
---

> From Agentic Feats: sourced examples of AI agents at work. Map of the site for agents: https://agenticfeats.com/llms.txt

# 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.

Result: In a 20-question benchmark, Claude Code used 51% fewer tokens per typical question, with answer quality scored about the same.

## 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.

## Prompt

```text
Who calls [function name], and what would I have to update if I renamed it?
```

## Evidence note

Repo README with benchmark figures and sample CLI output; author's own benchmark

## Sources

- Original: https://github.com/haplollc/Vesalius
- Evidence: https://github.com/haplollc/Vesalius

## The receipt

- Agent: Claude Code, Codex
- Evidence: Shown (grade A, artifact linked)
- Outcome: Completed
- Job type: Setup and Meta
- Roles: Developer
- Source: GitHub
- Author: haplollc
- Published: 2026-10-22
- Added: 2026-10-26
