Three third-party tools cut the tokens a Claude Code session spends, each at a different layer: rtk shrinks shell output, code-review-graph replaces searching and reading files, and headroom compresses whole requests on their way to the API. They do not overlap much, so they can run together.

rtkcode-review-graphheadroom
LayerOutput of shell commandsFinding code in the repoEvery API request
How it plugs inPreToolUse hook on BashMCP server (+ hooks, skills, CLAUDE.md lines)Local proxy via ANTHROPIC_BASE_URL
What it touchesgit, test runners, grep, find, tsc…Replaces grep + Read with graph queriesTool output, JSON, logs, code in the newest turn
MissesBuilt-in Read, Grep, GlobNothing, if the agent does not call itNothing on the request path
Getting the original backRe-run unfiltered, rtk recallAgent can still read filesheadroom_retrieve
Claude Code features lostNoneNoneRemote Control; tool search unless ENABLE_TOOL_SEARCH=true
Prompt cacheKeptKeptKept (earlier turns untouched)
TelemetryOff unless you opt inNoneOn by default, HEADROOM_TELEMETRY=off
How to see savingsrtk gainYour own transcriptsheadroom savings
Author’s numbers (one month)27% overall, 79% in a test-heavy pet project3 calls in 18 sessions14% over 30 days

The last row is one developer’s stats, not a benchmark. Each tool measures differently (rtk estimates tokens as bytes / 4; headroom says its own figure is likely high), so do not compare the percentages with each other.

When to pick which

  • Start with rtk. It is one command to install, loses no features, and pays off at once in sessions with tests, diffs and logs.
  • Add headroom when rtk is not enough, especially if much of your context comes from file reads and MCP results. Use the persistent install so tool search stays on, and keep a direct entry point (see Custom base URL) for Remote Control.
  • Try code-review-graph on a mid-size or large repo, then check whether the agent actually calls it. If it rarely does, it costs little but saves little; the gain depends on the model choosing it over grep and Read.
  • None of them replace the basics. Clearing between tasks, choosing the model and effort, and keeping CLAUDE.md short (see Reducing token usage) save more for free.

Citations

  1. Manage costs effectively
  2. Feature availability
  3. Connect Claude Code to tools via MCP: configure tool search
  4. rtk repository
  5. code-review-graph repository
  6. headroom repository