AITraining2U

Programs

Resources

Case Studies

Quick Links

Enquire Now
Domain 1 · 27%% of exam

Coordinator and subagent architecture

The single most-tested idea in the heaviest domain: subagents do not inherit context.

6 min read · Lesson 6 of 12 in this domain

This is the heaviest-weighted idea in the heaviest-weighted domain, and almost every mistake traces back to one wrong assumption: that a subagent can see what the coordinator saw. It cannot. A subagent gets a fresh context window containing only the prompt you hand it. It has no access to the coordinator's conversation, its tool results, or its earlier findings, and there is no session id or handle that grants that access. Once you internalise this, the rest follows — every architectural rule in this lesson is a consequence of context not being inherited.

Key points
  • Subagents start with a fresh context window. They inherit nothing — not the coordinator's history, not its findings, not its tool results. There is no mechanism for one agent to read another's session.
  • Therefore the coordinator must inject all prior output explicitly, in a structured form that preserves attribution (claim, evidence, source, date) rather than prose that destroys it.
  • Use hub-and-spoke: a coordinator mediates between subagents. Flat all-to-all topology is a named anti-pattern — unpredictable state, duplicated work, nowhere to observe or enforce policy.
  • If the coordinator already holds the information, do the work in place. Spawning a subagent to restate what you are already holding is pure overhead.
  • Delegate only when the payoff exceeds the fixed cost: fresh context establishment, re-exploration, a report, and the coordinator re-reading it.
  • Emit independent Task calls in a single turn so they run concurrently. Wall-clock then equals the slowest task rather than the sum.
Diagram
Agent topology
ANTI-PATTERN — flat all-to-allRECOMMENDED — hub-and-spokeC
Worked example

Why prose hand-offs lose information. A search subagent finds "$50B market size, McKinsey 2024, based on bottom-up sizing." It reports back to the coordinator as prose: "the market is around $50 billion." The coordinator passes that sentence to a report agent, which now has a number with no source, no date and no methodology — so when it needs a citation it invents one, and when a second subagent reports $35B the coordinator has no basis to reconcile them. Nothing errored. The information was destroyed at the first hand-off, by summarising into prose instead of passing a structured object.

Exam trap

"Point the subagent at the coordinator's session id" is an architectural impossibility dressed up as configuration.

Check your understanding

What does a subagent inherit from its coordinator?

Correct answer: B — Nothing — it starts with a fresh context window
Context is never inherited. Everything the subagent needs must be injected into its prompt.

Which agent topology is recommended?

Correct answer: B — Hub-and-spoke with a coordinator mediating
Flat all-to-all is a named anti-pattern: unpredictable state, duplicated work, nowhere to observe or enforce policy.

Practise this domain with 27%%-weighted questions in the study app.

Open in study app

Source: Claude Docs — Agent SDK subagents · Independent study aid, not affiliated with or endorsed by Anthropic.