hn.today

Claude's 5-minute timer is 23% of your coding bill

requesty.ai449 points199 comments
Screenshot of Claude's 5-minute timer is 23% of your coding bill

A 30-day analysis of coding-agent traffic from October 24 to November 22, 2026, argues that prompt-cache expiry - not just token prices - drives a substantial and often overlooked part of coding costs. Across Claude Code, OpenCode, Codex, Pi, and Kilo, 23.1% of Claude spending went to rebuilding caches after pauses, compared with 9.3% for GPT. The key difference is the default cache lifetime: five minutes for Claude versus at least 30 minutes for GPT. Both charge similar rates for cache reads and writes, but a Claude pause of five to 30 minutes triggers a costly rewrite far more often. In that interval, Claude lost 15.2% of its bill, against 0.8% on GPT; for breaks longer than 30 minutes, losses were similar.

The sharpest costs arise during ordinary short breaks, not overnight: Claude pauses of five to ten minutes alone accounted for 8% of its total bill, more than all breaks over an hour combined. The gap persisted when comparing the same tool and similar-priced models. Sonnet 5.5 and GPT-6.1 Sol both cost $2 per million input tokens, yet an average five-to-30-minute pause was estimated to cost $0.28 on Sonnet and less than a cent on GPT, because their cache-miss rates were 81.2% and 2.3%. Replay models indicate that a 30-minute cache lifetime would bring both families’ pause losses to about 8.7%. The findings suggest that cache lifetime and tool support for longer-lived caches materially affect real-world bills, especially in long-running sessions.

Read on requesty.ai199 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.