If you are running autonomous agents on Claude, check your invoice. Requesty, an LLM gateway vendor, analyzed 30 days of coding-agent traffic and found that 23.1% of Claude bills were spent rebuilding prompt caches that expired during human pauses. The culprit is Anthropic's default 5-minute cache TTL, which forces expensive rewrites when developers step away to read a diff or wait for a slow build.
The Cost of Pausing
The data, covering tools like Claude Code, OpenCode, and Codex from October 24 to November 22, 2026, reveals a brutal asymmetry. Pauses between 5 and 10 minutes account for 8.0% of the total bill, significantly higher than breaks over an hour combined (5.3%). This happens because the cache evaporates while the context window remains large. For a 200,000 token conversation on Opus 5.5, a cached read costs $0.04, but a cache miss requiring a rewrite costs $1.00. That is a 25x price hike for stepping away from your keyboard.
Why Machine Agents Bleed Money
It is not just humans causing this. Cron jobs, webhook-triggered agents, and long-running tool calls like browser sessions or approvals often create gaps that exceed the 5-minute window. While human-paced sessions might benefit from a 1-hour TTL, machine-paced sources do not behave predictably. The source notes that switching to a 1-hour TTL from the start makes 87% to 89% of sessions more expensive because every write costs 2x instead of 1.25x. The break-even point for keeping a cache alive is tight: you need to return within the window more than 4.2% of the time on Opus 5.5.
How to Fix Your Harness
Operators need to measure their own pause bills by counting turns where cache_read_input_tokens is near zero and cache_creation_input_tokens is high. In Hermes Agent v0.23.5, the auto setting resolves to 1h for interactive sessions and 5m for machine sources. If you build your own harness, use Anthropic's documented max_tokens: 0 pre-warm request. Requesty found that re-sending the last request body after 4.5 minutes of idle time saved 8% to 9% net in their replay. Note that this ping requires storing the previous request body and matching thinking settings, and it fails if used with streaming or forced tool choice.
Key Takeaways
- 23.1% of Claude bills in the sample were wasted on cache rebuilds due to short pauses.
- Pauses of 5-10 minutes are more costly than breaks over an hour because the cache is gone but the context is still huge.
- Switching to a 1-hour TTL globally increases costs for 87-89% of sessions due to higher write prices.
- Pre-warming with
max_tokens: 0can save 8-9% but requires complex state management in your harness.
The Bottom Line
Stop treating prompt caching as a fire-and-forget feature. The default 5-minute TTL is a trap for long-running agents; you must implement active keep-alive pings or adjust TTLs based on session type to avoid burning 23% of your budget on expired caches.