Cutting Claude Code Token Costs, One Tool at a Time
A visual map of four tools that cut Claude Code token use: where each one cuts, what it really saves across a session, and when to use it.
4 articles
A session spends tokens in four places
- Project memoryCLAUDE.md and notes, loaded every sessionCaveman
- Exploring codegrep, glob and reading file after fileGraphifyCode Graph
- Command outputLogs, tests and git output in the contextRust Token Killer
- RepliesThe words Claude writes backCaveman
Try switching each tool on
Drag the slider to replay the session, then switch tools on to see how the total moves.
Tokens into the session
333,827
Cut 0 (0%)
- Load Caveman's instructions0
- Ask about a code flow157,800
- Ask about project structure123,000
- Run git status3,000
- Run cargo test25,000
- Run git diff21,500
- Claude explains a bug1,180
- Claude sets up a connection pool2,347
Each row is a published benchmark, but from different projects. Use it to compare sizes, not to forecast a bill.
The headline number and what you actually get
Caveman
The headline number
65%
fewer output tokens
What real use shows
4–15%
fewer tokens across the session
Replies are only about 6% of a session's tokens. Conversation history and files are about 70%.
Graphify
The headline number
71.5×
fewer tokens on one query
What real use shows
?
no whole-session figure yet
This measures one structural query on nanoGPT, minGPT and micrograd plus papers and images. It does not tell you how far your bill would drop.
Code Graph
The headline number
90%
fewer tokens at best (Excalidraw)
What real use shows
35%
lower cost, averaged over 7 projects
This is still a real cut on the bill. The larger and more tangled the codebase, the bigger the gain.
Rust Token Killer
The headline number
80%
less shell output
What real use shows
+7.6%
on the bill at Low Reasoning Effort
Over-compression leaves the AI short of detail, adding 13.8% more turns and 14.3% more cache reads. At High Reasoning Effort the cost barely moves. Figures from JetBrains.
Pick by where the tokens go
Where do your session's tokens go?
Four tools, side by side
Compare:
| Criterion | Caveman | Graphify | Code Graph | Rust Token Killer |
|---|---|---|---|---|
| Where it cuts | Replies and memory files | Exploring code and documents | Exploring code | Shell command output |
| How it runs | Switched on with /caveman | A hook nudges the agent to the graph | An MCP tool, installed for Claude Code | A hook rewrites commands |
| Strongest at | Explaining bugs, summarizing code | Projects mixing code and documents | Large, tangled repos | Long test and git output |
| The cost | 1,000–1,500 tokens of instructions per session | Pass 3 costs API money | The graph can drift from the code | Lossy, and can raise the bill |
In this series
Compress Claude's replies
Map the codebase instead of reading every file
Graphify: Turn any folder into a knowledge graph
Graphify transforms project folders into queryable knowledge graphs, letting AI coding assistants navigate codebases by structure over similarity.
How to Reduce 90% of Claude Code Token Usage with Code Graph
Reduce Claude Code token usage by 90% through deterministic local indexing and MCP, eliminating expensive sequential file exploration in AI sessions.