02 -Start
From zero to a synthesized decision
Install the CLI, verify your harness setup, and run a one-round swarm with the
bundled product-decision preset - no config required.
Prerequisites
- Node ≥ 20 (Node 24 LTS recommended -
.nvmrcpins it). - pnpm 10 for source installs and development.
- A harness CLI on
PATH, authenticated. The bundledproduct-decisionpreset uses Claude (claude auth login); other presets use Codex (codex login) or OpenCode (opencode auth login).
Install
Install the CLI globally - every method gives you the same agent-swarm command:
# npm
npm install -g @calvinnwq/agent-swarm
# pnpm
pnpm add -g @calvinnwq/agent-swarm
Prefer not to install a global CLI? Run any command on demand with npx -y @calvinnwq/agent-swarm in place of agent-swarm.
For agent-operated setup, install the public skill instead - it runs the CLI for you:
npx skills add calvinnwq/agent-swarm --skill agent-swarm
For source installs and development:
pnpm install
pnpm build
pnpm link --global
Verify your setup
Run agent-swarm doctor before your first swarm. It checks
project config, configured docs, the agent and preset registries, and
backend compatibility (Configuration section). It also
probes all four harnesses for availability and auth regardless of whether
a project config exists (Harness inventory section), and
maps each configured agent to its resolved harness
(Agent summary section). A harness that is missing or
unauthenticated but not required by your config is a non-fatal
WARN; one required by an agent is a
FAIL. agent-swarm does not globally require any harness;
a single-harness setup passes doctor when its required harness works.
agent-swarm doctor
Doctor exits 0 when everything is ready, 1 when a check fails, and 2 on an internal error.
Run your first swarm
The first positional argument is the number of rounds (1-3); the rest is your question:
agent-swarm run 1 "Should we adopt server components?" \
--preset product-decision \
--goal "Decide on migration strategy" \
--decision "Adopt / Defer / Reject" \
--timeout-ms 300000
Real harnesses can take longer than the default 120s dispatch timeout - bump --timeout-ms for deeper runs. Use --quiet for one-line-per-event output in CI.
Read the result
When it finishes, you'll find a self-contained run directory under .agent-swarm/runs/<timestamp>-<slug>/ with a deterministic synthesis.md. The synthesis combines the agents' answers into one call in the preset's own decision vocabulary:
Proceed - server components fit the migration if routing is staged first.
Confidence is reported as a level - low, medium, or high - not a fabricated percentage, and the verdict word comes straight from the preset's --decision vocabulary.
Where next
- CLI reference - every command, flag, preset, and run artifact.
- Architecture - how a run flows through the pipeline.
- Agent usage - how agents drive a swarm.