Skip to content

1.1 Agent Architecture

Every agentic system starts from one decision: who owns the control flow. Anthropic’s taxonomy has three tiers, separated by who decides the next step. An augmented LLM is a single model call with retrieval, tools and memory added. A workflow is a system where LLM calls and tools are orchestrated through predefined code paths. An agent is a system where the model directs its own process and tool usage. Domain 1 opens here. Placing it right gives the construction work in 1.2 a shape, and no SDK configuration rescues a wrong one.

Take a mobile phone repair shop. Booking in a cracked screen runs the same way every time: log the phone, check the warranty, print a ticket. Diagnosing a phone that will not charge does not. The fault could be the port, battery or board, and each test depends on the last result.

The augmented LLM is the basic building block, and most problems need nothing more.

In a workflow, you write the control flow and the model executes inside it, as in the shop’s booking-in. The path cannot surprise you, so a workflow is predictable, testable and cheaper per run.

In an agent, the model decides each next step from environment feedback until the goal is met. A diagnostic agent reads the charging test result and picks the next test itself. You get flexibility and pay in latency, token spend, more room for error, and a guardrail burden the workflow never had.

Anthropic’s guidance is to find the simplest solution possible and add complexity only when it demonstrably improves outcomes. The working test is path predictability. Steps that are known in advance and repeat for every input, like booking in, belong in a workflow. When the number of steps is unknown and each decision depends on the last, like the charging fault, an agent earns its cost.

Placement fails in two directions. An agent on a fixed pipeline pays agent costs for flexibility the task never uses. An open-ended investigation forced through a rigid chain breaks the first time the real path diverges from the coded one. Cost and latency belong inside this decision: an agent’s extra spend has to buy something the workflow could not deliver.

When one context window cannot hold the task, the orchestrator-workers shape takes over. A lead agent (the manager or supervisor) decomposes the goal, spawns specialised subagents and synthesises their results. A subagent is a worker that a lead agent spawns and briefs. The shop’s lead might give each subagent one parts supplier to price. Anthropic’s multi-agent research system is the reference implementation, and in its basic form every result flows back through the lead. For bulky output, the same post recommends a bypass: subagents store their work in external systems and pass lightweight references back to the coordinator. This prevents information loss between stages and saves copying large outputs through conversation history.

Subagents do not share memory. A subagent’s context window starts fresh, with no parent conversation. Only the delegation prompt travels from parent to subagent. Every file path, error message, decision and convention the subagent needs must be in that brief. Anything agreed earlier in the orchestrator’s own conversation does not exist for the worker. If the owner tells the lead to quote genuine parts only, a supplier subagent never sees that rule unless its brief states it. Designs that assume shared memory are broken by construction.

One exception, as of September 2026, is a fork. In Claude Code, a forked subagent inherits the whole conversation so far. Fork mode is on by default in interactive sessions, and off in the Agent SDK and in non-interactive -p runs unless you turn it on. Every other subagent starts fresh, so the brief is its only channel.

Isolation is also the payoff. Intermediate tool calls, their results and large file reads stay inside the subagent. Only its final message returns to the parent. A research subagent can read dozens of files while the lead’s context grows by a summary. Separate windows make parallelism work and add aggregate reasoning capacity. Anthropic reported a lead-plus-parallel-subagents system outperforming a single agent by 90.2% on its internal research evaluation. Parallelism pays only when subtasks are independent, as the supplier checks are. Pricing a repair depends on its diagnosis, and splitting dependent work across parallel subagents recreates the coordination problem with added token cost.

When a multi-agent system misbehaves, trace the failure to the orchestrator first. Vague delegation produces duplicated work and gaps. Overlapping task boundaries produce near-identical outputs. Spawning a dozen subagents for a simple query is an effort-scaling failure in the lead, not incompetence in the workers. The fix is almost always a better brief: an explicit objective, an output format, tool guidance and clear task boundaries, per subagent, every time.

Claude Code also offers a peer shape, agent teams: one session leads, and each teammate works in its own context window and messages the others directly. As of September 2026 they are experimental, disabled by default (CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 enables them) and need an interactive session, so Agent SDK and -p runs never spawn teammates. The docs keep subagents for quick, focused workers that report back, like the supplier checks. Teams are for teammates who need to share findings, challenge each other and coordinate on their own. They cost more tokens, because each teammate is a separate Claude instance. Even ordinary subagents are not always cut off. Ones that Claude named when it spawned them can message each other.

Dynamic workflows go the other way and move the plan into code. Claude writes a script that orchestrates many subagents. The script decides what runs next and holds the loop, the branching and the intermediate results, so Claude’s context holds only the final answer. The docs point to one when a task needs more agents than one conversation can coordinate. That means dozens to hundreds per run, against a handful of long-running peers in a team. They also suit orchestration you want codified as a script you can read and rerun. By this lesson’s dividing line, that puts the orchestration back on the workflow side.

Claude Managed Agents (sub-skill 1.2) has a supervisor structure of its own. As of September 2026, a coordinator agent declares a roster of agents it can delegate to, and it delegates one level only. Referencing an agent that has its own roster fails the create or update request with a validation error. A roster lists at most 20 unique agents, though the coordinator can call several copies of each, within the session’s thread limit. All of them share the session’s sandbox and filesystem, and each runs in its own context-isolated thread.

The exam tests the placement decision directly. It draws its vocabulary from one source: Anthropic’s “Building effective agents”. Distractors blur the dividing line. Both failure directions are punished equally. A stem that names a fixed, auditable, high-volume process is telling you the workflow wins. The single most-tested fact in this sub-skill: subagents do not share memory. Distractors that rely on implicit shared state are always wrong.

An observability platform team runs an orchestrator agent on the Claude Agent SDK that decomposes a codebase-wide dependency upgrade into per-service subtasks and spawns one subagent per service. The dependency-pinning policy was agreed in the orchestrator’s own conversation, yet the subagents keep choosing versions that violate it. What is the cause, and the fix?

  • A. Subagents inherit the conversation only at spawn time; respawn every subagent after the policy is agreed so the inherited copy includes it
  • B. The model used by the subagents is too small to infer the policy on its own; switch every subagent to a larger model
  • C. Subagents never see the orchestrator conversation; the policy must be stated in the task brief of every subagent
  • D. Subagent memory is shared with the orchestrator but evicted under parallel load; lower the concurrency limit so the shared window is never truncated mid-run
Answer & explanation

Correct: C

  • A — Agent SDK subagents never inherit the orchestrator conversation unless fork mode is turned on, and it is off by default. There is no spawn-time snapshot to refresh, so respawning changes nothing.
  • B — No model can infer content it was never given. The policy is absent from the subagent context entirely, which is an architecture fact, not a capability gap.
  • C — A subagent context starts fresh and receives only the delegation prompt, so the policy exists for a worker only if the delegation states it. This is the documented mechanism and the documented fix.
  • D — There is no shared window to evict. Each subagent has its own isolated context, so concurrency settings can neither cause nor cure the missing policy.