
Swarm
Fans out parallel worker agents on a task and merges their results into one report
Swarm is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 5.1K
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Swarm
Swarm runs a task across several subagents at once instead of one after another. The agent first frames the job: it states what done looks like, picks whether to split the work into slices, race identical workers, or mix both, and chooses the worker model from a models sheet with a fallback default. Workers are launched together in the background, each with a standalone brief and its own worktree or output directory so their work does not collide.
The workflow adds checks along the way. Workers report PASS, ISSUES, or BLOCKED with evidence, and any that record commit SHAs or a measurement method they were asked to report are kept. A missing result is respawned once before it is logged as a gap, and the run continues with fewer workers if one drops out. The final output is a single in-chat report with a results table, issue summaries, gaps, and the selection rule used for races.
The skill is written for Claude Code and relies on its Agent tool, background subagents and effort settings. It also points to platform mapping files for Codex, GitHub Copilot, Muse and Antigravity, and it reads a pstack-models.md override sheet when one is present.
When your agent uses it
Fan out N parallel workers, drain them, and return one report. Use for /swarm, 'swarm this', or parallel coverage, races, gauntlets, and exploration.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (5 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the pstack plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claudeOr copy only this skill to ~/.claude/skills/swarm:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/swarm &&
cp -R "$tmp/plugins/pstack/skills/swarm" ~/.claude/skills/swarm &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/swarm inside it instead.
Copy the skill folder to ~/.agents/skills/swarm to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/swarm &&
cp -R "$tmp/plugins/pstack/skills/swarm" ~/.agents/skills/swarm &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/swarm inside it instead.
Copy the skill folder to ~/.cursor/skills/swarm to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/swarm &&
cp -R "$tmp/plugins/pstack/skills/swarm" ~/.cursor/skills/swarm &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/swarm inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/michael-denyer/pstack-claude.git --path plugins/pstack/skills/swarmOr copy the folder to ~/.gemini/skills/swarm yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/swarm:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/swarm &&
cp -R "$tmp/plugins/pstack/skills/swarm" ~/.copilot/skills/swarm &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/swarm inside it instead.
Get the folder:
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.gitThen copy pstack-claude/plugins/pstack/skills/swarm into your agent's skills folder as swarm. Agents that support SKILL.md read one folder per skill.
What it does
- Parallel worker fan-out
- Launches all workers in a single batch as background subagents on separate worktrees or output directories.
- Slice or race modes
- Splits work into coverage slices, runs identical race arms, or combines both under a declared selection rule.
- Result validation
- Checks that each worker reports the SHAs and method its brief requires, and respawns a worker once on a miss.
- Model and effort selection
- Chooses the worker model and reasoning level from a role sheet, with a default fallback.
- Consolidated report
- Returns one in-chat summary with a results table, issue lines, gaps and dropouts.
Good for
- Check a large codebase for issues by splitting it into slices handled by parallel workers
- Race several approaches to the same bug and pick the first or best result
- Run a gauntlet of checks across many files and collect a single pass or fail summary
- Explore several options at once and return one ranked comparison
- Measure a set of commits with independent workers and merge their findings
Swarm FAQ
How do I trigger the swarm skill?
It is meant to load when a request mentions /swarm, 'swarm this', or parallel coverage, races, gauntlets or exploration.
Does Swarm need any scripts or extra tools?
The skill has no bundled scripts. It relies on the agent's subagent dispatch, and on Claude Code it uses the Agent tool with background workers.
What happens if a worker fails to return a usable result?
The orchestrator respawns that worker once. If it still fails, the miss is recorded as a gap, which does not count as a pass, and the run continues with the remaining workers.
Which models do the workers use?
By default workers use opus, read from a role line in a models sheet if one exists. Auto or inherit-parent settings run workers on the parent model.
How do I install Swarm in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/swarm to use it in all your projects, or to .claude/skills/swarm in one project. Or install the pstack plugin, which includes it: /plugin marketplace add michael-denyer/pstack-claude, then /plugin install pstack@pstack-claude.
Does Swarm run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Swarm?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Swarm?
The closest alternatives to Swarm are Breezing, Orchestrate, Shiplog waves, Arena and Thermos.
Where this comes from
- Description: from the skill's own SKILL.md.
More from michael-denyer/pstack-claude

Makes the agent read pstack's poteto-mode skill first and follow its routing
- Open source
- 5.1K GitHub stars
- Developer tools

Has the agent restate your goals and the problem you're solving in its own words
- Open source
- 5.1K GitHub stars
- Productivity

Prototype 2-3 competing designs and compare them before committing to one
- Open source
- 5.1K GitHub stars
- Developer tools

Sketches types, signatures and module layout before the agent writes code
- Open source
- 5.1K GitHub stars
- Developer tools

Runs parallel candidate attempts at a task, then merges the best parts into one artifact
- Open source
- 5.1K GitHub stars
- Developer tools

Drafts a personal working-style skill from your past agent conversations
- Open source
- 5.1K GitHub stars
- Developer tools




