Cache written but never read
IF a project pays to create prompt cache but reads it back less than 20% of the time → THEN make the stable prefix byte-identical so prefix caching actually engages → RESULT tokens shift from the input rate to the cheaper cache-read rate, and the hit ratio is tracked.
The signal in the agentic log
- Signal: cache-hit ratio < 0.20 over > 5 turns, or cache-read tokens < 20% of cache-create tokens.
- Field source:
Tokens.CacheCreateTokens,Tokens.CacheReadTokens,TurnSeq. - A high cache-create with a low cache-read means the prefix changes between calls, so the provider never hits the cache it was asked to build.
The setup
- Accept the prompt-cache placement recommendation.
- Keep the system prompt and any stable prefix byte-identical across turns — no timestamps, no per-turn identifiers, no reordered sections.
- Apply the policy; the target is a 50% cache-read ratio.
The result
- Tokens move from the input price to the cache-read price (for example, $3/1M → $0.30/1M on the models where that holds).
- The cache-hit ratio is one of the overview KPI tiles, so the improvement is visible directly.
- Savings are attributed from the actual before/after cache-read volume.
Behind it
- Detector: prompt-cache placement.
- Related: Repeated identical prompts when the whole prompt repeats, not just the prefix.