An orchestrator dispatches; specialists execute
After this, you'll be able to design a multi-agent workflow using Claude Code or the Anthropic Agent SDK where one orchestrator agent breaks work into subtasks and dispatches them to specialist subagents.
Complete Running an AI agent on a schedule first; this lesson builds on running agents autonomously and monitoring their structured output.
A single agent trying to research, write, and verify in one session trades off between three different jobs and does all three worse than a focused specialist would. Multi-agent architecture solves this by separating concerns: an orchestrator agent breaks the work into subtasks and hands each one to a specialist. The specialist focuses on one job, produces structured output, and returns it to the orchestrator for the next step. Real tools: Claude Code supports spawning subagents natively through its Task tool; the Anthropic Agent SDK in Python gives you full control over orchestration logic with Claude as the underlying model for each agent.
Now try it: design a two-agent sequence in Claude Code where Agent 1 reads a document and extracts a structured list, and Agent 2 uses that list to write a summary. The key discipline is passing Agent 1's actual structured output to Agent 2, not a paraphrase of it.
Paste this into Claude
I want to design a two-agent pipeline for [describe the end goal, e.g., turning raw research notes into a formatted client report]. Agent 1 (the specialist) should [describe its specific task and the exact output format it should return; be precise about structure]. Agent 2 (the composer) should [describe its task and how it uses Agent 1's output as input]. I am using [Claude Code / Anthropic Agent SDK / describe your setup]. Please: 1) write the task description for Agent 1 with the exact output format it must return, 2) write the task description for Agent 2 that explicitly includes a slot for Agent 1's output, 3) show me how to pass Agent 1's output to Agent 2 in my chosen tool, and 4) describe one thing that could go wrong at the handoff and how to detect it before it reaches the final output.
Check yours against
Run the pipeline and confirm Agent 2's prompt explicitly included Agent 1's full structured output as a literal input. If you can trace which content came from Agent 1 specifically, the pipeline worked as designed.
Pulling this out of your own head now is the part that actually moves it into long-term memory. Re-reading only feels like it does.
Without scrolling up, pick one job from your own work. Write what the orchestrator hands to each specialist and the exact format each one returns.
One good answer: 'Job: a week of social posts for a client. Specialist 1 finds the five best past posts and returns a list with each post's title and reach. Specialist 2 drafts a week of ideas from that list and returns a table of day, idea and caption.' If your return formats are exact enough that the next step needs no guessing, it holds.
Multi-agent architecture separates concerns. An orchestrator that dispatches to specialists produces better output at every step than a single agent trying to do everything at once.