Choose the Right Dispatch: Spawn, Fork, or Direct
Three ways to hand work to a sub-agent - fresh-context spawn, cache-sharing fork, or just doing it yourself - and the decision matrix for picking per task.
The Route
0/4 verifiedImplement spawn: fresh context specialists
A spawn is a new employee: they know only what the dispatch tells them.
Implement fork: inherited context, shared cache
A fork is a clone at the current moment - cheap because the prefix is already paid for.
Add guards and async lifecycle
Parallel dispatch needs recursion limits and a results path.
Encode the decision matrix
The strategies only pay off if the orchestrator picks correctly.
Context Pack
Paste this first. It briefs the AI on requirements, constraints, and the Definition of Done before your first build prompt.
Paste this into your AI builder first. It teaches the AI what you want before you give it the build prompt.
Related routes
More Agent Architecture flows that share ground with this one.
Implement the Six Core Orchestration Patterns
Worker pool, pipeline, supervisor-worker, adversarial, fork-join, resume chain - build the reusable orchestration patterns every serious multi-agent system converges on.
+1 more steps to Done
Best forproduction-grade builds with strict verification
Make Parallel Sub-Agents Share the Prompt Cache
Byte-identical request prefixes are why forked workers cost a fraction of spawned ones - engineer your dispatch so every parallel child hits the same cache entry.
+1 more steps to Done
Best forproduction-grade builds with strict verification
Single-Agent vs Multi-Agent: Decide and Design
A decision flow for the most expensive architecture choice in agent systems - grounded in what actually ships versus what demos well.
+1 more steps to Done
Best forbuilders who have shipped a basic app before