Video
Why GPT-5.6 prompt caching drops to 1% in agent loops (and how to fix it)
· 278 seconds
In a 39-round production agent session on GPT-5.6 Luna (401K to 515K tokens), prompt cache hits collapsed to 0.66% while 99.34% of every prompt paid the 1.25x cache write rate. Switching to explicit dual breakpoints lifted controlled live probe caching 37.7x (from 1,215 to 45,786 of 45,805 tokens, 99.96%) and exposed a remaining turn-boundary miss in the production follow-up.
Chapters
00:00Why a warm 500K-token agent loop hit under 1% cache00:44What changed in GPT-5.6 prompt caching01:24The transient-tail trap in multi-turn agent loops02:02Explicit dual breakpoints: previous for read, current for write02:38Controlled probe results (37.7x cached tokens) vs production follow-up03:36Six-layer prefix order and the five-request debug probe04:08Cost math: why a cache write costs 12.5x a read
Key measurements (Aug 22 and Aug 24, 2026)
- Broken implicit tail (live probe): 1,215 cached tokens (2.65% of 45,805).
- Explicit dual breakpoints (live probe): 45,786 of 45,805 cached tokens (99.96%, 37.7x the broken replay).
- Repeat control: 45,731 of 45,753 cached tokens (99.95% at roughly a twelfth of the cold cost).
- Key control: Changing
prompt_cache_keyon identical rendered bytes dropped cached tokens to 0. - Production follow-up (Aug 22 vs Aug 24): Token-weighted hit rate rose from 0.66% (39 rounds) to 9.86% (20 rounds), and upstream average model cost dropped from $0.243 to $0.188 per round. Inside the first 14-call turn, cached reads reached 14.26%, while the next six calls started new turns, read 0 cached tokens, and rewrote 99.9%.
Full guide and interactive simulator
Read the full write-up, step through the interactive prefix simulator, and copy the five-request debug probe: GPT prompt caching: how to improve cache hit rates.