# Swarm

> Swarm is an open-source agent skill for developer tools. Fans out parallel worker agents on a task and merges their results into one report. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/michael-denyer/pstack-claude/tree/main/plugins/pstack/skills/swarm
- **Repository:** https://github.com/michael-denyer/pstack-claude
- **GitHub stars:** 5,057
- **License:** MIT
- **Skill name:** swarm
- **Collection:** https://github.com/michael-denyer/pstack-claude
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/swarm)
- [License: MIT](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/swarm)

## Features

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

## Install

### Claude Code

This skill ships in the `pstack` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claude
```

Or copy only this skill to `~/.claude/skills/swarm`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/swarm` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/swarm` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/michael-denyer/pstack-claude.git --path plugins/pstack/skills/swarm
```

Or copy the folder to `~/.gemini/skills/swarm` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/swarm`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git
```

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

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

## Alternatives

- [Breezing](https://ai-powered.com/skills/breezing-chachamaru127-2): Breezing is an open-source agent skill for developer tools.
- [Orchestrate](https://ai-powered.com/skills/orchestrate): Orchestrate is an open-source agent skill for developer tools.
- [Shiplog waves](https://ai-powered.com/skills/shiplog-waves): Shiplog waves is an open-source agent skill for developer tools.
- [Arena](https://ai-powered.com/skills/arena-michael-denyer): Arena is an open-source agent skill for developer tools.
- [Thermos](https://ai-powered.com/skills/thermos): Thermos is an open-source agent skill for developer tools.
- [Devfleet](https://ai-powered.com/skills/devfleet): Devfleet is an open-source agent skill for developer tools.
- [Orchestration](https://ai-powered.com/skills/orchestration-xiaolai): Orchestration is an open-source agent skill for developer tools.
- [Harness work](https://ai-powered.com/skills/harness-work-chachamaru127-2): Harness work is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/swarm-michael-denyer
