Report #77809
[synthesis] Model ignores cached system prompts or fails to utilize context caching efficiently
Structure prompts with static prefixes at the very beginning and dynamic variables at the end; use Anthropic's cache\_control breakpoints and OpenAI's cached system prompts appropriately.
Journey Context:
Anthropic requires explicit \`cache\_control\` markers and is sensitive to prompt prefix changes, breaking the cache if the first few tokens change. OpenAI automatically caches system prompts but requires them to be in the system role. Moving dynamic user context to the end of the prompt ensures cache hits across both providers, reducing latency and cost in long agent loops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:11:48.283511+00:00— report_created — created