Lesson 5.1: Why split work across sub-agents
Learn when splitting an agent's work across sub-agents helps, from context limits to parallel speed, and when it only adds cost and failure points.
By the end of this lesson you will be able to explain what a sub-agent is, name the four honest reasons to split an agent's work and the three bad ones, estimate what a split costs in tokens, time and reliability, and decide for a given task whether one agent or several is the better design. You will work out that a task split into four parallel sub-agents that each take 3 minutes finishes in about 4 minutes against 12 for a single agent, find that the same split can cut the input tokens from 900,000 to 320,000 when histories grow fast but save much less when they stay short, and see why four steps that are each 95 per cent reliable succeed together only 81.5 per cent of the time. You should have read Lessons 1.4 and 4.3, on the parts of an agent and on managing context. No code is needed. The mathematics is multiplication and a maximum.
Everything so far has been about one agent: one model, one set of tools, one context, one loop. For a great many jobs that is exactly right, and this module begins with a warning for that reason. Most agents should stay single. But some jobs are too wide, too long or too varied for one context to hold, and then the question becomes how to divide the work. A sub-agent is an agent that another agent starts to do part of a job. It has its own instructions, its own tools and its own fresh context, and it hands back a result. The agent that starts it is usually called the parent, the orchestrator or the lead. A system with more than one agent working on a task is a multi-agent system. This lesson is about when that is worth doing. The next three show how.
A picture of the idea
Suppose a finance team asks an agent: "Check the 40 supplier invoices that arrived this week. For each one, confirm the purchase order exists, check the amounts match, look up the supplier's bank details against our records, flag anything unusual and write a one-line verdict. Then give me a summary of the week."
A single agent can do this. It would loop through the invoices, calling tools, one after another, and the history would grow with every invoice. By invoice 30 the context holds the details of 29 earlier invoices that no longer matter, the model is slower and more expensive per step, and it is more likely to mix up two suppliers. Now picture a different design. A lead agent reads the list, hands each invoice, or a batch of five, to a worker, and each worker starts with a clean context containing only its own invoices. The workers run at the same time. Each returns a short verdict. The lead collects the verdicts and writes the summary. The lead's context holds only the list and the short results, and the work finishes sooner.
That is the whole idea, and the rest of the lesson is a list of conditions under which it is better and under which it is worse.
Four honest reasons to split
1. The context would be too large or too cluttered
A model reads everything in its context at every step. Work done earlier in a long run piles up as tool results, drafts and dead ends, even when it is no longer needed. Lesson 4.3 showed one answer, summarising. A sub-agent is another. It does the messy part in its own context and returns only the clean result. The parent never sees the 40 pages of search results, only the three-line conclusion. This is sometimes called context isolation, and it is the most common good reason to split. A research task that reads fifty web pages is a good example. The pages stay in the sub-agent's context and are thrown away when it finishes.
2. The work can run in parallel
If parts of a job do not depend on each other, several agents can do them at the same time. Checking 40 invoices, researching five competitors, or reviewing four documents are all independent pieces. Parallel work does not reduce the amount of work, but it reduces the time you wait. If you are waiting, as a person is during a live conversation, that matters. If the job runs overnight, it often does not.
3. The parts need different instructions, tools or permissions
An agent that must write persuasive customer emails and also check legal compliance and also query a finance database is carrying three sets of instructions, and they can pull against each other. A friendly tone and a strict checker do not sit well in one prompt. A drafting agent with only the writing tools and a reviewing agent with a checklist and read-only access are each simpler to write, test and secure. Splitting by role also lets you give each part the smallest set of permissions it needs, which is a safety benefit as well as a clarity one. The reviewer cannot send an email because it has no such tool.
4. You want an independent check
A model that checks its own work tends to agree with itself. A second agent with different instructions, or a different model, looking at the result with fresh eyes catches mistakes the first would miss. This is the idea behind a reviewer or critic agent. It works best when the reviewer sees the result and the original request but not the first agent's reasoning, so it cannot simply be persuaded by it.
Three bad reasons
"It looks more advanced." A diagram with six boxes feels like a serious system. A single agent that works is better than six that mostly work. Complexity is a cost, not a feature.
"Each agent can be a specialist, so quality will rise." Sometimes. But a specialist prompt is often just a longer instruction, and one agent with good instructions and the right tools can do the same job. Test whether the split improves results before you accept the cost. Often it does not.
"The task is big." Big is not the same as wide. A long task that is a single chain of dependent steps, where each step needs the one before it, gains little from splitting. Only one agent can work at a time, and you have added hand-offs between them.
What a split costs
Splitting is never free. There are three costs, and you should estimate each before you decide.
Tokens
Each sub-agent carries its own copy of the fixed material: its instructions, its tool definitions and the task description the parent wrote for it. If you start five workers, you pay for that fixed block five times. You also pay for the parent to write each task and read each result. Whether the total goes up or down depends on how much context isolation saves.
Here is a worked example. A single agent handles 40 invoices. Each invoice adds about 1,000 tokens to the history, and each step re-sends the whole history. The instructions and tools take 3,000 tokens. Counting only what is sent as input on one pass per invoice, the single agent's input over the run is 40 × 3,000 plus 1,000 × (0 + 1 + … + 39) = 120,000 + 1,000 × 780 = 900,000 tokens. Now split into four workers of 10 invoices each. Each worker sends 10 × 3,000 + 1,000 × (0 + 1 + … + 9) = 30,000 + 45,000 = 75,000 tokens, so four workers send 300,000. The lead adds perhaps 20,000 for writing four tasks and reading four results. The total is about 320,000 against 900,000. Here the split saves more than half, because history that grows with each step was the main cost.
Change the facts and the answer changes. If each invoice adds only 100 tokens, the single agent sends 40 × 3,000 + 100 × 780 = 198,000 tokens. Four workers send 4 × (30,000 + 100 × 45) = 4 × 34,500 = 138,000, plus the lead's 20,000 gives 158,000. The saving is smaller. And if the fixed block is large, say 10,000 tokens of instructions and tool definitions, then four workers pay it 40 times in total against once per step either way, but the extra copies of the base start to matter. The simulator below lets you try these numbers.
Predict first: a single agent handles 40 invoices, with 3,000 tokens of fixed instructions and 1,000 tokens added to its history per invoice, and splitting into four workers of ten adds 20,000 tokens of lead overhead. Would you expect the split to use more total input tokens than the single agent, about the same or fewer? Decide, then run the simulator.
Time
Parallel workers shorten the elapsed time. The time for a split is the lead's planning time, plus the time of the slowest worker, plus the lead's time to combine the results. Suppose each batch of ten invoices takes a worker 3 minutes, the lead needs half a minute to split the work and half a minute to combine. Four workers in parallel take 0.5 + 3 + 0.5 = 4 minutes. A single agent doing all 40 invoices takes 12 minutes if it keeps the same pace per invoice. The saving is a factor of three, not four, because the lead's own time and the wait for the slowest worker are not parallel.
The word that matters is slowest. If one worker draws a hard batch and takes 8 minutes while the others take 3, the whole split takes 0.5 + 8 + 0.5 = 9 minutes. Splitting the work evenly, or into many small pieces handed out as workers become free, reduces this effect. Running more workers than the work can feed also stops helping once the slowest piece dominates.
Reliability
Every hand-off is a place for something to go wrong. The lead might describe the task badly. A worker might misread it. A result might come back in a shape the lead does not expect. If each of four steps in a chain, such as brief, work, return and combine, works 95 times in 100, the whole chain works 0.95 × 0.95 × 0.95 × 0.95 = 0.815, or 81.5 per cent of the time. Splitting adds steps, and each added step multiplies in another number below one. This is why good designs keep hand-offs few, make each one explicit and check it, which Lessons 5.3 and 5.4 cover.
Parallel workers add a different risk. If you need all four to succeed and each succeeds 95 times in 100, all four succeed 0.95⁴ = 81.5 per cent of the time. With ten workers it is 0.95¹⁰ = 59.9 per cent. The more workers whose results you all depend on, the more likely that at least one fails. The answer is to let the lead handle a failed worker, by retrying it or noting the gap, and not to treat one failure as the end of the run.
Single agent first
Given all this, the sensible default is to build one agent first and see where it fails. Five signs that a split would help:
The context fills with material that is no longer needed, and quality or cost suffers as the run goes on.
Independent parts could run at once and someone is waiting.
The instructions have become a long list of rules for different roles that contradict each other.
One part needs a permission you do not want the rest to have, such as sending money or writing to a database.
Mistakes slip through that a second reader would catch.
Five signs that it would not:
The task is a single chain where each step needs the one before.
The whole task fits comfortably in one context.
The pieces need constant back-and-forth about shared details.
The job is small, and the hand-off costs as much as the work.
You cannot yet say how you will test that the split is better.
Many teams find that one capable agent with a good set of tools and a clear instruction beats a team of weaker ones. When a split is right, it is usually small: a lead and two or three workers, or an agent with one reviewer.
The shapes of a split
There are a few recurring shapes. Lessons 5.2 to 5.4 treat them in detail, so here is only the map.
Shape · How it works · Good forOrchestrator and workers · A lead breaks the job into pieces, hands them out and combines the results · Wide jobs with independent parts
Pipeline · Agents in a fixed order, each passing its output to the next · Jobs with clear stages, such as draft, review, format
Router · A first agent chooses which specialist should handle a request · Many kinds of request, each needing different tools
Debate or review · Two or more agents produce or check the same thing independently · High-stakes answers that need a second opinion
Peer team · Agents talk to each other without a single lead · Rarely worth it. Hard to control and to debug
The first three cover most real systems. Be wary of the last. A group of agents that talk freely to one another can loop, argue or drift, and it is hard to see why a result came out as it did.
Three worked examples
Example 1: a research report
A manager asks for a report on five competitors. One agent could research them in turn, but by the fifth it is carrying four competitors' worth of pages. A better design is a lead and five researchers, one per competitor. Each reads many pages in its own context and returns a half-page summary in a fixed format. The lead compares the five summaries and writes the report. The context isolation is the main gain. The parallel speed is a bonus. The cost is higher total tokens, since each researcher has its own fixed block, and the lead must write five good briefs. The saving comes from each researcher not re-reading the others' pages at every step.
Example 2: a refund request
A customer writes in asking for a refund. The task is a short chain: read the message, check the order, check the policy, decide, reply. The whole thing fits in a small context and every step needs the previous one. A single agent, or even a fixed workflow of four calls, is the right design. Splitting would add hand-offs and cost with no gain. The one place a second agent earns its keep is a reviewer that checks the draft reply against the policy when the refund is large. Even that is worth adding only if you see errors that a check would catch.
Example 3: a coding task
A developer asks an agent to add a feature to a codebase. The work has three parts: understand the existing code, write the change and run the tests. Understanding means reading many files, which clutters the context. A sub-agent can explore the code and return only a short note of which files matter and how they connect. The main agent then writes the change with a clean context. A second sub-agent can run the tests and report only the failures. This uses sub-agents for context isolation, in a small team of a lead and two helpers, with no parallel speed-up needed.
A decision worksheet
For any task you are thinking of splitting, answer these.
1. What goes wrong with one agent? Name the specific failure: cost, slowness, mixed-up details, conflicting instructions or unchecked errors. If you cannot, do not split.
2. Which of the four reasons applies? Context, parallelism, different roles or permissions, or independent check.
3. What are the pieces, and are they really independent? Write down what each piece needs from the others. If they need a lot, the split will be chatty.
4. What will the lead hand over, and what will each piece return? Write both as a format. A vague hand-off is the most common source of failure.
5. What does it cost? Estimate tokens, time and the chance that all hand-offs succeed.
6. How will you know it is better? Run the same ten tasks through both designs and compare quality, cost and time.
If the answers are thin, the single agent wins.
Common mistakes
Splitting first and asking why later. Start with one agent and split only where it fails.
Splitting a chain. Dependent steps gain nothing from separate agents.
Ignoring the cost of fixed blocks. Every worker pays for its own instructions and tools.
Judging speed by the average worker. The slowest one sets the time.
Forgetting that all workers must succeed. More workers means more chances of a failure. Plan for retries and gaps.
Vague hand-offs. A sub-agent cannot read the lead's mind. Tell it the goal, what to return and in what format.
Letting agents talk freely. Give structure: who asks whom, and who decides.
Never testing the split against the single agent. Compare on real tasks.
Key takeaways
A sub-agent is an agent started by another agent, with its own instructions, tools and fresh context, that returns a result.
The honest reasons to split are context isolation, parallel speed, different roles or permissions, and an independent check. Looking advanced, special prompts and mere size are not reasons.
A split costs tokens, time and reliability. Fixed blocks are paid per agent, parallel time is set by the slowest worker, and every hand-off multiplies in a chance of failure. Four steps at 95 per cent succeed 81.5 per cent of the time.
The same split can save or waste tokens. With a growing history it cut input from 900,000 to 320,000 tokens, while with short histories the saving shrank.
Build one agent first. Split where it fails, keep the team small and test the split against the single agent.
The common shapes are orchestrator and workers, pipelines, routers and reviewers. Free-talking peer teams are hard to control.
Check yourself
1. Name the four honest reasons to split an agent's work.
Context isolation, parallel speed, different roles or permissions, and an independent check.
2. Four workers each take 3 minutes in parallel. The lead needs 0.5 minute before and 0.5 minute after. How long does the split take, and how long would one agent take on the same total work?
The split takes 0.5 + 3 + 0.5 = 4 minutes. One agent takes 4 × 3 = 12 minutes.
3. Why does one slow worker matter so much?
The lead cannot combine results until every worker has finished, so the slowest worker sets the elapsed time.
4. Each of five steps in a chain is 90 per cent reliable. What is the chance the whole chain works?
0.9⁵ = 0.59, about 59 per cent.
5. Why can a split use more tokens than a single agent?
Each worker pays for its own fixed instructions and tool definitions, and the lead spends tokens writing tasks and reading results. If histories are short, these costs outweigh the saving.
6. A task is one chain of seven dependent steps that fits easily in one context. Should you split it?
No. Dependent steps gain no parallel speed, the context is small, and each hand-off adds cost and a failure point.
Try this
Set aside sixty minutes.
1. Pick one task you would give an agent. Write it in two sentences.
2. List the steps and mark which depend on earlier ones and which could run independently.
3. For each of the four honest reasons, write whether it applies, with one sentence of evidence.
4. If two or more apply, sketch a split with a lead and the fewest workers that would work. Write what the lead hands over and what each worker returns.
5. Use the token simulator with your own numbers to see whether the split would save or cost tokens, and the time simulator to see the speed-up.
6. Multiply the success chance of each hand-off to estimate the reliability of the split.
7. Write how you will compare the single agent and the split on ten real tasks.
A good result is a one-page decision that says "single agent" or "split", with the reason, the numbers and a plan to test it. Lesson 5.2 shows the most common split in detail, the orchestrator and its workers.
Tags: Agentic AI Sub-agents Multi-agent systems Context Agent design