Section 7: Orchestrator-Worker and Leader-first
- The orchestrator-worker pattern: the leader analyses the brief first, then hands work to workers
- Delegation prompts: goal, scope, files, output format and a definition of done
- Effort scaling: the number of agents and the effort level that fit the task, and the leader's task list
- Lab: have the leader analyse a new feature and break it into subtasks with prompts for the workers
Section 8: Workshop: A Frontend, Backend and QA Team
- Turn on agent teams (an experimental feature) and how they differ from subagents that report back to the leader
- The team lead builds a shared task list so teammates claim work, message each other and own separate files
- Workshop: a frontend, backend and QA team builds one feature through the task list
Section 9: Workshop: Sequential Workflows as a Pipeline
- Which tasks must run in order, and when running in parallel costs more than it saves
- Chain subagents into a pipeline through spec files, or use dependent tasks in agent teams
- Workshop: a pipeline that analyses requirements, designs, writes code and reviews it
Section 10: Context Management and Persistent Memory
- Organisation, user, project and CLAUDE.local.md instruction files, plus auto memory
- Subagent memory at user, project and local scope for remembering across sessions
- Isolate heavy work in subagents that send only a summary back to the leader, and use /compact and /clear
- Lab: have a Reviewer agent remember the project's common mistakes across sessions
Section 11: Workshop: Permissions, Hooks, a Quality Gate and a Cost Gate
- allow, ask and deny permissions in settings.json, and keeping agents away from .env files and secrets
- Limit each agent with tools, disallowedTools, permissionMode and maxTurns
- Gate logic: stop conditions and the points where a person must approve before work continues
- Hooks such as PreToolUse, SubagentStop and TaskCompleted that intercept and block dangerous commands
- Workshop: a quality gate that will not close a task until tests pass, and a cost gate that caps turns and token spend
Section 12: Capstone: An Agent Team Builds and Deploys a Web App
- The leader analyses a business brief and writes a shared spec that every agent works to
- A team of Planner, Competitive Research, Full-stack Developer, Writer and QA/Reviewer agents
- Track work through the task list, merge results with the synthesize pattern, and check diffs and tests before accepting
- Deploy to Vercel with the Vercel CLI or Vercel MCP and set environment variables
- A pre-flight checklist before running agents on their own, then present the work and a plan for real use