Koda Dojo
· Claude Code

Module 12: Sub-agents and Agent Teams

A coordinated fleet rather than one Claude in one window: parallel fan-out, consensus reviews, adversarial debates, and pipelines with quality gates that actually reject.

Lessons

  1. Split only what depends on nothing. Seven tasks for a release readiness report. Give each a start and run the plan on a clock.
  2. A worker knows only what you hand it. Eight things, two screens. Set each in or out of the worker's context, then spawn it and see what it starts with.
  3. A reviewer that cannot touch the code. A try-out of /agents, then build .claude/agents/code-reviewer.md part by part and check it.
  4. Brief a contractor who cannot call you back. Worker 2's brief. Flag the phrases that will fail, send it, and watch what the worker hits.
  5. Buy reliability with the right redundancy. Four jobs, two screens. Set the team's setup for each job and run it.
  6. Two agents share an interface. A new case: two agents, two checkouts, one undecided function. Set both decisions, then run the case.

What you take away

  • Ask for parallel subagents in plain English; each non-fork subagent gets a fresh context and returns only conclusions
  • Fan out independent work, fan in with a synthesis pass; route cheap models to workers and strong models to judgment
  • Independent agreement is a triage signal, not proof; verify repeated and single-pass findings against code, sources and reproducible tests
  • A pipeline gate that cannot reject is decoration; make reviewers earn their approval
  • Subagents parallelize reading; worktrees (including worktree-isolated subagents) parallelize writing

Field exercises

  • Launch Your First Parallel Subagent Fan-out
  • Fan Out a Technology Decision, Fan In a Recommendation
  • Create a Read-Only Reviewer Subagent in .claude/agents/
  • Delegate a Large-File Review and Check Its Evidence
  • Run a Stochastic Consensus Code Review
  • Judge an Adversarial Debate on a Real Architecture Decision
  • Run a Dev-Review-QA Pipeline With Gates That Can Reject
  • Script a Headless Fan-out With claude -p
  • Run Two Writing Agents in Parallel With Git Worktrees
  • Build a Reviewer Subagent Pipeline
  • Observe Forced Model Selection in Child Subagents
  • Separate Parent Launchers from Child Model Evidence
  • Tune concurrent sub-agent fan-out
  • Build PRD-Driven Feature With Subagents

All fifteen modules of the Claude Code Dojo