article --summary
The summary
A gateway provider analyzed a month of coding-agent traffic and found that rebuilding expired prompt caches after short breaks added a sizable share of Claude spending, far more than it did for comparable GPT usage. The main driver is the default five-minute cache window, which can lapse during a coffee break or a long review of agent output, forcing a costly cache rewrite on the next request.
Anthropic defends the five-minute default as cheaper when requests arrive close together, which is typical during agent work, and says its own tests showed it cost less than the one-hour option in that pattern. The article notes that Claude Code uses a one-hour cache for subscription users, while API-key and paid-credit users get the five-minute default. Switching TTL mid-conversation means rewriting the cache, so the choice is best made at the start.
Requesty also tested a keep-alive approach that resends the previous request near the expiry point, which yielded modest net savings but raised costs in many long sessions. Readers who run Claude coding agents can use the cache-hit reporting and settings mentioned in the piece to check their own usage.
Editorial note: This is a summary of an article first published by The New Stack. The full piece is on their site.