dispatching-parallel-agents
Skill1 starsChanged 3 months agoMITView on GitHub
Splits independent work across parallel agents, each with its own exclusive writes and resources. Use when tasks can run concurrently with no dependence on another worker's output, such as separate files, services, or investigations; shared reads of frozen inputs are fine. Skip coupled writes, shared runtime state, dependent outputs, or work quicker to do inline.
189 other projects use a version of this.
Adopted by
Most recently taken up by
- DemonDamon/AgenticXtheir own version, first seen Nov 9, 2026
- roundpilot/superpowers-antigravitytheir own version, first seen Nov 8, 2026
- REPOZY/superpowers-optimizedtheir own version, first seen Nov 8, 2026
- lingyired/status-triotheir own version, first seen Nov 8, 2026
- lhbsaa/apex-unifiedtheir own version, first seen Nov 8, 2026
- afawfawffaf/my-skillstheir own version, 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 · 0
None found.
Wrote their own version · 189
- obra/superpowers★ 314ksame name
- jnMetaCode/superpowers-zh★ 8.4ksame name
- openai/plugins★ 7.8ksame name
- farm-fe/farm★ 5.6ksame name
- lingyired/status-trio★ 1.8ksame name
- GanyuanRan/Aegis★ 1.4ksame name
- pcvelz/superpowers★ 1.3ksame name
- DemonDamon/AgenticX★ 1ksame name
- coco-research/coco★ 797same name
- koaning/wigglystuff★ 455same name
179 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 repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- working-from-a-ticketSkill
- writing-specsSkill
- clarifying-intentSkill
- handoffSkill
- mapping-the-codebaseSkill
- prototypingSkill
- using-git-worktreesSkill
- using-sdlc-skillsSkill
- viewing-artifactsSkill
- writing-skillsSkill
- yagniSkill
- finishing-a-branchSkill
- release-readinessSkill
- architecture-decisionsSkill
- coding-standardsSkill
- data-modelSkill
- migration-strategySkill
- reviewing-plansSkill
- system-architectureSkill
- ui-ux-designSkill
- writing-plansSkill
- adding-observabilitySkill
- changing-a-live-schemaSkill
- executing-plansSkill
- rollout-controlsSkill
- subagent-driven-developmentSkill
- test-driven-developmentSkill
- complexity-auditSkill
- containing-an-incidentSkill
- debuggingSkill
- deprecating-an-apiSkill
- diagnosing-a-sessionSkill
- eliminating-correctionsSkill
- large-scale-changesSkill
- post-mortemSkill
- refactor-architectureSkill
- brainstormingSkill
- define-goalsSkill
- feasibility-checkSkill
- scopingSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- reviewing-a-prSkill
- security-auditsSkill
- verification-before-completionSkill
- verification-strategySkill
- visual-ui-verificationSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 179 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Run the independence test on every pair.
- Distinctive: line 45
Never paste session history.
- Very specific: line 46
Read assets/dispatch-packet-controlled.md when the plan is high-risk or uses phase queues.
- Distinctive: line 50
Before the first dispatch, freeze the expected packet IDs and their count, the final deadline, and the timeout and cancel action with its …
- Very specific: line 86
If the action is unavailable, refused, can only fork, or returns no tool-issued ID, write not dispatched, and name the action tried and …
- Distinctive: line 90
Ask the user once per work item.
- Very specific: line 102
When independence is required (security clear, a role the calling skill's contract requires to be independent, or an audit the user asked …
- Very specific: line 105
Ask this and end the turn.
- Distinctive: line 116
Only then write failed, timed out, or cancelled.
- Distinctive: line 121
If a writer reports a shared generator, file, state, dependency, or scope outside its packet, pause the affected work, preserve the diffs, …
“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
Prove the pieces are independent, hand each agent a complete packet, dispatch through a callable action that returns a tool-issued ID as proof, and reconcile every diff yourself before anything integrates.
When to use
- Two or more independent tasks: exclusive writes and mutable resources, with no task needing another's output. Overlapping reads of frozen inputs are safe.
- Skip overlapping writes, shared mutable state, dependent outputs, and work that is quicker done inline. Sequence it in the current task or plan; the plan executors are for an approved plan only.
Step 1: Before fan-out
Run the independence test on every pair. Group or sequence any pair that fails a line:
- Base — same immutable revision, or an explicitly ordered dependency revision.
- Writes — exclusive paths, including generated outputs, manifests, lockfiles, shared fixtures, tests. A truly shared file gets one later integration owner and no concurrent editor.
- State — disjoint ports, databases, fixtures. If either task runs a
server or migrations, invoke
using-git-worktreesfor each task in the pair; a caller that already gave each task its own worktree has done this. - Order — neither consumes the other's output. A dependency is a sequence.
Then cap the wave at what the machine can run at once. For a heavy build, measure one run's memory and cores, dispatch what fits, and sequence the rest.
- Pick each agent's tier from the Model selection table below and write it
in the packet's
Tierfield: the lowest tier sufficient for the decisions that remain and the cost of an error. Supply missing context before moving up a tier. - Fill one
assets/dispatch-packet.mdper agent, every field, before its dispatch. Readreferences/brief-examples.mdbefore writing the first one. Never paste session history.- Read
assets/dispatch-packet-controlled.mdwhen the plan is high-risk or uses phase queues; it adds the ten controlled fields. - Until those fields say otherwise, a worker may not dispatch anyone, and the data it may reach stays bounded.
- Read
- Before the first dispatch, freeze the expected packet IDs and their count, the final deadline, and the timeout and cancel action with its owner. The deadline is the user's; without one, the harness's agent timeout. With neither, ask the user once, and dispatch nothing until answered.
Model selection
This section applies to each subagent, including sequential workers and reviewers; it does not require a parallel fan-out. Choose within the user's permitted models.
| Tier | Work |
small | Mechanical transformations, formatting, structured extraction; rules and expected output are explicit. |
medium | Execution of settled decisions that still requires judgment: specified implementation, focused review, substantive summarization. |
large | Resolving uncertainty: architecture, unclear requirements, unexplained failures, uncertain impact, or consequential tradeoffs. |
Work that writes a test or code under test-driven-development is never
small: choosing the assertion is a judgment.
At dispatch, map the chosen tier to an available model and set the harness's model parameter or agent configuration explicitly; naming a tier in the prompt selects nothing. If selection is unavailable, say so and use only a fallback the user's preferences permit; never claim an override was applied. Leave the user's main-session model and any model reserved for orchestration untouched.
Step 2: Dispatch
- Dispatch through the real callable action, starting the agent fresh,
never as a fork of this session: on a harness that forks by default,
choose the option that starts new. Work is dispatched only when the
action has returned a non-empty tool-issued ID; record each ID in the
packet's
Dispatch receiptfield. Naming an agent or writing a prompt is not dispatch. Then fill the packet'sModel read backfrom the model the harness reports for that agent, ornone reported; on a mismatch or none, never report the chosen tier as the one that ran. If the action is unavailable, refused, can only fork, or returns no tool-issued ID, write
not dispatched, and name the action tried and what would make it callable. Never describe a fan-out that has no tool-issued IDs behind it, and never quietly do the work yourself instead. Ask the user once per work item; the answer covers only that work:{{work}} needs an independent agent, and {{action}} is not callable here. 1. I do it myself, labelled as a self-review, not an independent one 2. Name the reviewer or agent who will do it 3. Keep it pending Recommendation: {{option}} — {{one sentence}}.When independence is required (
security clear, a role the calling skill's contract requires to be independent, or an audit the user asked to be independent), omit option 1 and say why. Ask this and end the turn;clarifying-intentowns what closes it. Record the answer as the written assignment and continue under it. A named reviewer's report counts only when it arrives from outside this session, bound to the exact identities; the recorded answer stands in for the tool-issued ID. With no answer, the work stays pending.- Poll exactly those IDs until the frozen deadline. Never poll a target that was not dispatched. Success means exactly one current result for each packet.
- On a failure or at the deadline, write
cancellation requested. Wait until the worker, everything it spawned, and every effect it started have all stopped (quiescent). Set partial output aside, unused (quarantine). Only then write failed, timed out, or cancelled. - Reassign the work as a new attempt linked to the one it replaces only with a changed intervention and inside the caller's bound; otherwise return the item to the caller as failed or blocked. Reject every late result or change that arrives from the replaced attempt.
- If a writer reports a shared generator, file, state, dependency, or scope outside its packet, pause the affected work, preserve the diffs, reclassify the pieces, assign one owner or a sequence, and issue revised packets. A "small overlap" is overlap.
Step 3: Reconcile
- Inspect every returned diff yourself against its declared base, ownership set, authorized checkpoints, and the raw output of its checks. Reject a scope leak, a mixed change, or missing evidence, even when the suite is green. If the packet's scope is a list of items, reject a report that lacks a line for any item.
- Advance the required scope only when every packet has an accepted success report, or a directly approved scope change or reassignment.
- Integrate through the named owner. Run the combined checks on the exact result.
- REQUIRED SUB-SKILL: invoke
verification-before-completionfor that combined state before anything downstream treats it as done.
Gotchas
- Doing the work yourself when dispatch fails reads as a fallback, but the result then claims an independence it never had. Only the user's recorded answer makes a self-review legitimate, and it stays labelled as one.
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.

