By Sagar Shankaran, Founder of CallSphere
Caching, batching, and model routing to keep parallel Claude Code agents cheap and fast on desktop — with a 6-step plan and cost breakdown.
Key takeaways
Parallel agents are the most expensive thing you can do with Claude Code, and the cost sneaks up on you. A single orchestrator that fans out to several subagents doesn't just multiply the work — it multiplies the context. Every subagent re-reads instructions, re-loads relevant files, and re-establishes its own working memory. Run that across four or five workers and a task that would have cost a modest amount as a single agent can cost several times more in tokens. On desktop, where you may trigger these runs casually throughout the day, that adds up quickly. The good news: most of the waste is structural and removable without hurting quality.
Before optimizing, find the spend. In a parallel run, the dominant costs are usually: the orchestrator's growing transcript as it coordinates; each subagent re-reading the same large files or instructions; and chatty tool loops where the agent makes one call, waits, makes another, and re-sends the entire context each time. The reasoning tokens — the part you actually want — are often a minority of the bill. That's encouraging, because it means you can cut cost without making the agent dumber.
A useful mental model: every token in the context window is paid for on every turn it survives. A 30,000-token file that stays in context for ten turns is paid roughly ten times. So the cheapest optimization isn't generating fewer output tokens — it's not carrying input tokens you don't need, and making the ones you do carry cacheable.
Prompt caching lets Claude reuse a previously processed prefix of the context at a large discount instead of reprocessing it. The rule is mechanical: put the stable, reused parts of your prompt — system instructions, tool definitions, shared reference docs — at the very front and keep them byte-for-byte identical across calls. The volatile parts (the specific task, the latest tool result) go at the end. Because subagents in a parallel run share the same instructions, a well-structured cacheable prefix pays off across every worker.
flowchart TD
A["Build prompt"] --> B{"Stable prefix
unchanged?"}
B -->|Yes| C["Reuse cached prefix
cheap"]
B -->|No| D["Reprocess prefix
full price"]
C --> E["Process only new suffix"]
D --> E
E --> F["Model responds"]
F --> G{"Within run budget?"}
G -->|No| H["Abort & report"]The biggest mistake people make is invalidating the cache by accident — injecting a timestamp, a random ID, or reordering tool definitions on each call. Anything that changes the prefix forces full reprocessing. Keep the prefix deterministic and you keep the discount.
Hear it before you finish reading
Talk to a live CallSphere AI voice agent in your browser — 60 seconds, no signup.
Each tool round trip resends the full context. If an agent needs to read five files, the expensive pattern is five separate turns, each re-paying for the entire conversation so far. The cheap pattern is to request all five in a single turn when the model supports multiple tool calls per response, or to provide a tool that reads many files at once. Fewer turns means fewer reprocessings of the accumulated context.
// Expensive: 5 turns, context resent each time
read("a.ts") -> wait -> read("b.ts") -> wait -> read("c.ts") ...
// Cheap: 1 turn, batched
read_many(["a.ts", "b.ts", "c.ts", "d.ts", "e.ts"])Design tools that take lists. A grep-and-read tool that returns the matching files' contents in one call collapses what would have been a dozen turns into one, and the savings compound across every parallel worker doing similar discovery.
Not every subtask deserves your most expensive model. A run that uses Opus to rename variables is overpaying by a wide margin. The pattern that consistently wins is tiered routing: use Haiku for mechanical, well-specified work (formatting, simple edits, classification), Sonnet as the default for most coding and analysis, and reserve Opus for genuinely hard reasoning or planning. In a multi-agent setup the orchestrator can assign each subagent a model based on the nature of its slice.
| Work type | Model | Why |
|---|---|---|
| Formatting, simple edits, triage | Haiku 4.5 | Cheapest, fast, good enough for mechanical tasks |
| Most coding, refactors, analysis | Sonnet 4.6 | Strong default; best cost-to-capability balance |
| Hard planning, gnarly reasoning | Opus 4.8 | Most capable; reserve for where it earns its cost |
The orchestrator should hand each subagent the minimum it needs: a clear task, pointers to the relevant files, and a short summary of shared context — not the entire conversation and not whole files it can read on demand. A common anti-pattern is the orchestrator dumping the full repository map into every worker. Pass a path and let the worker read selectively. Leaner context is cheaper on every turn and, as a bonus, often improves quality because the model isn't distracted by irrelevant material.
In a long parallel run, the orchestrator's transcript grows turn after turn as it coordinates workers, and that growing history is re-paid on every subsequent turn. Left unchecked, coordination overhead can eventually dwarf the useful work. The fix is periodic compaction: replace a long run of completed, no-longer-relevant turns with a short summary of what was decided and what state remains. The orchestrator keeps the decisions it needs and sheds the verbose tool chatter that produced them.
Be deliberate about what survives compaction. Keep the task definition, the current plan, and the outstanding subagent results; drop the intermediate tool transcripts that have already been folded into those results. Done well, compaction holds the orchestrator's working context roughly flat across a long run instead of letting it climb linearly, which is often the difference between a run that costs a reasonable amount and one that costs many times more for the same output.
Still reading? Stop comparing — try CallSphere live.
CallSphere ships complete AI voice agents per industry — 14 tools for healthcare, 10 agents for real estate, 4 specialists for salons. See how it actually handles a call before you book a demo.
Multi-agent runs typically use several times more tokens than a single agent because each subagent maintains its own context and re-reads shared material. Use parallelism deliberately for genuinely independent work, not as a default.
Prompt caching reuses a previously processed prefix of the context at a large discount instead of reprocessing it. It matters most in parallel runs because all subagents share the same instructions, so a stable, deterministic prefix pays off across every worker.
No. Route by difficulty: Haiku for mechanical work, Sonnet for most coding and analysis, and Opus only for hard reasoning or planning. Tiered routing cuts cost substantially without hurting outcomes.
Set a per-run token budget that aborts the run when exceeded, and add a no-progress detector so a looping worker fails fast instead of silently consuming tokens.
CallSphere uses the same cost discipline — caching, batching, and right-sizing the model — to run voice and chat agents that handle every call and message affordably at scale. See how it works at callsphere.ai.
Source & attribution: This is an independent, original explainer inspired by Anthropic's coverage on the Claude blog. Claude, Claude Code, Claude Cowork, Claude Opus, and the Model Context Protocol are products and trademarks of Anthropic. CallSphere is not affiliated with or endorsed by Anthropic.

Written by
Sagar Shankaran· Founder, CallSphere
LinkedInSagar Shankaran is the founder of CallSphere, where he builds production AI voice and chat agents deployed across healthcare, hospitality, real estate, and home services. He writes about agentic AI, LLM engineering, and shipping voice agents that handle real calls in production.
See how AI voice agents work for your industry. Live demo available -- no signup required.
Anthropic's Claude Fable 5 and Mythos 5 explained: pricing, availability, frontier benchmarks, the dual-model safeguard architecture, and what they mean for AI agents.
Where Claude Code, MCP, and multi-agent systems are taking GTM engineering next, and how to prepare your team now for standing and multi-agent workflows.
Where Claude Cowork and the Claude agent ecosystem are heading next — standing agents, MCP, skills as a moat — and the concrete moves to prepare your team now.
The metrics, leading signals, and anti-metrics that prove Claude Cowork is working — acceptance rate, time-to-outcome, and why usage counts mislead.
Shipping an agentic GTM workflow is easy; proving it works is hard. The metrics, signals, and eval loops that show a Claude Code rebuild is paying off.
A realistic end-to-end Claude Cowork use case: a quarterly vendor-spend review from vague ask to shipped deliverable, with every agentic step shown.
© 2026 CallSphere Inc. All rights reserved.
Made within San Francisco
Watch how CallSphere handles real customer calls, schedules appointments, and processes payments — live.
Try Live DemoBook a DemoCalculate Your ROI