mcpField
D
ds-swarm

ds-swarm

github.com/aicodekingAgent workflows263434 installsUpdated 2w ago
Repository

About ds-swarm

ds-swarm is a workflow skill for dividing broad, shallow work among parallel workers and combining results into an evidence-based report. It defines how to partition tasks, verify results, handle missing evidence, and stop.

Key features

  1. 01Partition work into parallel slices
  2. 02Give workers isolated output locations
  3. 03Require command-based evidence
  4. 04Retry a missing or invalid result once
  5. 05Merge findings and record gaps

Use cases

  1. 01Gather results across independent task slices
  2. 02Compare parallel attempts under a preset rule
  3. 03Consolidate verified results and unresolved gaps

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aicodeking/deepseek-stack --skill ds-swarm

After installing, type/ds-swarmin Claude Code to confirm it loaded.

Details

From the project README

ds-swarm

Split work that is wide but shallow across parallel workers, then merge their proven results into one report.

Steps

  1. State the done condition and the report the swarm must return.
  2. Pick the shape. Partition the job into non-overlapping slices, or race N workers on the same brief, or both. For a race, decide up front how you will choose: first pass, rank all, or best one.
  3. Write one brief per worker that stands alone: goal, exact slice, how to verify, what to report. When workers test specific commits, name the exact commit hashes and the measurement method.
  4. Give every worker that writes files its own output location.
  5. Spawn all workers at once. If the harness cannot run subagents, run the briefs one by one in fresh contexts.
  6. Each worker reports PASS, ISSUES or BLOCKED with evidence: commands run and their output. ISSUES lists every provable issue, not just the first.
  7. Collect results. Reject any result with no evidence or the wrong commit and respawn that worker once. A second miss is a recorded gap, not a pass.
  8. Merge into one report: the verdict, each slice or arm with its evidence, gaps, and duplicates merged by root cause.

Stop when

  • Every slice has a result or a recorded gap and the report is written.
  • Or a race has a winner under the rule from step 2.
  • Never respawn a worker more than once.

Rules

  • Workers do not share writable state.
  • A missing slice is never counted as passing.
  • Report what workers proved, not what they claimed.

Comments

Markdown supported