Zhidaily AI · Intelligence · Daily
Zhidaily
Issue 33 · December 2, 2026 · Wed
Today's stories
10 stories · 8 companies
Home / December 2, 2026 / Claude's 5-Minute Cache vs GPT's 30-Minute: What Pauses Cost
← Back
Opinion Models · Anthropic · OpenAI Score72

Claude's 5-Minute Cache vs GPT's 30-Minute: What Pauses Cost

In brief
Requesty measured 30 days of coding-agent traffic and found that Claude's 5-minute prompt cache expires during ordinary developer breaks, while GPT's 30-minute cache does not. The same sticker price p
Hacker News danvdb · Hacker News · requesty.ai
Dec 2 · 00:27 Read the original ↗
01Summary

Requesty analyzed 30 days of coding-agent traffic (October 24 to November 22, 2026) across Claude Code, OpenCode, Codex, Pi and Kilo and found that rebuilding expired prompt caches cost 23.1% of the Claude bill versus 9.3% on GPT models. The gap comes from cache lifetime, not price: both providers charge 1.25x input to write a cache and 0.05x to read it, but Claude's default cache lasts 5 minutes while GPT-5.6 and later keep it at least 30 minutes. On pauses of 5 to 30 minutes, Claude lost 15.2% of the bill and GPT 0.8%. Comparing Claude Sonnet 5.5 and GPT-6.1 Sol, which both list at $2 per million input tokens, a single short break costs about $0.28 on Sonnet versus $0.008 on GPT — a 34x gap driven by miss rates of 81% versus 2.3%. The authors say keep-alive pings (resending the last request with max_tokens: 0 every ~4.5 minutes) cut a Claude coding bill by roughly 8-9% net in replay, though the technique holds the last request in memory.

02Why This Matters

Prompt caching lets an agent resend a long conversation prefix at a fraction of input price instead of paying full price every turn. Each cache read resets the expiry timer, so a busy agent stays warm; the bill jumps only when the agent stops and waits for a human. Anthropic offers a 1-hour cache at 2.0x write cost, but Requesty found most tools rarely use it — OpenCode sent 0% of large Claude writes at 1 hour.

03What to Do About It

Teams paying API rates should pull their own usage logs and count continuing turns after a pause over 300 seconds where cache reads drop near zero and cache writes spike to full prompt size. Requesty's suggested fixes: keep short runs and subagents on the 5-minute cache, add a keep-alive schedule on long main threads, and set the 1-hour TTL from the first request rather than switching mid-session — in their tests, adding 1-hour markers to a warm 5-minute cache read nothing and rewrote the whole prompt at the higher price. Subscription users are less exposed: commenters note Claude Code defaults to a 1-hour cache on the main conversation under subscription plans.

04From the Comments

Commenters questioned why Anthropic keeps a 5-minute default when compiling and test runs often exceed it, with one noting Anthropic's subscription plans already use a 1-hour cache. Another confirmed that Claude Code on subscription plans defaults to 1 hour for the main conversation and 5 minutes for subagents, configurable in settings. One reader compared keep-alive pings to the old OS trick of writing to the console to keep a process at interactive priority.