dispatching-parallel-agents
Skill146 starsChanged 7 months agoMITView on GitHub
Use when 2+ tasks are independent and can run concurrently without file or state conflicts or sequential dependencies. Triggers on: "run these in parallel", "do these at the same time", plans with independent tasks, when subagent-driven-development identifies parallelizable work.
189 other projects use a version of this, 149 of them edited.
Adopted by
Most recently taken up by
- DemonDamon/AgenticXedited, first seen Nov 9, 2026
- roundpilot/superpowers-antigravityedited, first seen Nov 8, 2026
- lingyired/status-trioedited, first seen Nov 8, 2026
- lhbsaa/apex-unifiededited, first seen Nov 8, 2026
- afawfawffaf/my-skillsedited, first seen Nov 8, 2026
- Wasif-ZA/metatrooperedited, first seen Nov 8, 2026
Used with
Projects with it also use chinese-code-review, chinese-commit-conventions and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Leodorareluctant259Skillchinese-code-review
中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈
Also in 8 projects that use this
Leodorareluctant259Skillchinese-commit-conventions
中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化
Also in 8 projects that use this
obraSkilldiagnosing-superpowers
Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.
Also in 19 projects that use this
kntismSkillcondition-based-waiting
Use when tests have race conditions, timing dependencies, or inconsistent pass/fail behavior - replaces arbitrary timeouts with condition polling to wait for actual state changes, eliminating flaky tests from timing guesses
Also in 3 projects that use this
xfstudioSkillcontext-driven-development
Use this skill when working with Conductor's context-driven
Also in 3 projects that use this
EvezArtSkillanalytics-dashboard
User behavior tracking and analytics dashboards
Also in 3 projects that use this
- +3 more from Leodorareluctant259
Other versions189 projects use a version of this.
Word for word · 0
None found.
Edited · 149
- obra/superpowers★ 314k15% same
- openai/plugins★ 7.8k15% same
- farm-fe/farm★ 5.6k14% same
- lingyired/status-trio★ 1.8k15% same
- pcvelz/superpowers★ 1.3k13% same
- DemonDamon/AgenticX★ 1k15% same
- coco-research/coco★ 79714% same
- koaning/wigglystuff★ 45514% same
- derHaken/SuperAntigravity★ 43915% same
- Ibrahim-3d/conductor-orchestrator-superpowers★ 38114% same
139 more not listed
Wrote their own version · 40
- jnMetaCode/superpowers-zh★ 8.4ksame name
- GanyuanRan/Aegis★ 1.4ksame name
- KbWen/agentic-os★ 229same name
- shibit-net/xuanji-community★ 90same name
- withzombies/hyperpowers★ 80same name
- GEd520/legados★ 75same name
- KbWen/agent-virtual-office★ 65same name
- invergent-ai/surogates★ 28same name
- RBraga01/a-team★ 24same name
- CodingCossack/agent-skills-library★ 19same name
30 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- brainstormingSkill
- claude-md-creatorSkill
- context-managementSkill
- deliberationSkill
- dependency-managementSkill
- error-recoverySkill
- executing-plansSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- performance-investigationSkill
- premise-checkSkill
- receiving-code-reviewSkill
- refactoringSkill
- requesting-code-reviewSkill
- self-consistency-reasonerSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- token-efficiencySkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 179 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Use parallel subagents only for truly independent work.
- Distinctive: line 17
Use parallel dispatch when all are true:
- Distinctive: line 22
If any condition fails, run sequentially.
- Distinctive: line 34
Write one focused prompt per domain.
- Distinctive: line 38
Run integration verification: execute the full project test suite plus any cross-domain checks.
- Distinctive: line 42
Never forward parent session context or history to subagents.
- Distinctive: line 98
When risk is high, fall back to sequential execution.
“Common” is measured: kept by at least 6 in 10 of the 179 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dispatching Parallel Agents
Use parallel subagents only for truly independent work.
Decision Check
Use parallel dispatch when all are true:
- Problems have separate root causes.
- Tasks do not edit the same files.
- Tasks do not require shared intermediate state.
If any condition fails, run sequentially.
Do not use when:
- Failures are related — fixing one might fix others.
- The task is exploratory — you don't know what's broken yet.
- Agents would edit the same files or shared resources.
- Understanding the problem requires seeing the full system state.
- The task is content relay — fetching raw content (file contents, web pages, API responses) to bring back to the parent session. Agent results are compressed; raw content will be lost. Fetch it directly instead with Read (local files) or
curl(URLs).
Procedure
- Split work into independent domains.
- Write one focused prompt per domain.
- Dispatch all agents in a single message with multiple parallel Agent tool calls. Do not dispatch sequentially across multiple messages — staggered dispatch delays start times, burns cache TTL, and undermines the parallelism.
- Collect summaries and changed files.
- Resolve conflicts between summaries and changed files.
- Run integration verification: execute the full project test suite plus any cross-domain checks. Do not mark the wave complete until integration passes.
Context Isolation
Never forward parent session context or history to subagents. Construct each subagent's prompt from scratch using only the items listed below. Subagents must not receive conversation history, prior reasoning chains, or context from other subagent runs.
Why this is also the cache-optimal approach: All subagents share the same system prompt prefix, which is cached by the API. By keeping each subagent's input as [cached system prompt] + [small unique task prompt], every agent gets a cache hit on the heavy shared prefix and only pays full price for its small task-specific tail. Forwarding parent conversation history would make each subagent's prefix unique and large, breaking cache sharing and multiplying input token costs.
Prompt Requirements
Each agent prompt must include:
- Exact scope
- Acceptance criteria
- Constraints (what not to touch)
- Required output format
- Subagent containment: "You are a focused subagent. Do NOT invoke any skills from the superpowers-optimized plugin. Do NOT use the Skill tool. Do NOT dispatch, spawn, or delegate to any subagent of your own. Do all of this work yourself. Your only job is the task described below."
Example prompt
Fix the 3 failing tests in src/agents/agent-tool-abort.test.ts:
1. "should abort tool with partial output capture" — expects 'interrupted at' in message
2. "should handle mixed completed and aborted tools" — fast tool aborted instead of completed
3. "should properly track pendingToolCount" — expects 3 results but gets 0
Your task:
1. Read the test file and understand what each test verifies.
2. Identify root cause — timing issues or actual bugs?
3. Fix the root cause. Do NOT just increase timeouts.
4. Do NOT change any files outside src/agents/agent-tool-abort.test.ts and its direct implementation file.
You are a focused subagent. Do NOT invoke any skills from the superpowers-optimized plugin.
Do NOT use the Skill tool. Do NOT dispatch, spawn, or delegate to any subagent of your own. Do all of this work yourself.
Your only job is the task described above.
Return: Summary of root cause and what you changed.Common mistakes
❌ Too broad: "Fix all the tests" — agent gets lost ✅ Specific: "Fix agent-tool-abort.test.ts" — focused scope
❌ No context: "Fix the race condition" — agent doesn't know where ✅ With context: Paste the error messages and test names
❌ No constraints: Agent might refactor everything ✅ Constrained: "Do NOT change files outside X"
❌ Vague output: "Fix it" — you don't know what changed ✅ Specific output: "Return summary of root cause and what you changed"
Risks
- False independence assumptions
- Merge conflicts across shared files
- Inconsistent behavior across parallel fixes
- Cache TTL expiry for long-running tasks: the default prompt cache TTL is 5 minutes. If individual agent tasks are expected to run longer than that, the cache benefit diminishes. For very long tasks this is not a reason to avoid parallelism — it just means the input token saving is smaller.
When risk is high, fall back to sequential execution.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

