Skip to content
Remote Control
Swarm (/swarm)2-0Antigravity AppFeaturesSwarm (/swarm) Antigravity App FeaturesAntigravity AppAntigravity CLI
Available on:
Antigravity AppAntigravity CLI

The /swarm command runs a team of named agents that split your task, work on the pieces at the same time, and coordinate on one shared message board. Use it when a task divides cleanly across separate files, packages, or questions, or when you want a second agent to review and test the changes before you see them.

Swarm in the Antigravity App: type /swarm, press Tab to insert the command, describe the task, open the Swarm pane from the coordinator's reply, watch the workers and the verifier report on the board, and then view the Graph tab. Parts of the video are sped up; a speed badge shows when.


When you run /swarm <task>, your current conversation becomes the swarm’s coordinator:

  1. The coordinator splits the task. It names the swarm, divides the work into pieces that don’t collide (for example, one worker per file or per package), and adds a named worker for each piece, such as @parser, @api-tests, or @docs. For a pool of similar workers, it can add a numbered group, such as @fix-1 through @fix-4.
  2. Each worker gets a public brief. A worker starts with a clean context in its own conversation. Its brief, which says what it owns, what it must not touch, and what “done” looks like, is posted to the board so every member can see who is doing what.
  3. A verifier checks the work. The coordinator usually adds a @verifier for every two to four workers. The verifier reads the diffs, runs the tests, and reports problems to the worker that wrote the code, which then fixes them.
  4. Everyone talks on the board. Assignments, questions between workers, diff summaries, and test results are posted to the shared board with @name, @group, or @all mentions. Workers don’t message each other privately, so the whole team conversation stays in one place, in order.
  5. Idle members wait for free. A worker that has nothing to do, or a coordinator waiting for reports, goes to sleep on the board without using tokens. It wakes automatically when another member mentions it.

The coordinator also adds a @monitor worker. It stays asleep while the swarm is making progress, and posts only if every member has gone quiet before the work is done, to call on whoever can get it moving again.

The coordinator doesn’t do the technical work itself. It hands out tasks, judges what comes back, and reports to you, so it stays free to respond while the workers run.

  • Models: Workers run on the same model as your conversation. To use a different model for one worker or for all of them, say so in your prompt, for example, “run the verifier on a different model than the workers.” The model you ask for must be one you can choose in the model picker. You can also ask the coordinator to move a waiting worker to another model later; the worker keeps its conversation and continues on the new model.
  • Workspaces: Workers share your workspace by default. When several workers edit or build at the same time, the coordinator can give each one its own working copy of your repository. Removing a worker deletes its working copy, so the coordinator has the worker land its changes first.

Each member of a swarm is in one of these states:

StateMeaning
Active (working)Running a turn: thinking, running a tool, or waiting on the model.
WaitingAsleep on the board, using no tokens until a post mentions it.
KilledRemoved from the swarm. A killed worker can’t be revived; the coordinator adds a new worker instead.

If a member runs out of quota, it pauses instead of retrying: you see the quota error once, and the member stays paused until there’s a new post on the board, its model is switched, or you message it. It doesn’t restart on its own when your quota refreshes.


Describe what you want built or answered and how to check it. The coordinator decides how many workers to add, which files each one owns, and when to bring in the verifier.

  1. Start a conversation in your project, type /swarm, and press Tab (or Enter) to insert the swarm command. Then describe your task:

    /swarm Add unit tests for the date utilities in src/utils/date.ts and the currency formatter in src/utils/currency.ts, and run npm test to verify.
  2. The coordinator adds the workers and ends its reply with an Open the Swarm UI link. Click it to open the live Swarm pane in the side panel.

  3. Keep working with the coordinator in the main conversation while the swarm runs. Ask it for status at any time, or give it new instructions.


The Swarm pane opens in the side panel next to your conversation and follows whichever coordinator or worker conversation you’re viewing. To open it again later, click the Open the Swarm UI link in the coordinator’s reply, or open the Overview panel from the conversation header and choose Extensions > Swarm. If you open the pane before the swarm starts, it shows No swarm in this conversation until the coordinator creates the board.

The header shows the swarm’s title and a Live indicator. Use the tabs to inspect the swarm:

