What This Course Is For
A single language-model agent is a loop: a model reads a conversation, asks for a tool, your code runs the tool and returns the result, and the loop repeats until the model answers. Many useful systems are built from several such agents working together. One plans and hands out subtasks, others look things up or write drafts, another reviews the result, and a person approves anything with consequences. Making a team like that work is mostly not a question of better prompts. It is a question of orchestration: which agent runs when, what each one is allowed to see and do, how their results are combined, what happens when one of them fails or loops, how the work survives a crash, and how you can tell afterwards what happened.
This course teaches that engineering. It also teaches the judgement that comes first: published guidance from Anthropic recommends starting with the simplest design that works, and reports that multi-agent systems used about 15 times the tokens of a chat interaction in Anthropic's own measurements (S15, S16). So several agents must earn their cost, and the course shows you how to decide when they do.
The Course Map

The course map. Read it top to bottom; the dashed module at the end is optional.
The modules come in five stages:
- Foundations. You set up the environment, rebuild one tool-calling agent in the form the course uses (a short bridge if you know this already), and learn when a team of agents is worth its cost.
- Coordinating agents. You build an orchestrator that hands work to workers, a supervisor that routes between specialists, and handoffs; you pass work between agents through validated contracts, run agents concurrently, and combine them with reviewers, votes and debates.
- Making it dependable. You model a workflow as a graph that is sure to stop, retry the right things, keep side effects from happening twice, resume after a crash, pause for a person's approval, trace runs, test them and secure them.
- Frameworks and shared tools. You rebuild a workflow with LangGraph and compare it with your own code, and share tools between agents through the Model Context Protocol (MCP).
- The final challenge. You build a new team for a new scenario against stated acceptance checks.
Module 17 runs the same agents against a real model through the Claude API. It costs money, needs your own account and is optional: no other module depends on it.
The Running Example: Quillfield Cycles
Most lessons use one fictional business: Quillfield Cycles, a small
online shop selling bicycle parts. It has orders, products, customer
support tickets and a short policy handbook, all written for the course.
Customers appear only as IDs such as C-2001; nothing in the course is about
real people. Using one business lets later lessons build on earlier ones
without re-explaining a new domain each time. The final challenge switches to
a different, equally fictional organisation, so it tests whether you can
apply what you learned rather than recall it.
Practising Without a Real Model
Every core exercise runs on your own computer, offline, at no cost. To make that possible, the agents in the core lessons use scripted models: small Python classes that stand in for a language model. A scripted model answers from rules you can read, and its answers have exactly the same shape as a real model's answers from the Claude Messages API: text blocks, tool requests, a stop reason and a token count.
This is a deliberate choice, and it has limits you should know from the start:
| Scripted models show faithfully | Only a real model can show |
|---|---|
| The message format and tool calls | How well a model plans, reasons or follows instructions |
| Which agent runs when, and with what input | Whether a team of agents gives better answers than one agent |
| Concurrency, timeouts and cancellation | How much answers vary from run to run |
| Retries, duplicated side effects, crash recovery and approval | Real cost and real waiting time |
| Traces, tests and security controls | How well a model resists instructions hidden in text it reads |
The left column is a property of the code you write around the models, and a scripted model makes it repeatable, so you can predict a result and check it exactly. That is also how orchestration code is tested in practice. The right column needs a real model; the lessons describe those effects, and the optional module lets you measure them. No lesson presents a scripted result as evidence of how a real model behaves.
Code That Carries Forward: the Kit
You will write a small Python package called kit in your practice folder,
one module at a time. Lesson 3 adds the shop's records, lesson 4 the agent
loop, lesson 7 usage accounting, and so on. Each lesson that adds a module
gives you its complete text, and no later lesson changes it: later lessons
add new modules instead. Each practical lesson starts by telling you which
kit modules it needs and which lesson supplies each one, with a one-line
check that they are in place. If you lose a file, you re-save it from that
lesson. There is nothing to download.
The Three Study Views
Every lesson has three views of the same material:
- Full Course teaches the topic: the problem, the ideas, explained code, a practical exercise with its expected result, how to diagnose a different result, a task of your own and a knowledge check with worked answers.
- Revision helps you rebuild the lesson's reasoning quickly after you have studied it: the key decisions, comparisons and common mistakes.
- Quick Reference gives the code patterns, decision tables and warning signs you will want to look up while you work.
Read the Full Course first. The other two views assume you have.
How a Practical Lesson Runs
Most lessons have one exercise, and every exercise follows the same pattern. It states its goal and starting state: what must already exist, and how to check it. Before running anything, you predict a result: which agent is called next, how many model calls a design makes, what a resumed workflow will repeat. Then you run it and compare. The lesson says what success looks like and why it demonstrates the skill, what a different result means and what to check next, and ends with a small task of your own before its answer. Every exercise finishes with cleanup: which folder to remove, and what to keep for later lessons. Exact output is shown wherever the scripts make it repeatable; where timing or identifiers vary, the output is labelled illustrative and the lesson says what to compare instead.
Safety Rules for the Exercises
The core exercises are designed so nothing can go wrong outside your practice folder:
- After the setup lesson installs the packages, they make no network calls.
- No agent is given a tool that runs shell commands, executes code, browses the web, sends email or moves money. "Consequential" actions, such as a refund, are simulated as rows in a local database file; the approval lessons show how to put them behind a person's decision.
- Model output is never run as code and never treated as fact.
- Exercises create and delete files only inside
~/multi-agent-practice/, and every cleanup command checks the path first. - Examples of malicious instructions hidden in text are written for the course, are harmless outside it, and are used only to show the defences.
Completing lessons records your reading progress; it is not a test of ability, and this course does not certify proficiency.
Check Your Understanding
Sort each statement into "scripted models can show this" or "this needs a real model", and give a one-line reason.
- The supervisor sends the ticket to billing before shipping.
- A refund is recorded once even though the workflow crashed and resumed.
- The reviewing agent catches a wrong refund amount most of the time.
- Three agents finish in about the time of the slowest one when they run concurrently.
- A team of three agents answers more tickets correctly than one agent.
- A trace shows which agent used the most tokens.
- A run costs about four US cents.
- An instruction hidden in a ticket cannot change which tool the refund agent calls, because only validated fields reach it.
Answer and Reasoning
- Scripted. Routing order is decided by your orchestration code and the scripts it runs, so it can be predicted and checked exactly.
- Scripted. Whether a side effect repeats depends on your code's idempotency and checkpoints, not on the model's quality.
- Real model. How often a reviewer catches a mistake is a property of the model doing the reviewing; a scripted reviewer catches exactly what its script says.
- Scripted. Concurrency is a property of the code; scripted models can wait for a set time to make it visible.
- Real model. Whether a team beats one agent depends on how well real models do each part. Scripted models can show what the team costs, not whether it is better.
- Scripted, with a caveat. The trace and the per-agent totals are your code; the token numbers from scripted models are illustrative, so the ranking is meaningful for the script but real counts need a real model.
- Real model. Real cost comes from real token counts and the provider's current prices.
- Scripted. This is a property of the design: if only validated fields cross from the agent that reads untrusted text to the agent that acts, no wording in the text can change the call. Whether a real model would have obeyed the hidden instruction is a separate, real-model question.
References
- S15: Anthropic, "Building effective agents" (2024-12-19): workflows and agents, and starting with the simplest solution.
- S16: Anthropic, "How we built our multi-agent research system" (2025-06-13): token use of agents and multi-agent systems in Anthropic's data.