Claude Code caches are model-specific: switching models, compacting and idle time all bust the cache

shoumikgoswami · reddit · 2026-11-03

A detail easy to miss in Anthropic's docs: Claude Code resends full context (system prompt, project context, all prior messages and tool results) on every request, and only the exactly-matching prefix avoids reprocessing — so certain actions make the next turn slower and pricier.

Cache-breaking:

Cache-safe: editing CLAUDE.md mid-session (takes effect only after /clear, /compact or restart), switching permission modes, rewinding turns.

The author notes this is one tool's documentation, not a universal rule, and asks whether teams design around caching (one model per run, stable prompt prefix, compacting at task boundaries) or just eat the cost.

Original post →

More from coding & agent

coding & agent channel →