← Token Book FREE CHAPTER

Chapter 1: Where Do Your Claude Code Tokens Go?

From Token Book — Cut Claude Code Token Usage in Half · 800+ hours of data

"I'm not doing anything and my quota keeps disappearing" — this is the most common complaint from Claude Code users. But you are doing something. Tokens are being consumed in places you can't see.

The 4 Layers of Token Consumption

Layer 1: System Prompt

Every time Claude Code starts a turn, it loads the internal system prompt + your CLAUDE.md + tool definitions + MCP configs. The longer your CLAUDE.md, the higher the base cost per turn. 100 lines vs 500 lines makes a massive difference.

Layer 2: Context Window

As conversation grows, past exchanges accumulate. If the prompt cache is working, these are reused cheaply. But when the cache breaks, the same prompt costs several times more (covered in Chapter 8 — 48 diagnostic symptoms).

Layer 3: Tool Calls

Every file read, file write, and Bash execution consumes tokens. The output of ls -la vs cat large-file.txt differs by orders of magnitude. Tool results have an internal 200K token cap — exceed it and you get truncation → retry → more consumption.

Layer 4: Subagents

Each subagent maintains its own context. Convenient, but overuse causes token explosion. One user lost 101K+ tokens to a subagent retry loop (#46968).

What Eats the Most Tokens (800 Hours of Data)

  1. Large file reads — a single cat of a big file can cost 50K+ tokens
  2. Context bloat — not running /compact during long sessions
  3. Prompt cache destruction — any change to CLAUDE.md invalidates the cache
  4. Unnecessary tool calls — Claude "exploring" by reading files it doesn't need
  5. CLAUDE.md bloat — 500+ lines means 500+ tokens per turn, every turn
  6. Frequent state file updates — writing to todo.md or progress.md every turn
The key insight: Most token waste is invisible. You don't see the system prompt loading, the cache miss, or the 200K truncation retry. The only way to know is to measure — which is what the remaining 9 chapters cover.

What's in the Rest of the Book

Get the full Token Book

10 chapters · 48 diagnostic symptoms · Copy-paste templates
Max plan ($200/month) saves ~10% = $20/month. Pays for itself in 1 month.

Buy on Ko-fi — $17 Buy on Zenn — ¥2,500

Free: Token Checkup — 5-question diagnostic, takes 30 seconds