TL;DR: If you delegate to subagents, the quality of the brief decides your bill more than the size of the task does.
I ran two Claude Code subagents in parallel on the same job: audit six published blog posts. One used 156,772 tokens, the other 124,621. That is roughly a 26% gap on identical work, and the model, the task and the post count were the same. The only thing that differed was the shape of the input I handed over. If you delegate to subagents, the quality of the brief decides your bill more than the size of the task does. The full write-up is in the original post; this is the version you can act on.
The two runs side by side
Both agents audited the same six posts at the same time. The numbers from the agents' own completion reports:
| Metric | Audit A | Audit B |
|---|---|---|
| Tokens | 156,772 | 124,621 |
| Tool calls | 22 | 11 |
| Duration | 288 s | 182 s |
| Input provided | URL only | URL and title as pairs |
Together they used 281,393 tokens. Audit A made twice the tool calls of audit B and took 106 seconds longer. Nothing in the task description explains that. The input does.
Why audit A cost more
Audit A was given a bare list of URLs. While it was fetching them, a CDN cache error returned the wrong content for three of the posts: the URL resolved, the status was fine, but the body belonged to a different article. A had no way to know that from the URL alone. It eventually noticed the mismatch, then had to re-fetch those three posts.
Audit B was given each URL together with the expected title. When the cache served the wrong body, the title did not match, and B detected it on the first fetch. No guessing, no second round of reads.
That is the whole difference. A pair like (url, expected title) turns "did I get the right thing?" from an investigation into a string comparison. A bare URL leaves the agent to discover its own errors, and discovery costs tool calls, and tool calls cost tokens.
I now require URL and title pairs in every audit harness I write.
Pin the scope, ban the wandering
The same pattern showed up in other runs in my logs. When I pinned the exact files an agent should read and told it not to explore beyond them, one run finished with 9 tool calls. When the task was unscoped, runs in my logs reached 48 to 68 tool calls.
Open-ended web research is the hard case, because there is no fixed file list to pin. The same kind of research task took 45 tool calls on one run and 6 on another on the same day. You cannot fully control that, so for research I treat cost as high-variance and budget for it. For anything with a known target set, pin it.
A brief that works looks like this:
Goal: verify that each of the 6 posts below renders the expected title and has a non-empty body.
Read ONLY these (absolute paths / URLs). Do not read anything else:
1. <url-1> | expected title: <title-1>
2. <url-2> | expected title: <title-2>
...
Done when: all 6 return HTTP 200 AND the page title contains the expected title.
Return: a 6-line table (url, status, title match yes/no). Do not paste page content.
Four rules sit inside that brief:
- List the files or URLs to read and forbid everything else.
- Give targets as verifiable pairs.
- Write completion criteria a machine can check (a grep count, an HTTP status), not ones that need judgment.
- Ask for conclusions only, never pasted content.
The last one matters more than it looks. The two returned reports stayed in the parent context, about 3.8k tokens each by my measurement. Every turn after that carries them. A report that pastes page bodies would carry far more.
You can even make the title check executable instead of asking the agent to eyeball it:
import urllib.request
def title_matches(url: str, expected: str) -> bool:
req = urllib.request.Request(url, headers={"User-Agent": "audit-script"})
html = urllib.request.urlopen(req, timeout=15).read().decode("utf-8", "replace")
return expected in html
pairs = [("https://example.com/", "Example Domain")]
for url, title in pairs:
print(url, title_matches(url, title))
If the check is this mechanical, it may not need an LLM at all. Repetitive, deterministic work belongs in a script.
When not to delegate
Delegation is not free, and I do not use it for everything. Keep these in the main context:
- Small tasks that cost a few hundred to a few thousand tokens inline. Spinning up an agent costs more than doing the work.
- Irreversible operations: schema changes, deploys, bulk deletions.
- Tasks with unclear requirements. A vague brief is exactly what makes cost blow up.
A small task with clear file boundaries can still be worth delegating, but then the reason is parallelism, not savings: you keep working while it runs.
Habits that keep delegation honest
- Log every agent. Record tokens, tool calls, duration and how much rework its output needed. You cannot tune what you do not record.
- Spot-check one or two claims from each report. In one run an agent reported success after uploading images with the wrong keys, and every one of them returned 404. The report sounded confident and was wrong.
- Merge agents that would read the same shared files. Two agents loading the same context pay for it twice.
- Script the deterministic parts instead of asking a model to repeat them.
Limits of these numbers
These figures come from one date, one model tier and one kind of task. Across different tasks in the same log, totals ranged from about 103k to 304k tokens, so treat 156,772 and 124,621 as an illustration of one cause, not as unit prices. The point that does generalize: when two agents do the same work and one costs a quarter more, look at what each was handed before you look at the model.
FAQ
Why audit A cost more?
Audit A was given a bare list of URLs. While it was fetching them, a CDN cache error returned the wrong content for three of the posts: the URL resolved, the status was fine, but the body belonged to a different article.
When not to delegate?
Delegation is not free, and I do not use it for everything.
For the complete harness structure and the logging format I use, read the full post on my blog.
Free tools I keep on my own site: 34 calculators and how-to guides - loans, severance pay, take-home salary, savings vs deposits. New ones go out in one email, no ads.


Top comments (0)