Skip to content

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

  1. Project memoryCLAUDE.md and notes, loaded every sessionCaveman
  2. Exploring codegrep, glob and reading file after fileGraphifyCode Graph
  3. Command outputLogs, tests and git output in the contextRust Token Killer
  4. 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%)
  1. Load Caveman's instructions0
  2. Ask about a code flow157,800
  3. Ask about project structure123,000
  4. Run git status3,000
  5. Run cargo test25,000
  6. Run git diff21,500
  7. Claude explains a bug1,180
  8. 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:
CriterionCavemanGraphifyCode GraphRust Token Killer
Where it cutsReplies and memory filesExploring code and documentsExploring codeShell command output
How it runsSwitched on with /cavemanA hook nudges the agent to the graphAn MCP tool, installed for Claude CodeA hook rewrites commands
Strongest atExplaining bugs, summarizing codeProjects mixing code and documentsLarge, tangled reposLong test and git output
The cost1,000–1,500 tokens of instructions per sessionPass 3 costs API moneyThe graph can drift from the codeLossy, and can raise the bill

In this series