# Orchestrator and Sub-Agent Trade-Offs

> How an orchestrator agent splits work across sub-agents, what each hand-off can lose, and when the extra cost is worth it, for your AI interview.

**In short:** An orchestrator agent splits a job into parts, gives each part to a sub-agent with its own clean context, then combines the results. It pays off when the parts are truly separate and the work is worth the extra tokens, time and failure points.

AI and LLM interview question Q170, Agents and tool use. Advanced, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/orchestrator-and-sub-agent-trade-offs

## Say it in 30 seconds

An orchestrator is one agent that breaks a job into parts and hands each part to a sub-agent. Each sub-agent works in its own context and sends back a short summary. The gain is room and speed. The cost is more tokens, more hand-offs, and more places to fail. I only split work when the parts really are separate, and I check each summary before the final answer.

## Say it in 2 minutes

Think of a general contractor on a building site. The contractor does not wire, plumb and roof the house alone. Each trade works in its own corner, and the contractor checks that the parts fit together. In AI, the orchestrator is the contractor and the sub-agents are the specialists. The orchestrator plans the work, gives each sub-agent a clear task, and combines what comes back.

The first gain is room. A model can only hold so much text at once, which is its context window. In a claims check, a long claim file can crowd out the clause that matters. Three sub-agents, each reading one bundle, keep their own context small. The orchestrator then reads three short summaries instead of the whole file. The second gain is time. Independent parts can run at the same time, so the job finishes in about the time of the slowest part.

The costs are real. Anthropic reports that its multi-agent research system used about 15 times more tokens than chats, and that work where every agent needs the same context fits poorly. Each hand-off can drop a detail, and a vague task can make two workers repeat the same work. So I give every sub-agent an objective, an output format, the sources to use and a clear boundary.

In an interview I would say: split only when the parts are separate, and measure the cost against one agent before and after. A coding fix inside one repo is often a single agent's job.

## What is an orchestrator and a sub-agent, in plain words?

An orchestrator is the agent in charge. It reads the job, breaks it into parts, and gives each part to a worker. A sub-agent is one of those workers. It has its own instructions, its own tools and its own context window. It does its piece and sends a summary back, and the orchestrator combines the summaries into one answer.

Picture a general contractor on a building site. The contractor doesn't wire, plumb and roof the house alone. Each trade works in its own corner, and the contractor checks that the parts fit. In a real AI case, an insurer's claims team could give one agent the policy wording, another the medical records and a third the payment history, then let the orchestrator draft the claim decision.

- **Orchestrator:** The agent in charge. It plans, delegates and merges.
- **Sub-agent:** A worker agent with its own tools and context, started for one part of the job.
- **Context window:** How much text a model can hold at once while it works.
- **Hand-off:** The moment a task or a result passes between agents, where detail can get lost.
- **Token:** A small chunk of text a model reads or writes, roughly part of a word. Models are billed and limited by tokens.

The same shape shows up in two places. Anthropic's December 2024 workflow guide calls it orchestrator-workers. Its research system uses that same orchestrator-worker pattern, with a lead agent and parallel sub-agents. The idea is the same, so I explain it once and name both.

## What do you gain, and what does it cost?

Anthropic's December 2024 guide defines the pattern in one sentence: a central model breaks down tasks, sends them to worker models, and combines the results. The gain has two parts. Each worker starts with a small, clean context, and independent parts run at the same time.

> "In the orchestrator-workers workflow, a central LLM dynamically breaks down tasks, delegates them to worker LLMs, and synthesizes their results." (Anthropic)
>
> "Adds coordination overhead, latency, and failure modes." (Microsoft)

- **Gain: Room and speed.** Each sub-agent keeps a small context, and parallel parts finish near the time of the slowest one.
- **Cost: Tokens and waiting.** Anthropic's data: agents typically use about 4 times the tokens of a chat, and multi-agent systems about 15 times.
- **Risk: Lost detail.** Each hand-off can drop a fact, and two workers can repeat the same search.

*Diagram, What splitting the work gives and costs: The orchestrator splits the job, and two sides follow: the gains and the costs. Both feed one decision. The extra tokens and hand-offs only pay off when the task is valuable and its parts are truly separate.*
1. Splitting gives each worker room and parallel speed.
2. The same split adds tokens and hand-off risk.
3. The gains count only if the job is worth the cost.
4. The costs are weighed against the value before you decide to split.