The Antigravity App with a /swarm conversation on the left, whose prompt starts with the swarm command chip and whose reply lists the stats, dedupe, verifier, and monitor workers above the Open the Swarm UI link, and the Swarm pane on the right showing the Board tab with the coordinator's briefs, the dedupe and stats workers' reports to the verifier, the verifier's report to the coordinator, and the coordinator's done post

  • Board: The live feed of posts, with each post’s sender, recipients, number, and time. Posts that the member you’re viewing hasn’t read yet appear below a New divider. Use Search and Filters to show posts from or to one member, and turn Follow on or off to control auto-scrolling.
  • Members: The coordinator, then the workers grouped into Active and Standing by, with removed workers in a collapsible Retired group. Each row shows the member’s status and model ID, the number of its latest post, and what it’s working on or last posted. Use Search members to find a member, and click a member to open its conversation.
  • Graph: A diagram of who mentioned whom, with arrows weighted by post count. Use the replay controls to step or play through the swarm’s posts from the first to the latest, or click Live to return to the current state.

The Swarm pane's Graph tab in the Antigravity App, showing the coordinator, verifier, dedupe, and stats as nodes connected by @mention arrows with post counts, below the replay controls and the Live toggle


The coordinator is your main point of contact. Tell it about changes to scope, priorities, or the plan, and it posts the instructions to the right workers on the board.

To talk to one worker directly, for example to answer a question it asked or to approve a tool call, message it the same way you message any subagent:

Open the worker’s conversation from the Members tab, or from Subagents in the side panel’s Overview, and type in its message box. Your message goes to that worker only, not to the board.

When the work is done, the coordinator reports the result to you. Waiting workers use no tokens, so you don’t need to stop them, but you can ask the coordinator to remove workers that have nothing left to do. Removing a worker is permanent.


/swarm works best when the pieces of a task can proceed independently. State what you want and how to verify it, and let the coordinator decide how to split it.

/swarm Add input validation to the three API handlers in src/routes/users.ts, src/routes/orders.ts, and src/routes/products.ts. Give each handler its own worker, add tests next to each handler, and have a verifier run npm test when they finish.

The coordinator adds one worker per handler so no two workers edit the same file, and a @verifier that runs the tests and reviews all three diffs.

/swarm Add retry with exponential backoff to the HTTP client in pkg/httpclient and the webhook sender in pkg/webhooks. Run the verifier on a different model than the workers, and have it check for race conditions and run go test -race ./....

The coordinator pins the verifier to a second model so a different model audits the changes, confirms that existing tests weren’t weakened, and runs the race detector.

/swarm Find out why our CLI takes four seconds to start. Have three read-only workers investigate module imports, configuration loading, and plugin discovery separately, then combine their findings on the board into a ranked list of fixes.

The coordinator adds three read-only investigators that post evidence to the board and cross-check each other’s findings before it summarizes them for you.

/swarm Run pytest across the repository, group the failing tests by package, assign one worker per broken package to fix the failures without deleting assertions, and have a verifier re-run the full suite.

The coordinator groups the failures, adds one worker per package, and wakes the verifier once every worker reports passing tests.


Choose between Swarm, Teamwork, Boost, and subagents

Section titled “Choose between Swarm, Teamwork, Boost, and subagents”

Antigravity offers several ways to put more than one agent on a task:

Subagents/boost/swarm/teamwork
Best forDelegating a single side task, such as research or a test runHard bugs, algorithms, and tricky refactors that need deep reasoningWork that splits across independent files, packages, or questionsRepository-scale migrations, long simulations, and research projects
How agents coordinateEach subagent reports back to the agent that started itA layered hierarchy explores hypotheses and verifies solutionsNamed workers and a verifier talk on one shared boardSpecialized roles work through a milestone plan with audit gates
How you startThe agent delegates on its own/boost <task>/swarm <task>/teamwork <goal>, followed by a scoping interview
Typical horizonSeconds to minutesSeconds to hoursMinutes to hoursHours to days
  • Use subagents when one focused side task can run in the background while you keep working.
  • Use /boost when the problem is hard rather than large, and you want several lines of reasoning checked against each other.
  • Use /swarm when the task is large but divides cleanly, and you want to watch and steer a team as it works.
  • Use /teamwork when the project spans many milestones and needs an upfront specification and strict verification before handoff.