01Chapter 1: Starting point: how a single coding agent worksSubagents only make sense once you know what they replace. This chapter describes the loop that every coding agent runs, the pieces it is made of, and the places where one agent starts to struggle. Later chapters build on this model.6 min read
02Chapter 2: Why long tasks strain a single context windowThis chapter assumes you have used an AI coding agent in a terminal or editor, know roughly what a context window and a tool call are, and can read short Python. It explains the pressure that makes subagents useful. The next chapters cover the subagents themselves.6 min read
03Chapter 3: What a subagent isA subagent is a separate agent instance that a parent agent starts to handle one scoped piece of work. The subagent runs in its own context window. It does the work, then returns a result to the parent. This chapter defines the term, shows how a subagent differs from the parent, and lists the errors5 min read
04Chapter 4: Context isolation: keeping the parent's context cleanThis chapter assumes you know what a context window is, how an agent loop calls tools, and what a subagent is at a basic level. You should also be comfortable reading short Python snippets.6 min read
05Chapter 5: Breaking a coding task into delegable unitsThis chapter assumes you have used a coding agent in a terminal or editor, know Git branches and the command line, and can read basic Python. It also assumes you know what a context window is and how tool calls work. By the end, you should be able to split a coding task into pieces that separate sub6 min read
06Chapter 6: The orchestrator-worker patternThis chapter assumes you have used a coding agent in a terminal or editor, know what a context window and a tool call are, can read basic Python, and are comfortable with Git branches. It also assumes you know what a subagent is: a separate agent instance with its own context. Here you will see how 5 min read
07Chapter 7: Writing a good delegation briefA delegation brief is the message an orchestrating agent sends to a subagent to define its task. It is the only thing the subagent sees. This chapter shows what a brief must contain, how to check one before sending it, and which mistakes cause the most rework.6 min read
08Chapter 8: Giving each subagent only the tools it needsThis chapter assumes you have used a coding agent that calls tools, and that you know what a subagent is and how an orchestrator hands it a brief. It covers how to decide which tools and permissions each subagent receives, and what goes wrong when you skip that decision.6 min read
09Chapter 9: Running subagents in parallel or in sequenceThis chapter assumes you have read the earlier chapters on what a subagent is, how to decompose a coding task, and how to write a delegation brief. You should also be comfortable with Git branches, basic Python, and the idea of a tool call.6 min read
10Chapter 10: Avoiding file conflicts with branches and git worktreesParallel subagents share one repository. If two of them edit the same checkout at once, one can overwrite the other's changes, or a test run can see half-finished edits from a different task. This chapter shows how to give each subagent its own branch and directory with git worktree, and where tha5 min read
11Chapter 11: Collecting and merging subagent resultsThis chapter assumes you have read the chapters on the orchestrator-worker pattern and on writing delegation briefs. You should also be comfortable with Git branches and basic Python. Once subagents finish, the orchestrator has to turn several separate outputs into one coherent result. This step is 6 min read
12Chapter 12: Verifying subagent work before you trust itA subagent's summary describes what it believes it did. It does not prove the change works. This chapter covers how to check subagent output before you merge it or build on it.5 min read
13Chapter 13: Handling failures, retries, and timeoutsThis chapter assumes you can read basic Python and use Git. It also assumes you have read the earlier chapters on the orchestrator-worker pattern, running subagents in parallel, and collecting their results. Here you will learn how to classify subagent failures, retry the ones worth retrying, and st5 min read
14Chapter 14: Cost and latency trade-offsThis chapter covers what delegation costs in tokens and in wall-clock time, and how to estimate both before you start. It assumes you have read the chapters on the orchestrator-worker pattern, delegation briefs, and parallel versus sequential execution. You should also know that a model's context wi7 min read
15Chapter 15: When a single agent is the better choiceThis chapter assumes you know the orchestrator-worker pattern, what a delegation brief is, and how a context window fills up. It also assumes you can read basic Python. Here you will learn when to skip all of that and keep the work in one agent.6 min read
16Chapter 16: Tracing and reviewing multi-agent runsThis chapter assumes you have read the earlier chapters on the orchestrator-worker pattern, delegation briefs, and result aggregation. You should also be able to read basic Python and JSON. A multi-agent run is hard to debug after the fact, so this chapter shows how to record what happened and how t5 min read