Anthropic's December 2024 guide puts the trade-off plainly: agentic systems often trade latency and cost for better task performance. Anthropic's June 2025 research write-up found that multi-agent setups excel at breadth-first questions, where many independent directions can be searched at once.

> **Tip:** Asked about the trade-off, give both sides with a number from a source, then say what you would measure. Interviewers like a candidate who tests the split before trusting it.

## How does a claims team split the work?

Take a made-up insurer with a long claim file and a decision due in one working day. A single agent would read the whole file in one context. The orchestrator instead splits the file into three bundles, and each sub-agent gets a task with a fixed output format. Anthropic's December 2024 guide says subtasks are determined by the orchestrator from the specific input, not fixed in advance. If the three bundles were always the same, plain parallel work would do the job.

1. **Orchestrator splits the file:** It sends medical records, policy wording and payment history to three sub-agents, each with a task and a summary format.
2. **Sub-agents work at once:** Each reads only its bundle, in its own context, and returns a short summary of about 1,000 to 2,000 tokens.
3. **Orchestrator merges:** It reads the three summaries, checks that they agree with each other, and drafts the decision.
4. **A person approves:** A claims handler reads the cited clauses before anything is paid or refused.

*Diagram, How a claim file is split and merged: A claim file is split into three bundles, and each sub-agent reads its own in a separate context. Short summaries come back to the orchestrator, which drafts the decision for a person to check.*
1. The whole claim file goes in, once.
2. The orchestrator gives each sub-agent one bundle and a format.
3. Each sub-agent sends back a short summary, not its whole reading.
4. The orchestrator drafts the decision, and a person checks it.

The numbers in this code are made up, but the shape of the trade-off is real. It shows the parent's context shrinking, the wall time falling, and the total tokens rising. The code also leaves out the orchestrator's own plan and merge work, and assumes the three sub-agents start at once, so the real overhead is higher than these numbers show.

```python
# A made-up claims check: one agent reads the whole file, or three sub-agents each read one bundle.
TOKENS = {"medical records": 9000, "policy wording": 7000, "payment history": 4000}
SECONDS = {"medical records": 40, "policy wording": 25, "payment history": 30}
SUMMARY_TOKENS = 1500  # what each sub-agent sends back (made-up)

single_context = sum(TOKENS.values())
parent_context = SUMMARY_TOKENS * len(TOKENS)
print("Single agent, tokens in one context:", single_context)
print("Orchestrator, tokens back in the parent:", parent_context)
print("Single agent, time one after another:", sum(SECONDS.values()), "s")
print("Orchestrator, time all at once:", max(SECONDS.values()), "s")
print("Single agent, total tokens read:", single_context)
print("Orchestrator, total tokens read:", sum(TOKENS.values()) + parent_context)
```

Output:

```text
Single agent, tokens in one context: 20000
Orchestrator, tokens back in the parent: 4500
Single agent, time one after another: 95 s
Orchestrator, time all at once: 40 s
Single agent, total tokens read: 20000
Orchestrator, total tokens read: 24500
```

## When should you not split the work?

Split only when the parts are truly separate and the answer does not need every part at once. Anthropic's June 2025 research write-up says that domains where all agents must share the same context fit poorly with multi-agent systems, and that many coding tasks have fewer independent parts than research does.

> "some domains that require all agents to share the same context or involve many dependencies between agents are not a good fit for multi-agent systems today." (Anthropic)
>
> "prevent overinvestment in simple queries, which was a common failure mode in our early versions" (Anthropic)

The hard part is the hand-off. Anthropic says a lead agent must give each sub-agent an objective, an output format, guidance on the tools and sources, and clear task boundaries. Without these, agents duplicate work or leave gaps. Anthropic's June 2025 write-up gives a concrete case from its early versions: one worker explored the 2021 automotive chip crisis while two others duplicated work on current 2025 supply chains.

The second hard part is waiting. Anthropic's June 2025 write-up says its lead agents run sub-agents synchronously, waiting for each set to finish before going on. It also says synchronous execution creates bottlenecks, since the whole system can be blocked while one worker is still searching. Its engineers also suggest writing sub-agent output to a file, to minimise the game of telephone, where each relay garbles the last.

