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

You're splitting a research agent into an orchestrator and subagents. Design the interface: what exactly crosses the boundary in each direction?

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

The interface is the whole design, because the point of subagents is context isolation. Pass the full conversation down and the full trajectory back and you have built multi-agent overhead with none of the benefit, at a higher price.

Full worked answer

The interface is the whole design, because the point of subagents is context isolation. Pass the full conversation down and the full trajectory back and you have built multi-agent overhead with none of the benefit, at a higher price.

Downward, the orchestrator sends a task specification, not a conversation. Concretely: the objective stated standalone, success criteria, output format and rough size budget, constraints or facts already established, and a resource budget. What it must not send is the raw message history. A subagent that receives 40k tokens of prior conversation has no isolation left.

The non-obvious failure is underspecification. "Research the competitor" produces four subagents doing overlapping work and none covering the actual gap. The orchestrator holds context the subagent does not, and must serialise the relevant parts into the spec explicitly. Vague delegation is the single largest source of wasted tokens in multi-agent systems.

Upward, the subagent returns a compressed artifact. A findings summary sized to a budget, source references so the orchestrator can drill down without re-running the work, a confidence or completeness signal, and an explicit status: done, partial, blocked, budget exhausted. The trade is that the subagent burns ~100k tokens searching and returns ~1k. If the return payload is not small, you got nothing.

Going further: follow-up territory

Things worth stating unprompted:

  • Subagents should be stateless per invocation. No shared mutable state. If two subagents need to coordinate mid-flight, the decomposition is wrong.
  • Give each subagent only the tools it needs. Isolation applies to tool definitions too.
  • Write-heavy work does not decompose. Two subagents editing one file conflict and the orchestrator cannot merge them. Parallel subagents suit read-heavy, independent leads.
  • Budget honestly: Anthropic reported their multi-agent research system used ~15x the tokens of a chat interaction. That buys real gains on parallelisable research and pure waste on anything else.

Default to a single agent until it demonstrably fails on context, not on vibes.

What a good answer covers

  • The interface is the whole design, because the point of subagents is context isolation
  • Pass the full conversation down and the full trajectory back and you have built multi-agent overhead…
  • Downward, the orchestrator sends a task specification, not a conversation
  • Concretely: the objective stated standalone, success criteria, output format and rough size budget,…
  • What it must not send is the raw message history

Key terms: context isolation

Interviewer follow-ups to expect

  1. A subagent returns a summary containing a subtle hallucination and the orchestrator cannot tell. How do you defend?

  2. When would you let a subagent spawn its own subagents?

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