Quick answer
The local whoburnedmore CLI command is npx whoburnedmore --local. Decline its optional publish offer to keep the report local. The standard command signs in and submits daily aggregates. Neither mode submits prompts, source code, or filenames.
What this guide answers
The reader wants to lower token usage without lowering output quality.
Best for
Developers who use AI coding assistants daily.
Key facts, checked November 8, 2026
- Claude Opus 5.5 is $4 per million input tokens and $20 per million output. A cache read costs 0.05x input ($0.20 per million), a 5-minute cache write $5, and a 1-hour write $8. source
- On a Claude subscription within plan usage, Claude Code requests a one-hour cache lifetime for the main conversation. With usage credits, an API key or a cloud provider, it uses five minutes. source
- Anthropic recommends keeping CLAUDE.md under 200 lines and moving workflow-specific instructions into skills, which load only when invoked. CLAUDE.md is loaded into context at session start. source
- Claude Code's /usage recommendations name oversized inputs directly, with rows like 'Trim ~/code/api/CLAUDE.md · 49k tokens per request'. source
- Claude 4.7 and later models use a tokenizer that produces about 30% more tokens for the same text, so the same prompt costs more tokens than it did on older models. source
Name the goal first
The model needs to know what success means. A clear goal reduces exploration and prevents broad rewrites.
- Bug to fix
- Behavior to preserve
- Test to pass
Attach less, but better
Relevant context beats large context. Send the files that define the behavior and the error, not every nearby file.
- Entry point
- Failing test
- Related helper
- Error output
Trim repeated instructions
If the same policy or style guide is repeated in every prompt, move it to a reusable project instruction. Repetition burns tokens quietly.
- Project rules
- Coding style
- Test commands
Restart stale sessions
When the problem changes, a fresh prompt can be cheaper than dragging old context forward. Summarize decisions and start again.
- Decision summary
- Current state
- Next task
Worked example: one pasted log, forty requests
Prompt length costs money mainly because a pasted block is paid for again on every later request. Take a 30,000-token build log pasted early in a Claude Code session on Opus 5.5. Each tool call afterwards is another request carrying that log. Writing it to the cache once costs about $0.15 at the 5-minute rate ($5 per million), or $0.24 at the 1-hour rate a subscription uses. Re-reading it on 40 later requests is 1.2 million cache-read tokens at $0.20 per million, another $0.24. Any cold resume rewrites it again. A 600-token excerpt of the same error costs about a cent or less across those 40 requests. On a subscription, the same tokens count against your 5-hour and weekly limits instead of a bill.
- 30,000-token log over 40 requests: about $0.39 to $0.48 on Opus 5.5
- 600-token excerpt over 40 requests: about $0.01 or less
- Every cold resume or model switch rewrites the full log again
Tokens that never leave the conversation
Anything you paste stays in the history and is carried on every later request until you /clear or /compact. A 30,000-token log pasted in turn 3 is still being re-sent in turn 40. The cheapest fix is to never put it there. Paste the failing command, the error and the 20 lines around it. If Claude needs the full log, ask it to grep the file instead. Instructions work the same way. Repeating a style guide in each message adds a new copy to the history every time. A single copy in CLAUDE.md is loaded once per session.
- Paste excerpts, and let the agent read files on demand
- Put standing rules in CLAUDE.md once, and workflow rules in skills
- /clear between unrelated tasks, which Anthropic says costs nothing
Measuring the change
Check /usage before and after trimming. Its recommendations list the inputs costing the most per request. To compare whole days across tools, npx whoburnedmore reports input, output, cache-write and cache-read tokens by model. If a trimmed CLAUDE.md is working, cache-read tokens per day should drop while output stays level.
Common questions
Do longer prompts cost more in Claude Code?
Yes, mostly through repetition. Whatever you paste stays in the conversation and is re-sent on every later request. Cache reads make each re-send cheap but not free, and a cold cache bills the whole block again.
How long should CLAUDE.md be?
Anthropic recommends under 200 lines with only essentials. Move workflow-specific instructions into skills, which load on demand.
Does caching make prompt length irrelevant?
No. Cached reads are cheap but not free, and the cache expires after inactivity (five minutes on API billing). Switching model or effort mid-session also forces a full uncached read.
Is it cheaper to paste a log or let the agent read the file?
Usually cheaper to let the agent read or grep the file. It can pull only the relevant lines, and the full log never becomes permanent conversation history.