The Five-Minute Cache Is a Tax on How We Work
Prompt caching can make repeated AI work cheaper, but its short-lived savings depend on how people and systems actually use the model.
A five-minute prompt cache can lower the cost of repeated context, but its value depends on reuse patterns, not headline rates alone. Measure cache writes, reads, expirations, and total task cost before changing prompts or model settings.
A coding assistant can appear cheaper when it remembers more, then charge extra because its memory expired while a developer was thinking. That small contradiction sits inside a large share of AI economics: the unit being priced is not only the answer, but the timing and shape of the work that precedes it.
A Requesty analysis, discussed on Hacker News, estimates that Claude’s five-minute prompt-cache window can account for 23% of a coding bill in some usage patterns. That figure is a useful provocation, not a universal tariff. The real cost depends on how much context is repeated, how often the cache expires, which model and cache duration are used, and how much of the bill comes from generated output.
The bill has a clock inside it
Prompt caching lets a model reuse an eligible prefix instead of processing the same input from scratch. For Claude, the commonly discussed five-minute option charges more to write a cache than ordinary input, then much less to read it again. Anthropic’s published pricing has described a five-minute cache write at 1.25 times base input and a cache read at 0.1 times, though exact rates depend on model and product terms.
The bargain is straightforward when work arrives in a tight loop. A coding agent may repeatedly send its system instructions, repository map, and stable task context while inspecting files and proposing edits. If those requests stay within the cache window, the costly prefix is written once and read cheaply on subsequent calls.
But software work is not a tight loop all day. A developer reviews a diff, attends a meeting, runs a test suite, or waits for a deployment. A pause beyond the cache lifetime can turn the next request into another cache write, even when much of the prompt looks identical. The model has no sense of continuity. It has a priced boundary in time.
The diagram captures the key distinction: caching is not a discount attached to a prompt forever. It is a lease on repeated computation, and the lease has an expiry condition. In many implementations, a cache hit refreshes the window, so a steady sequence of calls can keep context warm. An idle gap is where the economics change.
A percentage needs a denominator
A headline percentage can sound like a property of the model, when it is really a property of a workload. If context is a small part of total tokens, or output dominates the bill, cache behavior matters less. If an agent carries a large repository context through many short calls, even a modest number of missed windows can move the total materially.
Consider a prefix with a base input cost of 1 unit. The figures below compare cache charges for a simplified sequence, not a complete coding session. They exclude generated output, tool costs, and any model-specific pricing differences.
| Pattern for a repeated prefix | Illustrative prefix charges | What drives the result |
|---|---|---|
| One uncached request, then one ordinary repeat | 2.00 units | Full input processed twice |
| Cache write, then one hit within five minutes | 1.35 units | 1.25 write plus 0.10 read |
| Cache write, then repeat after expiry | 2.50 units | A new 1.25 write after the first cache expires |
| Cache write, then four hits within the window | 1.65 units | One write plus four low-cost reads |
This arithmetic explains why the 23% estimate should prompt measurement rather than imitation. It can be plausible for a workload with expensive repeated prefixes and frequent expiry, but it cannot be inferred from the five-minute setting alone. A team needs to know the share of spend attributable to cache writes, cache reads, uncached input, and output before it can identify the actual lever.
Design for the work, not the benchmark
The first response should be observability. Record cache creation and read tokens, expiry-related rewrites, prompt size, model, task type, and end-to-end outcome. Then compare cost per completed task, not merely cost per token: an agent that spends less but needs more retries may be more expensive in the only sense that matters.
Next, separate stable context from volatile context. Keep reusable instructions and carefully chosen repository summaries in a stable prefix, while placing changing file excerpts, test output, and user-specific details later. Cache matching depends on prefix structure, so indiscriminate prompt rearrangement can break reuse or preserve content that no longer belongs in the request.
There is also a product choice. A longer cache duration may cost more to write, but that premium can be rational when human pauses are common and context is expensive. The break-even point depends on how often the context is reused before expiry, so teams should test representative sessions rather than extrapolating from uninterrupted benchmarks.
This is where architecture meets organizational rhythm. A developer’s pause is not an exception to real usage. It is part of the workflow. A biotech analyst waiting for an instrument run, an adtech operator checking campaign performance, and a robotics engineer reviewing a field log all create different reuse patterns, even if their prompts have similar token counts.
The deeper lesson is that AI cost is increasingly shaped by coordination between human time and machine state. Systems that expose those interactions let teams choose where to spend: on longer-lived context, better task boundaries, smaller prefixes, or simply accepting a fresh write when the pause protects human judgment. The right answer is not always maximal cache efficiency.
A five-minute timer is therefore not merely a pricing detail. It is an architectural constraint that turns attention, latency, and context reuse into one economic decision. Treat it as a measurable property of the workflow, and the bill becomes less mysterious without pretending that every pause can or should be optimized away.
Discussion (4)
In a recent benchmark, we saw a 3.2x spike in prompt cache writes when developers paused between edits, just 90 seconds beyond the 5-minute window. The model treated identical context as fresh input. What looked like efficient reuse collapsed under real-world workflow noise. The cache isn’t just a timing boundary, it’s a state machine with no awareness of developer intent.
That pricing structure creates invisible compliance friction. We can't risk five-minute windows expiring during mandatory legal reviews or security scans. Our audit trail requires deterministic costing, so we treat the cache as nonexistent and architect around it. The real tax isn't the cost, it's the engineering overhead to make AI usage predictable under regulation.
This misses a simpler counterplay: just don't use their managed cache. I ship a session-aware local proxy that bundles related requests. It reuses my own context and only hits the API for net-new reasoning. It bypasses the vendor's time tax entirely and makes my cost predictable.
You’re right, bypassing vendor caches entirely is the cleanest way to eliminate the time tax. But building a reliable local proxy that tracks session state, handles partial failures, and avoids drift in context alignment is its own embedded systems problem.
I’ve seen teams spend weeks tuning the state machine behind such a proxy, only to lose more in dev time than they saved on API costs. The real tradeoff isn’t just cost, it’s whether your team can afford the maintenance burden of a stateful, edge-side cache that must stay in sync with the model’s internal semantics.