The Claude Code cost of a fleet that delegates most of its work is set by one thing: what enters the orchestrator’s context. The worker agents can read thousands of files, and that does not change the orchestrator’s bill if all it ever reads is a short result file. This post puts measured numbers on that claim, from our own delegation playbook and from fleet runs between 2026-10-30 and 2026-11-29, and uses Anthropic’s published guidance only where we have verified it. It is the cost chapter of shipping a SaaS product with a fleet of AI coding agents.
What does an AI agent fleet cost?
It costs the orchestrator’s context plus whatever the workers bill, and the two behave very differently. The orchestrator pays for tokens it reads and writes. Workers on a subscription cost nothing per call. Workers on a metered engine cost a small, visible amount per agent.
| Cost line | Who pays | Measured size |
|---|---|---|
| Brief the orchestrator writes | Orchestrator | About 600 tokens out |
| Report the orchestrator reads | Orchestrator | About 400 tokens in |
| Verification grep | Orchestrator | About 300 tokens |
| Same work done directly | Orchestrator | Tens of thousands of tokens |
| Worker on a subscription engine | Quota | No per-call cost |
| Worker on a metered engine | Dollars | Cents per task |
The first four rows are from the delegation playbook’s cost model: a full workstream, meaning a new module, a migration, a repository and its tests, costs the orchestrator roughly 1,300 tokens in total when delegated. The “tens of thousands” figure for direct work is the playbook’s own estimate rather than a measured benchmark, so read it as an order of magnitude.
How does the orchestrator’s context become the bill?
Because every request carries the whole conversation. Anthropic’s cost guidance says token costs scale with context size, and that Claude Code sends the full conversation with each request (Claude Code costs). Prompt caching reduces the cost of re-reading that history, but it does not make it free, and a one-line question in a long session still draws on the whole thing.
That is why a diff pasted into the orchestrator is expensive: it is read once and then re-read on every later turn. A diff the orchestrator never reads costs nothing. The delegation method follows from that:
- The worker reads the repository. The orchestrator reads a 30-line result file.
- The orchestrator verifies with targeted greps and real commands, not by reading diffs.
- The orchestrator writes briefs from facts it already holds, so it never re-reads code to write one.
The saving only exists if the payload never comes back into the orchestrator’s context. An orchestrator that delegates and then reads every changed file has paid for both. The checks that replace reading are in reviewing agent output.
What did a 17-agent fleet cost?
It cost $3.52 for 17 agents in 215 seconds. On 2026-11-29 we ran a staggered fleet of ten product-page drafts and seven comparison write-ups through a metered Grok CLI on one Linux machine. All 17 agents exited cleanly (from the fleet run output).
| Measure | Value |
|---|---|
| Wall time | 215 s |
| Total cost | $3.52 |
| Input tokens | 1,311,458 |
| Cache-read tokens | 9,740,928 |
| Output tokens | 155,462 |
| Reasoning tokens | 23,985 |
The per-agent view is more useful than the total. The ten drafting agents took 52 to 84 seconds and 6 to 13 turns each, at $0.065 to $0.123 per agent. The seven comparison write-ups took 106 to 174 seconds and 10 to 17 turns, at $0.203 to $0.591 each. A comparison write-up took more turns and cost more per agent than a product draft; the ranges above do not overlap in their upper halves.
Notice the token mix. Cache-read tokens were about seven times the fresh input. In an agent loop the same context is re-sent each turn, so most of the volume is cached re-reads. If your cost model counts only fresh input and output, it will be wrong in the other direction.
What do cheap engines cost on the same brief?
Pennies, and sometimes nothing. In the 2026-10-30 comparison we gave the same two briefs, a code task with hidden tests and a research article, to three engines in separate worktrees.
| Engine | Billing | Cost for both tasks | Code task | Research article |
|---|---|---|---|---|
| Gemini-model engine, older model tier | Subscription quota | No per-call cost | About 5 min, 20/20 | About 40 min, mixed specs |
| Gemini-model engine, fast tier | Subscription quota | No per-call cost | About 5½ min, 20/20 | About 10½ min, under word minimum |
| DeepSeek Flash harness | Per token | About $0.11 | 2 to 2½ min, 20/20 | 9½ to 17 min, met the brief |
The fact-check pass in a fresh session took about 4½ minutes on either engine and made the same corrections; on the metered engine it cost about 2 cents. Our rule is that free wins when quality is close.
“Free” needs a footnote. A subscription engine has a weekly allowance and a rolling window, so a large fleet is a decision about the rest of the week. That is the reason for a quota gate in front of every launch. A metered engine costs dollars but has no bucket to empty.
Is the cheaper model worth it for research?
Sometimes the metered one is the cheapest correct answer. We built a library of 60 product models, with each fact tied to an exact quote from a current source, and compared three ways of producing it (from the 2026-11-28 comparison).
| Engine | Exact-quote rate | Cost |
|---|---|---|
| DeepSeek Flash harness | 99% | $1.38 |
| Gemini-model engine, high effort | 95% | Free |
| Claude Sonnet | 97% | Not itemized; slowest on sites that block automated fetches |
On accuracy per dollar the metered harness won: 99% for $1.38 for the whole library. The free engine had the most coverage but looser sourcing. Which is “cheapest” depends on whether a wrong fact costs more than the difference. The pattern that made it work was to research once into a verified library, check every quote mechanically, then write pages from the library with no web access and a deterministic grader. That moves the expensive, error-prone step to one place.
How do you estimate a fleet before you launch it?
Multiply per-agent figures you measured, and label the result as an estimate. From the 17-agent run, a drafting agent cost $0.065 to $0.123, so a hundred such agents would land between about $6.50 and $12.30 if the brief shape and the engine stay the same. That is arithmetic on a measured range, not a measurement of a hundred-agent run, and it ignores any retries.
Three adjustments make the estimate honest:
- Use the range, not the mean. The spread inside one job type was nearly twofold for drafts and nearly threefold for comparisons. Budget for the top of the range.
- Price retries separately. A 429 that restarts a step re-reads its context. On a flat plan that is a scheduling cost; on a metered engine it is a dollar one.
- Run a pilot of ten to twenty. Anthropic’s own guidance for estimating team spend is to start with a small pilot group and use the tracking tools to set a baseline before a wider rollout (Claude Code costs). The same advice works for a fleet.
Record tokens and cost per job in the job folder, so the pilot gives you the baseline for free. The queue that does the scheduling is in a queue runner for AI agent fleets, and the plan-budget stop is covered in 505 agents on a flat-rate plan.
Where does the hidden cost sit?
In the tools that wrap the work. A handoff to a second coding agent through a plugin cost about 7,000 orchestrator tokens in wrapper text alone, versus just the brief for the CLI launched directly (from the playbook). That is more than five times the 1,300-token workstream above, before the worker has done anything. We dropped that route for that reason.
Anthropic’s own guidance points the same way for multi-agent setups. Agent teams, where each teammate has its own context window, use about 7 times more tokens than a standard session when teammates run in plan mode, and the page recommends keeping teams small and shutting teammates down when they are done (Claude Code costs). The guidance for subagents is to delegate verbose operations so that output stays in the subagent’s context while only a summary returns. That is the same principle as our result file.
How do you reduce AI coding costs in practice?
Cut what enters the orchestrator, then match the model to the task. In order of impact for us:
- Delegate reads. Let workers read the code and return a short result. Verify with commands.
- Settle decisions in the brief. A brief that makes every judgement call lets a cheaper model do the typing safely. If a brief seems to need the expensive model, it is underspecified.
- Pick the model per task. Anthropic’s guidance says the mid-tier model handles most coding tasks and costs less than the top tier, which should be reserved for architecture and multi-step reasoning.
- Keep context small. Clear between unrelated tasks, and move one-off instructions out of the always-loaded file.
- Measure per agent. Record tokens and cost per job, so an expensive brief shape is visible.
The routing detail is in model delegation by task.
What broke and what we changed
The free engine is not free. A large fleet draws on a quota with a weekly cap, so every launch passes a quota gate.
Fresh input alone understates volume. In the 17-agent run, cache reads were about seven times fresh input. We use the CLI’s own dollar figure and keep the token breakdown beside it.
A wrapper cost more than the brief. A plugin handoff cost about 7,000 tokens of overhead, so the playbook says to launch the CLI directly.
Reading diffs puts the payload back. It returns the work to the orchestrator’s context and erases the saving, so verification is greps and real commands, and the report is a result file.
A cheap research run used stale sources. The cost was low but the sources were wrong. The fix was a sourcing rule and a fresh-session fact-check, not a bigger model.
Related
Frequently asked questions
How much does Claude Code cost?
On the API, Anthropic reports an average of about $13 per developer per active day and $150 to $250 per developer per month across enterprise deployments, with 90% of users under $30 per active day. Subscription plans price separately. Your number depends on model, codebase size and how many sessions run at once.
What drives the cost of an AI coding agent fleet?
What each model reads and writes. For the orchestrator that is the brief, the report and any verification output. For the workers it is their own context. A fleet is cheap for the orchestrator when workers read the code and the orchestrator reads only a short result file.
How do you reduce AI coding costs without losing quality?
Keep verbose work out of the main context, pick the model per task, and write briefs that settle decisions so a cheaper model can execute. Anthropic's own guidance says the same. Delegate verbose operations to subagents, clear between tasks and match the model to the job.
Is a free engine really free?
Free per call, not free overall. A subscription engine draws on a weekly and a rolling window of quota, so a large fleet has a cost in availability. We gate launches on remaining quota for that reason. A metered engine has a visible dollar cost and no quota to protect.
Why measure cost per agent?
Because a fleet total hides the outliers. In one 17-agent run the cheapest agent cost $0.065 and the most expensive $0.591. Per-agent figures show which brief shape is expensive, so you fix the brief and not the whole fleet.
