Agent Blueprint
Get started
Browse the pages

Guides

Team work and swarms

The blueprint runs several helpers at once in two ways. Team work splits a plan into waves of parallel tasks with ab-orchestrate, with your session as the lead and the only one that commits. A swarm gives several read-only helpers the same input, each with its own lens, and merges what they find, as ab-review-swarm and ab-deep-research do.

Helpers run one at a time or in coordinated groups. The same patterns work in every tool: a helper runs where the tool has subagents, and the session does the work itself where it does not.

Team work (ab-orchestrate)

ab-orchestrate runs a plan as a team, with your session as the lead. The lead keeps a task ledger in .agent-blueprint/team/<run>/, groups the tasks into waves by dependency (tasks that share a file never share a wave), and starts one helper per task, each owning its files or working in its own worktree. Only the lead commits: it integrates each finished task, commits it, and runs an integration check between waves. A wave has four tasks by default and never more than the tool’s helper limit in skills/ab-orchestrate/references/host-limits.tsv (Claude Code 20, Codex 4, Pi 4 with pi-subagents, Hermes 3 interactive and 2 one-shot; Antigravity, Grok Build, Cursor CLI and Amp document no limit). A run can resume from the ledger in another session or another tool.

Wave orchestration: dependency-ordered waves with an integration check between them (opens the full-size image)

If you have switched on a native team feature, the lead uses it on top of the ledger, as skills/ab-orchestrate/references/native-extras.md describes: Claude Code Agent Teams (CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1, interactive sessions only, with the blueprint’s TeammateIdle and TaskCompleted hooks) and Codex multi_agent_v2 (multi_agent_v2 = true under [features], long-lived helpers that take follow-up tasks). The ledger stays the task list either way.

Optional native team features on top of the ledger: your session leads backend, frontend and test teammates that each own their files, and only the lead commits (opens the full-size image)

Review swarm (ab-review-swarm)

Reviews a change with specialized reviewers in parallel: quality, simplicity and tests every time; security, performance, conventions, frontend, architecture, data and schema when the diff calls for them. A validator re-checks the findings, and a synthesizer merges them into one prioritized P1/P2/P3 report.

Review swarm: parallel reviewers, a validator and a findings synthesizer (opens the full-size image)

Research swarm (ab-deep-research)

Five helpers research a topic in parallel before planning: past learnings, framework docs for the installed versions, industry practice, git history, and a map of the code the change touches. A synthesizer turns their findings into one brief.

Research swarm: five parallel researchers and a research synthesizer (opens the full-size image)

Swarms or team work

Pattern Best for How it works
Swarms (ab-review-swarm, ab-deep-research) Analysis: the same input through different lenses Read-only helpers; a synthesizer merges the outputs
Team work (ab-orchestrate) Implementing a plan’s tasks Task ledger, waves, file ownership or worktrees, lead-only commits

A typical feature combines them: ab-deep-research, then ab-brainstorming, then ab-orchestrate, then ab-review-swarm.

How helpers run

A helper runs in its own context where the tool can start one; otherwise the main session follows the prompt file itself. Each prompt opens with a role header (what it may change, whether it is safe at lower effort, and that it starts no helpers of its own) and ends with an Output section, so both paths return the same shape.

Single dispatch, one helper for one job:

Main session -> helper with references/agents/security-sentinel.md -> findings -> act on results

Swarm dispatch, several helpers on the same input with different lenses:

Swarm dispatch: parallel reviewers, findings synthesizer, one report (opens the full-size image)

Wave dispatch, parallel within a wave and sequential between waves:

Wave dispatch: parallel within waves, an integration check between them (opens the full-size image)

Team dispatch, with a native team feature switched on: long-lived teammates with file ownership and messaging, on top of the ledger:

Team dispatch: teammates with file ownership, shared tasks and messaging (opens the full-size image)

Skills in this guide