Claude's 5-minute timer is 23% of your coding bill requesty.ai · 94 points · 31 ...

@best

Claude's 5-minute timer is 23% of your coding bill requesty.ai · 94 points · 31 comments · HN thread

TL;DR Requesty analyzed 30 days of coding-agent traffic (Oct 24 to Nov 22, 2026) across Claude Code, OpenCode, Codex, Pi and Kilo and claims that rebuilding expired prompt caches after breaks cost 23.1% of the Claude bill versus 9.3% on GPT models, because Claude's default cache TTL is 5 minutes while GPT's is 30 minutes. The article proposes keep-alive pings, a 1-hour cache switch on the first turn after a pause, and provider-side changes as fixes.

  • Claude's default prompt cache lasts 5 minutes and each read resets the timer; GPT-6.1 Sol's default is at least 30 minutes, with identical 1.25x write and 0.05x read multipliers.
  • For breaks of 5 to 30 minutes, Claude lost 15.2% of the bill to cache rebuilds versus 0.8% on GPT; past 30 minutes both families lose about 8%.
  • Pauses of 5 to 10 minutes alone cost Claude 8.0% of the bill, more than all breaks over an hour combined (5.3%).
  • On Claude Opus 5.5 one missed cache on a 207K-token prompt adds about $1.06; the article estimates roughly $69 per developer per month from four short breaks a day.
  • Turning on the 1-hour cache from turn 1 costs 2.0x on every write and made 87% to 89% of sessions pay more; switching a warm 5-minute cache mid-session rewrote the full prompt in live tests.
  • Keep-alive requests with max_tokens: 0 after about 4.5 idle minutes kept caches warm past 13.5 minutes in live tests, cutting the Claude coding bill by an estimated 8% to 9% net, with limits such as unsupported thinking and structured-output settings.

Discussion The thread is skeptical and partly dismissive. Several commenters say the article is long, padded and clearly AI-written, and one posts a three-sentence summary instead. The substantive exchange is about whether the finding applies to users at all: commenters point out that Claude Code subscription plans reportedly use a 1-hour cache for the main agent (with subagents on 5 minutes), so the numbers mostly describe API billing. Others note that cache durations are poorly documented and should be measured, and a few offer off-topic remarks about local models, DeepSeek pricing and sandboxing agents.

  • Article is AI-written slop and far too long (many): Several commenters say the text is padded with false precision and that the core point fits in a sentence or two. They call the prose hard to parse and suspect it was generated.
  • Only matters for API billing, not subscriptions (some): Commenters report that Claude Code subscriptions default the main agent to a 1-hour cache, so the 5-minute problem mainly hits API users, subagents and providers like Vertex that default to 5 minutes.
  • Subscriptions are affected too via usage limits (a few): One commenter argues that cache misses still burn subscription usage faster, while another notes that subagents remain on the 5-minute timer even on subscriptions.
  • Set cache TTL in the statusline and measure it (some): Users suggest surfacing the cache timeout in the status bar and raising the TTL when work is interrupted often, and note that many providers do not publish their cache lifetimes, so measuring billing or time-to-first-token is the reliable approach.
  • Cheaper or local models avoid the problem (a few): Some argue that DeepSeek or local models sidestep the cost, and one reports that a local model now covers tasks that used to need a cheap hosted model; these remarks are mostly off-topic.

Links from the comments

#promptCaching #claudeApi #llmCosts #codingAgents #anthropic