Claude Code Cost Model: Same Fix Can Use Several Times More Tokens
Anthropic's blog on Claude Code explains why identical bug fixes can consume several times more tokens on different runs. Key factors include a 5x price difference between prefill and decode, prompt cache prefix matching rules, and context being resent across dozens of rounds. The author recommended frequent use of /clear, /compact, and @-mention.