Watch · Chapter 13

Multi-Agent Orchestration

2:37 · Part IV: Running a Fleet

Made by AI agents — script drafted from the book, AI narration, animation written as code — and steered by the author, Rasmus Bornhøft Schlünsen.

Transcript

What the film says

One carpenter can build a shed. A house needs an electrician, a plumber, and a roofer, working in parallel, each doing what they do best. Agents work the same way. But parallel agents need coordination, and coordination has a cost.

The hard part isn't running several agents. It's splitting the work. If one agent depends on another's output, they can't run in parallel. So find the seams. Split by layer, with a clear contract between them. Split by feature. Or split by concern: one refactors, one writes tests, one updates the docs.

Every agent gets its own branch and its own worktree. Two agents in one working directory will trample each other's files. Three directories, three branches, three agents.

Multi-agent work comes in two shapes. Sub-agents inside one session buy you clean context. One reads forty files, and hands back a ten-line summary. Background agents take a whole, well-scoped ticket, and come back later with a pull request. For a vague task, use neither.

Sometimes agents work in sequence. One plans, one implements, one reviews. The danger is the handover. The next agent starts cold. So make it explicit: a plan file, stub functions, a progress checklist. Write it like a ticket for a colleague on another continent.

Then comes the merge. One agent changed the schema, another wrote a migration for the old one. Prevent conflicts by giving each agent its own files. Let a merge agent handle the rest. And review everything yourself, because code can merge cleanly and still contradict itself.

More agents isn't always better. With four terminals open, one agent can crash silently while you look elsewhere. You become the bottleneck. And every extra agent adds setup, merging, and review. For short tasks, the overhead eats the gains.

Here's where it pays. Picture a notifications feature: a backend endpoint, a bell icon, and the tests. Write the contract first. Then three agents run at once, and you merge the backend first. About forty-five minutes in total, against roughly ninety for one agent alone.

A crew of five isn't always faster than one sailor who knows the boat. The skill isn't running as many agents as possible. It's knowing which pieces are safe to run in parallel. That judgement is the highest-leverage prompt you can write. Next up: agents in the pipeline.