Graphify: Cut Claude Token Usage 70x (Full Setup Guide)
Free open-source skill that maps your whole codebase into a knowledge graph so Claude only reads the files it needs, cutting token use by up to 71x. Install it in Claude Code and view the map in Obsidian.
If you're burning through tokens, this changes how you work. Graphify is a free open-source skill that maps your entire project into a knowledge graph, so instead of Claude re-reading your whole codebase on every prompt, it only pulls the exact files it needs. The benchmarked saving is up to 71 times fewer tokens on large projects.
What Graphify actually is
- An open-source skill by Safi Shamsi that turns code, docs, and files into a queryable knowledge graph.
- It works with Claude Code, Codex, Cursor, Gemini CLI, and other agents.
- Claude reads the graph (concepts and connections) rather than raw files, so a question that used to cost tens of thousands of tokens costs a few hundred.
Step 1: Install the tool
Install the CLI (the PyPI package is graphifyy with a double y, the command is graphify):
uv tool install graphifyyStep 2: Register it with Claude Code
graphify installThis registers Graphify as a skill so you can call it from inside Claude Code.
Step 3: Build the graph
From your project root, run the skill on the current folder:
/graphify .It produces three files: an interactive graph.html, a GRAPH_REPORT.md of key concepts and connections, and a graph.json Claude can query.
Step 4: See it in Obsidian (optional)
Add the Obsidian flag to write the map into a vault you can open visually:
/graphify . --obsidian --obsidian-dir ~/vaultOpen that folder as a vault in Obsidian, then use Graph View to see how everything connects.
Step 5: Point every prompt at the map
Add a line to your CLAUDE.md so Claude checks the graph first on every prompt, for example: "Before answering, query the Graphify graph to find the relevant files instead of reading the whole codebase."
New guides land in your inbox first
One short email a week with the tools and prompts worth your time. Free, and you can leave any time.