TGViewer
Everyday Unity Everyday Unity @everydayunity · 1.18K subscribers
Post #2617 1.1K
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
More from @everydayunity
  1. Sep 21, 2026Claude Code effort level and model selection effort means more than just "thinking time."…
  2. Sep 19, 2026Netcode for GameObjects 3.0.0 is now available It is preparation for Unity’s shared Netcod…
  3. Sep 9, 2026Unity Plugin Official Unity plugin for Claude. https://claude.com/plugins/unity #ai
  4. Sep 5, 2026Have you tested Astra already? I checked deepswe bench and decided to test it with medium…
  5. Sep 5, 2026Unity Pipeline 0.6 adds hot reload for IL2CPP It is experimental, with a limited [HotReloa…
  6. Sep 3, 2026Memory Profiler finds the roots behind Unity leaks I keep coming back to this question wit…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →