Use when facing 2+ strictly independent tasks. Enforces physical isolation via git worktrees and deep context gathering before dispatching concurrent subagents.
When you have multiple unrelated failures or features, investigating them sequentially wastes time. Core principle: Dispatch one agent per independent problem domain into strictly isolated physical environments.
digraph when_to_use {
"Multiple tasks/failures?" [shape=diamond];
"Strictly independent? (No shared state)" [shape=diamond];
"Sequential execution" [shape=box];
"Deep Context Gathering" [shape=box];
"Create Git Worktree per task" [shape=box];
"Dispatch in Parallel" [shape=box];
"Multiple tasks/failures?" -> "Strictly independent? (No shared state)" [label="yes"];
"Strictly independent? (No shared state)" -> "Sequential execution" [label="no"];
"Strictly independent? (No shared state)" -> "Deep Context Gathering" [label="yes"];
"Deep Context Gathering" -> "Create Git Worktree per task";
"Create Git Worktree per task" -> "Dispatch in Parallel";
}
Before considering parallel dispatch, verify independence mechanically:
subagent-driven-development.The human architect is perfectly willing to answer as many questions as necessary to ensure context is crystal clear before dispatch.
You MUST NOT run parallel agents in the same directory.
For each independent task, use superpowers:using-git-worktrees to create a fresh, isolated branch and physical directory.
fix/domain-1)fix/domain-2)Provide each subagent with a highly focused prompt.
Prompt Structure per Agent:
You are working in an isolated worktree.
Your specific scope is: [Target File/Subsystem]
Context gathered from architect: [Inject deep context here]
Constraints:
1. Do NOT modify any files outside your scope.
2. Rely on condition-based waiting for tests, not arbitrary timeouts.
3. If tests fail 3 times, trigger your circuit breaker.
Return: A structured summary of the root cause, exact files changed, and test results.
When all agents complete their work:
fix/domain-1 and fix/domain-2 back into the main development branch.superpowers:finishing-a-development-branch.| Mistake | Prevention |
|---------|------------|
| File Locking / Collisions | MANDATORY: Always use separate git-worktrees for concurrent agents. |
| Vague Scope | Provide exact file paths and error logs in the prompt. |
| Assuming Independence | Check imports and shared mocks before dispatching. |
| Rushing the Dispatch | Ask the human architect exhaustive questions to build a bulletproof context for each agent. |
superpowers:using-git-worktrees (For physical isolation)superpowers:systematic-debugging (If an agent hits a blocker)superpowers:finishing-a-development-branch (For merging and cleanup)Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer