Launch offer: the first 1,000 users get Settl free for a year* Claim your spot
settlbuilding in public

CodeGraph: give Claude Code a map of your project, and a one-line check for when it's worth it

The short version

When you ask Claude Code a question about your project, it finds the answer the slow way: it searches, opens a file, reads it, opens the next one. Every file it reads uses up part of your usage limit and adds waiting time. CodeGraph, by Colby McHenry (a solo developer, "15+ years of experience building software" per his GitHub profile), builds a map of how your code connects: which function calls which, which file imports which. Claude Code asks the map instead of opening file after file. The README's own words: it "hands the agent the exact code it needs in one call". It's free and open source (MIT), runs on your own computer, and has 74,730 stars on GitHub. The map updates itself every time a file changes, so there is nothing to re-run. Source: the repo's README and GitHub page, checked 23 Oct 2026.

What The number
Stars on the repo 74,730 (checked 23 Oct 2026)
Files Claude opened, maker's big test (~640 files) 18 → 0
Time, same question 2 min 42 s → 45 s
Cost on the maker's small test (~110 files) about even
Extra context left in Claude's short-term memory about 80% more (README)
Commands to set it up 3

The maker's own test

These are Colby McHenry's own numbers from the README, not an independent test. Setup: Claude Code run headless on Claude Opus 4.8, the same question asked with and without CodeGraph, median of 4 runs each, re-measured 5 August 2026.

The README explains why: the saving tracks how much searching the question needed. Little searching, little to save. (Its other ~110-file test, Alamofire, needed a lot of searching and came out 57% cheaper, so size is a rough guide, not a rule.)

Worth it yet? The one-line check

In your project folder, in the terminal, run:

git ls-files | wc -l

It prints how many files git tracks in your project (it needs the project to be a git repo). Read it against the maker's two tests:

This is our rule of thumb, not the repo's. The file counts are the README's; reading them as "wait" or "try it" is ours.

Install (as the README states it)

  1. Install the tool. macOS / Linux:
    curl -fsSL https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.sh | sh
    
    Windows (PowerShell):
    irm https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.ps1 | iex
    
    Already have Node? npm i -g @colbymchenry/codegraph works instead. Then open a new terminal, so the codegraph command is found.
  2. Plug it into Claude Code. In the new terminal:
    codegraph install
    
    It finds Claude Code (and other coding tools you have) and connects CodeGraph to them. It also adds a short, marked CodeGraph section to your CLAUDE.md. It does not map any code yet. Restart Claude Code afterwards so it loads.
  3. Draw your project's map. Once per project:
    cd your-project
    codegraph init
    
    That builds the map in a .codegraph/ folder in your project. From then on it updates itself when files change.

A word on step 1: curl … | sh downloads a script and runs it straight away. That's normal for developer tools, but you are running someone else's script, so only use the exact line from the README.

The catch

How to turn it off

Sources

Get the next one in your inbox