AI Coding Agents
Why Multi-Agent Setups Multiply Your Token Bill
Fresh Claude Code subagents run their own prompts and make requests that count toward the same usage limits as the main conversation. With prompt caching enabled, they warm separate caches, while a conversation fork can reuse a warm parent prefix. Anthropic reports about 4x the tokens of chat for agents and 15x for multi-agent systems in its research data, and Claude Code reports about 7x standard-session tokens for agent teams in plan mode.
Delegation can isolate verbose work, run independent subtasks in parallel, and give each agent its own context window. Compare these benefits with the added requests and the time spent integrating results.
Where the extra tokens come from
A single session can reuse an eligible, matching prefix while it stays warm. Delegation changes the bill in several ways.
- Cold start. A fresh Claude Code subagent starts with an isolated context window and a delegation message summarizing the task. It starts without the parent’s conversation history, previously invoked skills, and file reads. A teammate in an agent team loads project instructions, MCP servers, and skills as well as the lead’s spawn prompt. The lead’s conversation stays in the lead’s session.
- Independent growth. The subagent builds its own history of reads, searches, and tool results. Its call and returned result append to the parent conversation, leaving the parent’s cached prefix intact. Team usage grows with how many teammates are active and how long they run.
- Shared usage limits. Subagent requests count toward the same usage limits as your main conversation. Each active teammate continues consuming tokens until it exits.
- Separate cache lifetime. Subagent and in-process teammate requests fall outside the main conversation’s cache TTL bucket, so Claude Code requests five minutes by default, including on a Claude subscription. As of November 30, 2026, Claude Code v2.1.242 and later can request a one-hour TTL for this bucket with the
subagentPromptCacheTtlsetting at1h. Higher-priority controls and provider support can affect the effective TTL. API cache writes use the higher one-hour rate.
A Claude Code conversation fork inherits the parent’s history, system prompt, and tools. Its first request can reuse the parent’s cache while the matching prefix is still warm. Consider a fork when a task would otherwise need the subagent to reconstruct background the parent already gathered. See cache-safe subagent forking.
The published multipliers
| Source | Setup | Reported multiplier or finding |
|---|---|---|
| Anthropic multi-agent research post (June 13, 2025) | Lead agent plus parallel subagents on research tasks | Agents used about 4x chat tokens and multi-agent systems used about 15x. A multi-agent system with an Opus 4 lead and Sonnet 4 subagents outperformed single-agent Opus 4 by 90.2% on Anthropic’s internal research eval |
| Same post, BrowseComp analysis | Browsing-agent benchmark | Three factors explained 95% of performance variance. Token usage alone explained 80%. Tool calls and model choice were the other factors. |
| Claude Code costs page | Agent teams, experimental | Approximately 7x more tokens than standard sessions when teammates run in plan mode, because each teammate maintains its own context window as a separate Claude instance |
| Claude Code agent teams page | Team sizing | Token costs scale with the number of active teammates. The guide suggests starting with 3 to 5 teammates for most workflows. |
| Codex subagents docs | Spawned agents | Subagent workflows consume more tokens than comparable single-agent runs. Subagents inherit the parent’s model and reasoning effort by default. Higher reasoning effort increases response time and token usage |
The 80% figure describes BrowseComp performance variance, while the 4x and 15x figures compare token use with chat. Neither was measured on coding work, and Anthropic notes that most coding tasks involve fewer truly parallelizable tasks than research. A coding team should measure cost and quality on its own tasks, especially when agents need to share context or coordinate changes to the same parts of a repo.
Estimate the API bill
For each agent, multiply fresh input tokens, cache write tokens, cache read tokens, and output tokens by their respective rates per million, then divide the sum by one million. Add the resulting costs across agents. If a rate changes by model, cache duration, or request tier, price each group of tokens at its applicable rate.
Use these API rates as of November 30, 2026. Claude Sonnet 5.5 costs $2 per million fresh input tokens, $2.50 per million for five-minute cache writes, $0.10 per million for cache reads, and $10 per million for output. Claude Haiku 5.5 at up to 100,000 input tokens per request costs $0.10, $0.125, $0.01, and $0.50 per million in the same order. See the pricing index for current rates.
Both main sessions start cold. Assume the orchestrator writes a 25,000-token prefix, then uses 20,000 fresh input tokens, 40,000 cache-read tokens, and 4,000 output tokens. The single agent also writes a 25,000-token prefix and uses 60,000 fresh input tokens, 200,000 cache-read tokens, and 12,000 output tokens. Each of the three fresh subagents writes a 25,000-token prefix and uses 50,000 fresh input tokens, 75,000 cache-read tokens, and 8,000 output tokens across its session. All writes use the five-minute TTL. Each Haiku request stays at or below 100,000 total input tokens, including cache reads and writes.
| Configuration | Token math | Estimated cost |
|---|---|---|
| Single agent, Sonnet 5.5 | $0.0625 write + $0.12 fresh input + $0.02 cache reads + $0.12 output | ~$0.32 |
| Orchestrator, Sonnet 5.5 | $0.0625 write + $0.04 fresh input + $0.004 cache reads + $0.04 output | ~$0.15 |
| 3 subagents, Sonnet 5.5 | 3 × ($0.0625 write + $0.10 fresh input + $0.0075 cache reads + $0.08 output) | ~$0.75 |
| Orchestrator + 3 Sonnet subagents | $0.1465 + $0.7500 | ~$0.90, or 2.8x the single-agent estimate |
| Orchestrator + 3 Haiku subagents | $0.1465 + 3 × ($0.003125 + $0.005 + $0.00075 + $0.004) | ~$0.19 |
At the same token counts per subagent, six subagents double the subagent subtotal. Using Haiku 5.5 lowers the estimate below the single-Sonnet total at the assumed usage. Check whether the cheaper model completes the delegated work to the same acceptance standard, since extra searches, retries, or parent rework can change that total. A Haiku 5.5 request above 100,000 total input tokens moves to the higher tier for that request, including its cached input and output charges.
In local Codex, ask for delegation directly or request it in applicable AGENTS.md or skill instructions. Set agents.max_concurrent_threads_per_session to cap open spawned threads, excluding the primary. Configure agents.default_subagent_model and agents.default_subagent_reasoning_effort to set defaults. Explicit spawn values take precedence. If a spawn request or default selects a model without specifying or configuring effort, the subagent uses that model’s default effort.
The case against parallel agents
Cognition’s “Don’t Build Multi-Agents” argues that actions carry implicit decisions. Decisions made in separate contexts can conflict when the outputs have to fit together. Cognition uses a hypothetical Flappy Bird build to illustrate how one agent can decide how to draw a background while another makes incompatible choices for the bird. Its account of Claude Code in June 2025 describes a use for isolated subagents that still applies today. A subagent can do an investigation and return a summary, keeping verbose reads and tool output out of the parent’s history.
Anthropic’s research example split a broad question into independent searches and combined the findings as text. For coding work, use that distinction to assign ownership. Separate agents can review different modules against the same acceptance checks. A change to an interface and the migration of its callers may need the same agent because a decision in either part can change the other.
When the multiplier pays for itself
Anthropic’s research system ran 3 to 5 subagents in parallel, each using 3 or more tools in parallel. It reported cutting research time by up to 90% on complex queries after introducing both changes. Claude Code recommends a single session or subagents for sequential work, same-file edits, and tasks with many dependencies. Anthropic’s research post also flags tasks that require shared context or frequent coordination.
For a coding workflow, try parallel exploration when the lead can assign independent questions and merge the answers. A dependency audit can group findings by module, and a review can give separate agents distinct concerns to check. For output-heavy work such as test or log analysis, one subagent can collect evidence and send back the failures and relevant locations. If it needs the parent’s current investigation, consider a fork and check whether the cache is warm. If it needs just a task and a repository, try a fresh subagent with a narrowly scoped assignment.
Assign each subagent a result the lead can verify. For a dependency audit, ask for the affected callers, the file locations that support the finding, and any uncertainty that needs a second read. Give each agent the same requirements for evidence. The lead can then check the cited files and combine the findings. Include this verification in the cost of delegation. Long summaries can shift the input burden from the delegated session to the lead, which then carries that text into later requests.
Start with a small team and scope each assignment so that its output can be used independently. For a task with a large shared design decision, settle the decision in the lead session before handing out implementation work. If a teammate spends most of its time reconstructing a decision that already exists, narrow the assignment or pass the relevant decision and evidence in the spawn prompt. When an assignment finishes, stop the teammate so it can no longer incur work on that task.
What to do next
Run the same representative task from the same starting state with one agent and with a small team. Define acceptance checks before either run. For a code change, specify the behavior the patch must preserve and the tests that need to pass. For a review, specify the evidence required for an actionable finding. Reset the checkout and use the same source data, tool access, lead model, and starting cache condition. If you also switch subagents to a cheaper model, record that choice as part of the configuration.
Record elapsed time, fresh input, cache reads, cache writes, output, and rework. Include synthesis and integration in elapsed time. A teammate that finishes early can still leave the lead with a conflict or an incomplete result to resolve. Price token categories separately, using the actual model and rate for each agent. If both runs pass, compare API cost and elapsed time. If a run fails, record the failed outcome before interpreting its token total. Repeat on a few representative tasks before deciding whether the time saved or quality gained justifies the cost.
Review the lead and subagent totals separately. A drop in the lead’s input can coincide with rising overall input once every worker’s cache reads and fresh tokens are included. If the team is faster, check which work overlapped and which work the lead still had to redo. For API billing, compare the added estimate with the time saved on an accepted result. For a subscription, record the usage shown by the client alongside elapsed time. The API rate table estimates metered charges, while the subscription comparison depends on how much of the plan’s available usage the runs consume. Keep the decision specific to the task type. A broad review and a small edit have different coordination costs and should have separate baselines.
If a single-agent run fails and a delegated run passes, examine the failure before deciding what to repeat. Independent investigations may have surfaced evidence the single agent missed, or a teammate may have corrected an error during review. Run the comparison again if either outcome depends on a transient test failure or unavailable tool. When elapsed time is the main constraint, record the deadline and check whether the accepted result arrived within it after review and integration.
See measure coding agent token savings for a measurement procedure, coding agent effort router for choosing model effort by task, and cheapest model accepted task cost for combining cost and acceptance in one comparison.
Sources
- How we built our multi-agent research system (Anthropic, accessed 2026-11-30)
- Claude Code costs (Anthropic, accessed 2026-11-30)
- Claude Code subagents (Anthropic, accessed 2026-11-30)
- Claude Code agent teams (Anthropic, accessed 2026-11-30)
- Codex subagents (OpenAI, accessed 2026-11-30)
- Don’t Build Multi-Agents (Cognition, accessed 2026-11-30)
- Claude pricing (Anthropic, accessed 2026-11-30)
- Claude Code prompt caching (Anthropic, accessed 2026-11-30)
How this note was produced
Drafted with AI assistance from committed ByteCosts pricing snapshots and deterministic cost formulas. Figures are grounded in the linked sources (last updated 2026-11-30). Read our editorial & automation policy, inspect the methodology, or report a discrepancy.
Why Multi-Agent Setups Multiply Your Token Bill. ByteCosts. Updated 2026-11-30. https://bytecosts.com/blog/multi-agent-token-amplification/