Sequential swarm: Agent A does phase 1 → handoff → Agent B does phase 2. Each "agent" is a new chat with handoff context. Use when work spans multiple phases or roles.
- Context is long — ~20–30 exchanges; thread feels heavy.
- Phase boundary — One phase (planning, implementation, review) is done; next phase starts.
- Role switch — Different skill needed (planner → implementer → critic).
- Human gate — Approval or decision required before continuing.
Use subagent when: The task is a sub-step of current work; the result is needed in-session; the task is bounded.
Use handoff when: Phase boundary; context reset needed; human gate.
- Next: One clear action for the immediate next session.
- Paths / artifacts: Include any plan file, paths just created, branch name.
- Decisions / gotchas: Note phase-specific decisions.
- scope (optional): Restrict the next session.
Example (planner → implementer):
## Done
- Produced WBS for user auth (5 phases)
- User approved phases 1–3
## Next
Implement phase 1 of WBS: add auth schema and migration. Do not start phase 2.
## Paths / artifacts
- plans/user_auth_wbs.plan.md- Session 1 (planner): Produce WBS, get approval. Handoff: Next = "Implement phase 1".
- Session 2 (implementer): Do phase 1, update handoff. Next = "Implement phase 2" or "Run critic on phase 1 output".
- Session 3 (critic): Review artifact; suggest fixes. Handoff: Next = "Apply critic fixes" or "Implement phase 2".
- Next: "Implement phase N from plan X; then update handoff Next to phase N+1."
- After each phase: update handoff Done, set Next to next phase or "Done" if complete.
- Progress log: Done bullets in handoff serve as the log.
- Each session reads
handoff_latest.mdand any linked plan first. - Respect
scopein handoff; do not drift outside without asking. - Archive before overwrite: copy
handoff_latest.mdtohandoff_archive/YYYYMMDD-HHMMSS.mdbefore each write.
- HANDOFF_FLOW.md — single-session handoff flow
- state/README.md — handoff schema