> **Tip:** A good answer names the hand-off you would test first, such as the summary format, and the number you would check after a change.

### How would you choose for a coding agent in CI?

A coding agent in a CI pipeline must fix a failing test that touches three files. Each step depends on the one before, since the fix in one file changes what the test expects in another. Anthropic's June 2025 write-up notes that most coding tasks have fewer truly parallel parts than research, and that LLM agents are not yet great at delegating in real time. Anthropic's December 2024 guide does list coding products that change many files as a fit for the orchestrator pattern. Here the three file fixes depend on each other, so one agent with a clear plan is the better start.

So I would keep one agent with a clear plan. Only at the end would I add a reviewer sub-agent with a fresh context, which reads the diff and returns a short list of problems. The reviewer gives a second look without writing any code, and the cost stays small.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] A plain definition: an orchestrator plans and merges, and sub-agents do separate parts.
- [ ] The gain: a clean context for each worker, and parallel speed.
- [ ] The cost, said honestly: more tokens, waiting and more places to fail.
- [ ] The hand-off: an objective, an output format, the tools and clear boundaries.
- [ ] When not to split: shared context, or parts that depend on each other.
- [ ] A test: compare quality, time and cost against one agent.

**Common traps**

- Trap: "More agents always means better answers." Better: More agents add tokens and hand-offs. Split only when the parts are separate and the task is valuable.
- Trap: "Every sub-agent can see the whole conversation." Better: Each one works in its own context window, so pass it only the facts its part needs.
- Trap: "Let the workers sort out the details themselves." Better: Vague briefs make workers repeat each other. Give each one an objective, a format and boundaries.

## Can you spot the weak split?

**Spot the weak brief:** Which brief is most likely to make two sub-agents repeat the same search?

A. Find payment problems in the supplier files.
B. Search the Q3 invoice ledger for duplicate supplier payments. Return supplier, invoice number and amount in a table, and name the sources.
C. Check the Q3 refund policy and list each clause that mentions a 14-day window, with its page number.
D. Read the 2024 audit notes for open findings on payment controls, and list each finding with its owner.

**Answer:** A. A vague brief leaves each worker to guess the scope, so two workers search the same ground. The other three set the source, the output format and the boundary, which is what a sub-agent needs.

**Quick check:** An orchestrator is merging three sub-agent summaries for a claim decision. Which change most cuts the risk of lost detail?

A. Use a bigger model for the orchestrator
B. Give each sub-agent a fixed output format and clear boundaries
C. Run the three sub-agents one after another
D. Ask the orchestrator to rewrite each summary in longer words

**Answer:** B. A fixed format and clear boundaries cut the loss at every hand-off. A bigger model does not change what each worker hands back.

## Can you answer these from memory?

**Flash cards**

- **What is an orchestrator?** The agent that plans the job, delegates the parts, and merges the results.
- **What is a sub-agent?** A worker agent with its own tools and context window, for one part of the job.
- **What is the main gain?** Clean context for each worker, and parallel parts that finish near the slowest.
- **What is the main cost?** More tokens, waiting on the slowest worker, and hand-offs that can lose detail.
- **What must a brief include?** An objective, an output format, the tools and sources, and clear boundaries.
- **When should you not split?** When all parts need the same context or depend on each other, as many coding tasks do.

## Likely follow-up questions

- Q169 When is a multi-agent system worth it? https://designervenkat.online/interview/ai/when-is-a-multi-agent-system-worth-it
- Q171 What are computer-use and browser agents? https://designervenkat.online/interview/ai/what-are-computer-use-and-browser-agents
- Q173 How do you stop endless agent loops? https://designervenkat.online/interview/ai/how-do-you-stop-endless-agent-loops
- Q174 What are common agent failure modes? https://designervenkat.online/interview/ai/common-ai-agent-failure-modes
- Q175 What makes a tool-calling loop reliable enough to ship? https://designervenkat.online/interview/ai/reliable-tool-calling-loop
- Q176 How should an agent handle tool errors and retries? https://designervenkat.online/interview/ai/how-should-an-agent-handle-tool-errors-and-retries

## Learn it in depth

- [Multi-agents](https://designervenkat.online/learn/ai-engineering/multi-agents)
- [Multi-agent Context Sharing](https://designervenkat.online/learn/ai-engineering/multi-agent-context-sharing)
