How prompt caching pays off disproportionately well in multi-agent systems
Multi-agent supervisors send a large stable prefix (system prompt plus agent roster) on every hop with only a small dynamic suffix; that is exactly the shape prompt caching rewards, and worker reuse compounds the win.
Imagine a courier service where every package gets the same 100-page company manual stapled to the front and a one-page customer note at the back. The first time the receiving warehouse processes a package, they read the whole thing. Every package after, they recognize the manual, skip to the back, and only read the note. That is prompt caching. In single-agent runs, the manual changes too often to skip. In multi-agent supervisor runs, the manual (system prompt plus agent roster) is identical every hop, so the warehouse skips to the note every time and the bill drops a lot. The trick is keeping the manual at the front and never editing it.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Prompt caching is one of the more underappreciated cost levers in multi-agent systems. The mechanism is simple (cached reads cost roughly 10 percent of uncached on Anthropic and OpenAI) but the structural reason it pays off disproportionately well for multi-agent is worth understanding: the supervisor and workers pattern produces prompts with an unusually high ratio of stable prefix to dynamic suffix, which is exactly the shape caching rewards.
This walkthrough explains the ratio, names the discipline that keeps caching working, lists the invalidation traps that silently undo the savings, and shows how worker reuse compounds the win. The goal is to get the supervisor's cache hit rate to 80 percent plus in steady state and keep it there.
Mental model: prompt caching is amortization. The first call pays for the cache; every subsequent call within the TTL pays a tenth. Multi-agent runs reuse the cache many times per task; single-agent runs typically do not.
The structural reason multi-agent benefits more
Single-agent prompt shape
A typical single-agent call:
- System prompt: 1-2K tokens, stable.
- Tool definitions: 0.5-2K tokens, stable.
- User message: 0.5-3K tokens, dynamic.
- Conversation history (if any): variable, partially stable.
Cacheable share: 30 to 50 percent of input tokens. Savings are real but bounded.
Supervisor hop prompt shape
A typical supervisor hop in a multi-agent run:
- System prompt: 1-2K tokens, stable.
- Agent roster description (one-line per worker plus capability summary): 1-3K tokens, stable.
- Tool schemas (every tool available to the supervisor): 2-5K tokens, stable.
- Conversation history of prior hops: 2-5K tokens, mostly stable; only the latest worker output is new each hop.
- Latest worker output: 0.5-1.5K tokens, dynamic.
Cacheable share: 80 to 90 percent of input tokens. The savings compound across every hop.
Why the ratio matters
Cached reads price at roughly 10 percent of uncached. A prefix that is 30 percent of input gives you 0.7 * 1.0 + 0.3 * 0.1 = 0.73, a 27 percent savings. A prefix that is 85 percent of input gives you 0.15 * 1.0 + 0.85 * 0.1 = 0.235, a 76.5 percent savings. The ratio is doing the heavy lifting.
Why this is the natural shape, not a special case
The supervisor's job is to read the latest message and route. The roster, tools, and system prompt are part of who it is, not part of what changed this turn. Designed well, the supervisor's prompt has the largest part of its bytes in the stable prefix by default. The shape rewards caching without engineering effort to make it so.
Situations where this technique stops working.
2–4 min · Everything important, quickly.
Real products, models, and research that use this idea.
- Anthropic's prompt caching docs use the supervisor and workers shape as the motivating example for cached prefixes.
- OpenAI's Responses API and Agents SDK auto-cache prefixes above 1024 tokens, which fits the supervisor shape naturally.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow do Anthropic's cache_control breakpoints differ from OpenAI's auto-caching?
Anthropic requires explicit cache_control: {type: 'ephemeral'} markers on the content block(s) that mark the cache boundary; you control where the breakpoint sits and can have up to 4 breakpoints per request. OpenAI auto-caches any prefix above 1024 tokens with no explicit markers; the API decides the breakpoint. Anthropic gives more control; OpenAI is more automatic. Both reward stable-prefix discipline.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Reordering the prompt or interpolating dynamic content into the middle of a stable prefix, which invalidates the cache on every call and silently doubles the per-hop cost.
60 second bullets to scan on the way to the call.
Why supervisor prompts have a higher cacheable share than single-agent prompts
Cached-read pricing (roughly 10 percent of uncached) on Anthropic and OpenAI
Primary sources. Browse if you want the original framing.
Same topic, related formats. Practice these next.