Everyday Unity: post #2617 — TG.ME

How Claude Code Uses Prompt Caching

I believe it's important to know what prompt caching is and how it helps save costs.

On this page, I would pay attention to what resets the cache, how agents affect it, how to check your cache usage, and TTL.

One advice I didn't follow before:
Compaction works in your favor when the context you discard is content you no longer need. To choose when its overhead happens, run /compact at a natural break in your work, such as between tasks, instead of waiting for auto-compaction to trigger mid-task. If you’ve gone down a path you want to abandon entirely, /rewind to an earlier turn instead. Rewinding truncates back to a prefix that is already cached, rather than building a new one as compaction does.


https://code.claude.com/docs/en/prompt-caching

#ai
Claude Code Docs
How Claude Code uses prompt caching - Claude Code Docs
Claude Code manages prompt caching automatically. See why a model switch triggers a slow uncached turn, what /compact costs, why CLAUDE.md edits don't apply mid-session, and how to check your cache hit rate.
🔥6👍3
July 22, 2026 943 6