Worked example: 20-turn refactor on Claude Sonnet 5.5
Assume a 60,000-token repository context re-sent on every turn, plus 8,000 tokens of new conversation and tool output per turn. That is 1.2M cached-prefix input tokens plus 160,000 fresh input tokens across the session.
1.36M input tokens at $2.00/M, before output tokens.
1.08M cache reads at $0.10/M plus 0.28M base-input tokens at $2.00/M.
Before output tokens and before tool-result trimming. Cache writes are a one-off cost per TTL window.