Week 4 of 6 · Foundations

Agent Workflows & Handoffs

When work is split across several agents, mistakes can travel and grow. Learn the main patterns, why handoffs are where things break, and where a human must approve.

75–90 min Design lab Developer notebook
Your progress

Progress is saved in this browser only.

By the end of this week you can

  • Pick the right pattern: chaining, routing, parallel, orchestrator–workers
  • Explain error compounding and how verification stops it
  • Place human checkpoints with one simple test
  • Design a three-agent team with guardrails

Part 1

Four ways to organise AI work

A → B → CPrompt chaining

Fixed stages, each using the last one's output. Outline → draft → edit.

classify → specialistRouting

Send each request to the right specialist: billing, technical, policy.

many at onceParallel workers

Independent subtasks run simultaneously, then results are merged.

manager + teamOrchestrator–workers

A planner breaks the goal into subtasks, assigns them, and assembles the result.

Orchestrator Researcher Writer Fact-checker Human approves → publish handoffhandoff

Part 2

Handoffs are where errors travel

A wrong fact from the researcher becomes a confident paragraph from the writer, then a published mistake. Each step makes the error look more trustworthy. Try it:

Interactive

Pipeline simulator

Researchfinds facts
→
Writedrafts article
→
Fact-checkverifies sources
→
Humanapproves
→
Publishgoes public
Make handoffs safe

Pass structured data (fields, not loose prose), require evidence (a source for every claim), and verify before the next agent builds on it.

Part 3

Where a human must approve

The test

If this step goes wrong, can it be undone — and does it affect anyone other than the user? Can't be undone, or affects others → a human approves first.

StepUndo?Affects others?Checkpoint?
Search the webNothing to undoNoNo
Draft a messageYesNoNo
Send the messageNoYesYes
Spend moneyHardYesYes
Delete filesOften noMaybeYes

Guardrails work alongside checkpoints: hard limits the agent can't cross even if its reasoning goes wrong — no sending to outside addresses, a spending cap, a list of allowed tools.

Lab A · No code

Design your agent team

Design lab · 30 min

Map a three-agent pipeline with checkpoints

Draw it in Excalidraw (free, no account) or on paper, then record it in the activity below.

Excalidraw or paperEvidence: 1 diagram
  1. Pick a scenario

    Homework helper, news digest, trip planner, job application helper — or your own.

  2. Draw the orchestrator and 2–3 workers

    For each worker: its specialty, what it receives, what it hands on.

  3. Mark every handoff

    Write what each handoff must contain (for example "facts + source link for each").

  4. Add a verification step and checkpoints

    Apply the undo test to every action. Mark checkpoints in a different colour.

  5. Break it on paper

    Pick one worker and imagine it gets something wrong. Trace where the error goes. Does your design catch it?

Evidence for your portfolioYour diagram with checkpoints marked, and the failure trace from step 5.

Lab B · For developers

Multi-agent systems in LangGraph and CrewAI

Jupyter notebook · 90–110 min

Orchestration, verification, human checkpoints

Build an orchestrator–workers graph with parallel fan-out and typed handoffs, verify claims against their sources, inject a fault, pause with interrupt() for approval, and compare with CrewAI.

  1. Typed state and reducers
  2. Quote-verified handoffs
  3. Fault injection
  4. Checkpointed human approval
Open in Colab → View on GitHub

Python plus your own OpenAI or Anthropic key (about US$0.15).

Responsible AI

Oversight by design, not after the incident

Teams that add human review only after something goes wrong learn the expensive way. Decide where humans approve before you build — and when several agents contribute, keep a record of who handed what to whom, so a mistake can be traced and owned.

Portfolio activity · Design your agent team

Your pipeline

Key terms

OrchestratorThe agent that plans subtasks and assigns them to workers.
HandoffPassing work or data from one agent to the next.
Error compoundingA mistake growing as later steps build on it unchecked.
VerificationChecking a claim against its source before it's used.
CheckpointA point where a human must approve before the agent continues.
GuardrailA hard limit the agent cannot cross, whatever it decides.

Go further

Up next · Week 5

Build Your First Agent

Write a system prompt, test it, break it, and present it at Demo Day.

Take the Week 4 quizStart Week 5 →