website/docs/cli-reference/swarm.md
Generated from bd help --doc swarm
Swarm management commands for coordinating parallel work on epics.
A swarm is a structured body of work defined by an epic and its children, with dependencies forming a DAG (directed acyclic graph) of work.
bd swarm
Create a swarm molecule to orchestrate parallel work on an epic.
The swarm molecule:
If given a single issue (not an epic), it will be auto-wrapped:
Examples: bd swarm create bd-epic-123 # Create swarm for epic bd swarm create bd-epic-123 --coordinator=observer/ # With specific coordinator bd swarm create bd-task-456 # Auto-wrap single issue
bd swarm create [epic-id] [flags]
Flags:
--coordinator string Coordinator address (e.g., my-project/witness)
--force Create new swarm even if one already exists
List all swarm molecules with their status.
Shows each swarm molecule with:
Examples: bd swarm list # List all swarms bd swarm list --json # Machine-readable output
bd swarm list
Show the current status of a swarm, computed from beads.
Accepts either:
Displays issues grouped by state:
The status is COMPUTED from beads, not stored separately. If beads changes, status changes.
Examples: bd swarm status gt-epic-123 # Show swarm status by epic bd swarm status gt-swarm-456 # Show status via swarm molecule bd swarm status gt-epic-123 --json # Machine-readable output
bd swarm status [epic-or-swarm-id]
Validate an epic's structure to ensure it's ready for swarm execution.
Checks for:
Reports:
Examples: bd swarm validate gt-epic-123 # Validate epic structure bd swarm validate gt-epic-123 --verbose # Include detailed issue graph
bd swarm validate [epic-id] [flags]
Flags:
--verbose Include detailed issue graph in output