Multi-Agent Workflows
Parallel Agents on Isolated Tasks
06 / 12
In Practice
- Split work into isolated tasks first; parallelism only helps when tasks do not touch the same files
- Give each parallel task its own git worktree and branch
- Treat each parallel agent result like a separate PR: review it, test it, then merge deliberately
- Use subagents inside one task for focused search, repo review, or independent NFR checks
- Keep the main thread clean: subagents return summaries; the main thread owns the plan and final diff
- Keep parallel agents few enough that you can review every output properly
- Pool worktrees, don't recreate them: a manager like Treehouse hands each agent a clean, ready worktree with dependencies and build cache intact
Explicitly spawning subagents with Claude Code is extremely freaking cool. My workflow is: Enter plan mode. Explicitly say how many subagents I want and which tasks they should perform. Let it rip.