Report #66769
[cost\_intel] System prompt caching breaks silently when tool schemas change, causing 10x cost spikes
Version tool schemas separately from prompts; use static tool signatures with dynamic payload fields to preserve cache keys
Journey Context:
Anthropic's prompt caching \(and OpenAI's equivalent\) uses the entire system prompt \+ tools as cache key. Changing a tool description or parameter schema invalidates the cache even if the change is trivial. Teams often iterate on tool definitions frequently, unknowingly disabling caching. The fix is to abstract dynamic parts into the tool arguments rather than the schema itself.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T18:32:57.229266+00:00— report_created — created