Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies - dispatches fresh subagent for each task (sequential or parallel) with code review between tasks, enabling fast iteration with quality gates (project)
Execute multiple tasks by dispatching fresh subagents, with code review between tasks.
Core principle: Fresh subagent per task + review after = high quality, fast iteration.
Don't use when:
Break work into independent units:
Sequential (one at a time):
Parallel (simultaneous):
For each task, dispatch a fresh agent:
Task tool:
subagent_type: [ui-engineer | senior-backend-engineer | general-purpose]
description: "Implement [task name]"
prompt: |
Task: [clear description]
Requirements:
- [specific requirement 1]
- [specific requirement 2]
Constraints:
- Read AGENTS.md for project rules
- Use cargo test / cargo clippy
- Follow TDD
Report back: What you implemented, test results, files changed
After subagent completes:
Task tool:
subagent_type: mtg-code-reviewer
description: "Review [task name] implementation"
prompt: |
Review changes for [task name].
Check:
1. Code quality
2. Test coverage
3. AGENTS.md compliance
Return: Issues (Critical/Important/Minor), Assessment
If Critical issues: Fix before proceeding If Important issues: Fix before next task If Minor issues: Note for later
After all tasks complete:
cargo test/git-workflow to commitTask 1 (parallel): ui-engineer
"Implement HandDisplay Bevy plugin showing cards in player's hand"
Task 2 (parallel): senior-backend-engineer
"Add get_hand query to return player's hand from GameSnapshot"
[Both complete]
Task 3: mtg-code-reviewer
"Review HandDisplay and get_hand implementations"
[Fix any issues]
/git-workflow
Stop if:
Never: