一键导入
dispatching-parallel-agents
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
Use when executing implementation plans with independent tasks in the current session
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions
| name | dispatching-parallel-agents |
| description | Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies |
When you have multiple independent problems (different test files, different subsystems, different bugs), investigating them sequentially wastes time. Each investigation is independent.
Core principle: Use parallel tool calls or isolated sequential task_boundary blocks per independent domain. Let investigations happen concurrently when there are no conflicts.
digraph when_to_use {
"Multiple failures?" [shape=diamond];
"Are they independent?" [shape=diamond];
"Single investigation all" [shape=box];
"One focus per problem domain" [shape=box];
"Can they run in parallel?" [shape=diamond];
"Sequential investigation" [shape=box];
"Parallel tool calls or concurrent subtasks" [shape=box];
"Multiple failures?" -> "Are they independent?" [label="yes"];
"Are they independent?" -> "Single investigation all" [label="no - related"];
"Are they independent?" -> "Can they run in parallel?" [label="yes"];
"Can they run in parallel?" -> "Parallel tool calls or concurrent subtasks" [label="yes"];
"Can they run in parallel?" -> "Sequential investigation" [label="no - shared state"];
}
Use when:
Don't use when:
In Antigravity, "parallel dispatch" means:
When investigations are purely read-only (no writes), use parallel view_file, grep_search, run_command calls in a single tool block. Results come back simultaneously, saving time.
# Call these simultaneously (in one tool block):
view_file(test_file_a.ts)
view_file(test_file_b.ts)
grep_search(error_pattern, file_c)
When each domain needs write operations or fixes, address them one domain at a time using separate task_boundary sub-phases:
[task_boundary: "Fixing Domain A: tool-abort tests"]
→ Investigate
→ Fix
→ Verify
[task_boundary: "Fixing Domain B: batch-completion tests"]
→ Investigate
→ Fix
→ Verify
Group failures by what's broken:
Each domain investigation needs:
After solving all domains:
❌ Too broad: "Fix all the tests" — scope too wide ✅ Specific: "Fix agent-tool-abort.test.ts" — focused
❌ No constraints: Might refactor everything ✅ Constraints: "Only fix tests in this specific file"
❌ Overlapping edits: Two domains editing shared code ✅ Check first: Ensure no shared files before parallelizing
After addressing all domains: