agentleFS
lsy041015lsy041015/orchestra/skills/dispatching-parallel-agents/SKILL.md

dispatching-parallel-agents

Skill4 starsChanged 2 months agoMITView on GitHub

Use only when the user explicitly requests independent implementation work that can run concurrently without shared state

190 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

  • AWSSkill

    condition-based-waiting

    Replace arbitrary sleeps in tests with polling for the ACTUAL condition — a waitFor(() => predicate, description, timeoutMs) helper that polls every 10 ms, calls the getter inside the loop (no stale cache), and throws a clear error on timeout. Use when a test uses setTimeout / sleep / time.sleep, is flaky (passes on fast machines, fails under load or in CI), times out when run in parallel, or waits for an async operation, event, state, count, or file to appear. Do NOT use when the test genuinely exercises timing behavior (debounce / throttle) — then wait for the triggering condition FIRST and comment WHY the timed wait is justified. Trigger on "flaky test", "race condition in tests", "why does this pass locally and fail in CI", or any `await new Promise(r => setTimeout(r, N))` in a test.

    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

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

  • 0

    Common

    Most of the 181 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not use this skill for exploration, planning, diagnosis, test triage, review, re-review, or a second opinion.

    line 15
  2. Very specific:

    When all workers return, the main agent reads every actual diff and report, checks for overlap and integration conflicts, and applies …

    line 27
  3. Distinctive:

    No worker changes a shared config, lockfile, schema, API, or test fixture.

    line 40
  4. Very specific:

    If any answer is uncertain, do not parallelize.

    line 46

“Common” is measured: kept by at least 6 in 10 of the 181 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

Parallel dispatch is an exception to the one-worker default. It is permitted only when the user explicitly asks for parallel implementation and each unit has disjoint files, interfaces, fixtures, and mutable state. The main agent first confirms those boundaries; otherwise work sequentially or inline. When orchestra:orchestrator is active, its own rule for parallel Codex and Claude workers with disjoint allowed files applies instead of this skill.

Do not use this skill for exploration, planning, diagnosis, test triage, review, re-review, or a second opinion. Those remain in the main session. A worker may not dispatch its own children.

Dispatch contract

For every independent unit, provide a separate brief with its exact goal, allowed files, settled interfaces, acceptance checks, tests, and report path. Every call uses the host implementer preset (Codex: gpt-6-luna / xhigh / fork_turns = "none"; Claude Code: orchestra:implementer agent = sonnet / high; when orchestra:orchestrator is active, its per-tier routing replaces this preset). Make the calls concurrently only after confirming no write or state dependency can overlap.

When all workers return, the main agent reads every actual diff and report, checks for overlap and integration conflicts, and applies orchestra:verification-before-completion to the combined state. Reuse a matching result only when its command, scope, environment, exit code, and actual log still apply; otherwise run the affected integration verification. Worker reports are evidence, not approval. Send a concrete fix to the same worker with followup_task (Codex) / SendMessage (Claude Code; an orchestrator Codex CLI worker gets a fix brief and --resume) when possible; do not create a reviewer or a fresh fixer. At the fix-round limit (two failed fixes with the same root cause, or three fix rounds on one task), the main agent stops retrying, records a Ruling, and changes the plan or fixes inline.

Boundary checklist

  • Files and generated artifacts are disjoint.
  • No worker changes a shared config, lockfile, schema, API, or test fixture.
  • Each worker can test its result without another worker's uncommitted state.
  • Integration order and any merge conflict resolution are known to the main agent.
  • Hardware, calibration, permissions, and external side effects remain under the main agent's review and the user's existing authorization.

If any answer is uncertain, do not parallelize. Use one worker or execute in the main session. Internal references use the orchestra: namespace.

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.