agentleFS
hdprajwalhdprajwal/agent-skills/skills/dispatching-parallel-agents/SKILL.md

dispatching-parallel-agents

Skill1 starsChanged 5 months agoMITView on GitHub

Dispatch one focused agent per independent problem and run them concurrently. Use when facing 2+ tasks with no shared state and no sequential dependency — several unrelated test failures, multiple broken subsystems, a batch of independent issues. Each agent gets a self-contained brief and returns a summary; you review for conflicts and integrate.

189 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • Leodorareluctant259Skill

    chinese-commit-conventions

    中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化

    Also in 8 projects that use this

  • obraSkill

    diagnosing-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

  • kntismSkill

    condition-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

  • xfstudioSkill

    context-driven-development

    Use this skill when working with Conductor's context-driven

    Also in 3 projects that use this

  • EvezArtSkill

    analytics-dashboard

    User behavior tracking and analytics dashboards

    Also in 3 projects that use this

  • +3 more from Leodorareluctant259

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 3

    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
  1. Distinctive:

    When you have several unrelated problems (different test files, different subsystems, different issues), one-at-a-time wastes time.

    line 13
  2. Distinctive:

    Don't: when failures are related (fixing one may fix others — investigate together), you need full system context, you don't yet know …

    line 26
  3. Distinctive:

    Read each summary · check for conflicts · run the full suite · spot-check.

    line 83

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Dispatching Parallel Agents

You delegate work to agents with isolated context. Craft each brief precisely so they stay focused, and keep your own context for coordination — they never inherit your session history.

When you have several unrelated problems (different test files, different subsystems, different issues), one-at-a-time wastes time. Each is independent and can run in parallel.

Core principle: one agent per independent problem domain, working at once.

When to use

  • 3+ test files failing with different root causes.
  • Multiple subsystems broken independently.
  • A batch of independent issues to fix.
  • Each problem stands alone, no shared state.

Don't when failures are related (fixing one may fix others — investigate together), you need full system context, you don't yet know what's broken, or agents would touch the same files (they'd conflict).

The pattern

1. Identify independent domains — group by what's broken:

File A → tool approval flow   File B → batch completion   File C → abort

2. One focused brief per agent — each gets: scope (one file/subsystem), goal, constraints (what NOT to touch), output (what to return).

3. Dispatch in parallel — issue all the agent calls in one message so they run concurrently. Multiple Agent calls in a turn, or a Workflow (parallel(...)) when you want clean result collection and a barrier.

4. Review and integrate — read each summary, check for conflicts (same code edited twice?), run the full suite (pnpm test / cargo test), spot-check — agents can make systematic errors.

A good brief

Focused, self-contained, specific about output:

Fix the 3 failing tests in src/agents/agent-tool-abort.test.ts:
1. "aborts tool with partial output" — expects 'interrupted at' in the message
2. "handles mixed completed/aborted tools" — fast tool aborted, not completed
3. "tracks pendingToolCount" — expects 3 results, gets 0

Looks like timing/race issues. Read the file, find the real root cause, fix by
replacing arbitrary timeouts with event-based waiting (don't just bump timeouts).
Don't change production code outside the abort path.
Return: root cause + what you changed.

Common mistakes

❌✅
"Fix all the tests""Fix agent-tool-abort.test.ts"
"Fix the race condition" — where?Paste the errors + test names
No constraints → refactors everything"Don't touch production code"
"Fix it" — you don't know what changed"Return root cause + changes"

Note on your usual loop

For a batch of GitHub issues, parallel dispatch works when the issues are truly independent — one agent per issue, each on its own branch, then PR each. If two issues touch the same files, do them sequentially (subagent-driven-development) to avoid merge conflicts.

After they return

Read each summary · check for conflicts · run the full suite · spot-check.

Related

  • subagent-driven-development — sequential, one-agent-per-task, for tasks that share a codebase.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.