Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Digital-Process-Toolsv0.1.0Community License
Declare a swarm of Claude Code agents once in swarm.json — who spawns whom, with what, what comes back, who may do what — then read it as a map and check it on every PR. Structure in JSON, behaviour stays in the agent MDs.
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.

Declare a swarm of Claude Code agents once, in swarm.json — who spawns whom, with what, what comes back, who may do what irreversible, what it costs. Read it as a map. Check it on every pull request.
Structure goes in the JSON. Behaviour stays in the agent MDs, where it already is.
A loop of agents grows one issue at a time. Each fix is right in its file; nobody holds the graph. The result runs and still carries dead rules, duplicate paths and states nobody catches — the failure where every file is correct and the loop is wrong. Declaring the tree for claude-oss found six of those in one evening, before any checker existed. docs/why.md.
/swarm-builder:design | interview from nothing: restate, propose structure only, render, loop until the picture is right |
/swarm-builder:declare | write swarm.json from the repo's agent MDs — structure only, never guessed |
/swarm-builder:read | build the page: map per flow, node cards with in/out, edge contracts, step player |
/swarm-builder:doctor | run the rules; three states per rule, could-not-check never reads as ok |
/swarm-builder:compile | inject each agent's role summary, scripts list and incoming contract into its MD, idempotently -- creates a heading-only skeleton first when the MD does not exist yet |
/swarm-builder:write <agent> | co-write one agent's behaviour under its skeleton's headings, in conversation, one agent at a time -- asks per handback state, per authority, writes only what you confirmed |
Linting prose against the JSON (a spawn named in an agent's MD with no matching edge) is doctor rule R09. What is left is on the issue tracker, each one a bounded issue.
/plugin install swarm-builder@dpt-plugins
Or clone and run the scripts directly — plain Python 3.9+, jsonschema is the one dependency.
The structure of a swarm lives in swarm.json; the behaviour of each agent lives in its MD. The
tool's job is to get the structure right before any behaviour is written, and to keep the two
from drifting apart afterwards. Two ways in, one loop after that. Steps marked planned are
filed, not shipped — the issue number says where.
1. Install the plugin.
/plugin install swarm-builder@dpt-plugins
2. Get to a swarm.json. Either:
You have agents already — /swarm-builder:declare. It reads the MDs and every file they
load, and writes structure only: one catalogue entry per agent (md, summary, model,
tools, authority, lifetime, budget_bytes, context, scripts) and one edge per
literal spawn it can locate (from, to, when, brief, handback). A spawn it can only
find in prose goes under declared_but_unrouted with a file:line — never guessed into an
edge. Expect this step to surprise you; writing the tree is where stale rules show.
You have nothing yet — /swarm-builder:design. An interview, in your
domain, not a template: what runs, what triggers it, which actions are irreversible and who
may take them, where a human must stay in the loop, what a run may cost. It restates what it
understood, you correct it, then it proposes the fewest agents that satisfy the need — as
swarm.json, structure only, named from your words. It never starts from an example;
examples/ are examples.
3. Look at it — /swarm-builder:read. The page: one map per flow, a card per node with its
in/out edges, the contract on every edge, a step player. A broken relation is a thing you see in
a second here and would read for a minute in JSON. design ends every round on this page and
asks whether it looks like what you need; loop until it does.

This is examples/claude-oss.swarm.json as the reader draws it: 15 agents in four columns of
spawn depth, model and budget on every card, the Explore node dotted because it is the harness's
and has no MD, and the dashed red edges the ones declared in prose that no spawn routes. Planned
(#28): every doctor finding drawn on the map the same way — an unrouted handback state, an agent
nothing reaches, a child holding more authority than its parent — so the picture is the check,
not only the text.
4. Refine by hand. swarm.json is the file you edit from here on; docs/model.md is the
schema in prose. Three things only you decide:
Generated from the plugin's indexed repository (digital-process-tools/claude-swarm-builder) — no native marketplace selected
npx claudepluginhub p/digital-process-tools-swarm-builderBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground