Agents, Tool Use & MCP·Question 23 of 90Intermediate

Explain the orchestrator-worker / subagent pattern. What's the real benefit?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

An orchestrator agent decomposes a task and dispatches subtasks to worker agents, each running its own loop with its own context, then integrates their results. The commonly cited benefits are parallelism and specialisation - but the answer interviewers are fishing for is context isolation.

Full worked answer with diagram

An orchestrator agent decomposes a task and dispatches subtasks to worker agents, each running its own loop with its own context, then integrates their results. The commonly cited benefits are parallelism and specialisation - but the answer interviewers are fishing for is context isolation.

A worker researching one lead might burn 50-100k tokens on searches, page fetches, and dead ends. If that happened in the orchestrator's context, three subtasks in, the window would be full of debris and reasoning quality would sink. Instead the worker's mess stays in the worker; only a distilled result - say 1-2k tokens of findings - returns. The orchestrator's context stays a clean record of the plan and conclusions. Subagents are, first and foremost, a context-management technology: the map-reduce framing is tokens-in-isolation, summaries-out.

Secondary benefits: parallelism (independent workers run concurrently - Anthropic's research system runs multiple search subagents at once), specialisation (each worker gets a purpose-built system prompt and a minimal tool set, which itself improves reliability - fewer tools, fewer wrong choices), and fault containment (a worker that spirals hits its own iteration budget without dragging down the run).

Costs to name: information loss at the boundary - the worker's summary might omit the crucial detail; mitigations include structured result schemas ("findings, sources, confidence, open questions") and letting the orchestrator ask follow-ups. Coordination overhead - vague subtask specs cause workers to duplicate or gap; the orchestrator must scope tasks explicitly (objective, output format, boundaries). Cost - every worker re-reads its own system prompt and burns its own tokens; multi-agent research systems run ~15× the tokens of plain chat.

Worth sketching. Write the token counts on the arrows: the asymmetry between what goes in and what comes back is the entire benefit.

flowchart LR
    A["Orchestrator:<br/>plan and conclusions only"] -->|"task spec, ~1k tokens"| B["Worker: lead 1"]
    A -->|"task spec, ~1k tokens"| C["Worker: lead 2"]
    B -->|"searches, fetches, dead ends<br/>50-100k tokens stay here"| B
    B -->|"findings, ~1k tokens"| A
    C -->|"findings, ~1k tokens"| A

What a good answer covers

  • An orchestrator agent decomposes a task and dispatches subtasks to worker agents, each running its own…
  • A worker researching one lead might burn 50-100k tokens on searches, page fetches, and dead ends
  • If that happened in the orchestrator's context, three subtasks in, the window would be full of debris…
  • Instead the worker's mess stays in the worker; only a distilled result - say 1-2k tokens of findings -…
  • The orchestrator's context stays a clean record of the plan and conclusions

Key terms: context isolation · parallelism · specialisation · fault containment · information loss at the boundary · Coordination overhead · Cost

Interviewer follow-ups to expect

  1. What should a subagent's result schema contain for a research task?

  2. When would you give a worker write access vs keeping all writes in the orchestrator?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep