This post was translated from Korean by AI. Read the original (Korean)
Antigravity /swarm Guide: 4 Prompts for Splitting Work Across Several Workers
SET-UP AI|

Antigravity's /swarm command lets several named agents split one task and work on it at the same time, with a verification agent checking the results at the end. According to Google's official Antigravity documentation (a Gemini-based coding agent tool), it suits work that can be divided into non-overlapping pieces such as files or packages, and it works in both the app and the CLI. This article covers how to start it, how to follow progress, and four prompts you can use right away.
Requirements
- The Google Antigravity app or the Antigravity CLI. The official documentation says
/swarmis open on all plans in both the app and the CLI. Business and Enterprise accounts require the organization admin settings to allow it. - A project folder to work in. Start the conversation in the folder that holds the code so the workers share the same workspace.
- Enough quota. Swarm is still in preview, and since each worker is a separate agent, it uses quota much faster than a normal conversation.
Getting Started
- Open a new conversation in your project. In the app, use the conversation window; in the CLI, run
Antigravity CLIin the project folder. - Type
/swarmin the input box and press Tab to complete the command. In the app, Enter also works. - After the command, write in one paragraph what you want done and how to verify it. The coordinator decides how many workers to use and which one takes which files.
- In the app, click the
Open the Swarm UIlink at the end of the coordinator's reply to open the Swarm window on the right. In the CLI, type/swarm boardor press Alt+S to open the full-screen board. - You can keep talking to the coordinator while the work runs. If you ask about status or tell it to change the scope, the coordinator passes this to the relevant worker through the board.
How the swarm works
Your conversation becomes the coordinator. It splits the work into pieces that do not overlap and attaches named workers one by one, such as @parser and @api-tests. Each worker starts in a fresh conversation, and a note saying what it owns and what it must not touch is posted publicly on the board. Usually two or three workers and one verifier (@verifier) are attached. The verifier reads the changes, runs the tests, and sends any problems back to the relevant worker. Everyone uses the same board. A worker with nothing to do uses no tokens and sleeps until it is called. Only when everything has stopped does @monitor step in to get the flow moving again.
Following progress
The Swarm window in the app has three tabs. Board is the live list of posts, Members shows the status and model of the coordinator and each worker, and Graph is a diagram of who called whom. The image below is the Graph tab from the official documentation, where arrows show the coordinator splitting work among workers and a verifier and collecting the results.
Image: Google Antigravity official documentation
In the CLI, a swarm status line appears under the prompt. When you open the board, it is split into three panes: Roster, Posts, and the Message of the selected post.
Image: Google Antigravity official documentation
Image: Google Antigravity official documentation
The keys you will use most on the board are below.
| Key | Action |
|---|---|
| j / k or ↓ / ↑ | Move between posts and members |
| f | Turn auto-follow of the latest post on or off |
| p | Show only posts from the selected member |
| o | Open the selected member's conversation |
| z | Expand or restore the pane |
| q | Close the board and return to the prompt |
When a worker waits for tool approval, Alt+J moves you to that worker, and Ctrl+K approves it without leaving the conversation. To talk to one specific worker only, start your message with @이름 in the CLI, such as @verifier 통합 테스트도 돌려 줘.
Prompts
The official documentation advises stating the task and how to verify it, and leaving the rest to the coordinator. The examples below were written newly under that principle. Change the folder and file names to fit your project.
1. Adding tests per file
/swarm src/utils 폴더의 date.js, currency.js, text.js에 각각 단위 테스트를 추가해 줘. 파일마다 워커를 한 명씩 두고, 서로 다른 파일은 건드리지 않게 해 줘. 마지막에 검증 담당이 npm test를 돌려서 통과 여부를 알려 줘.
Assigning one worker per file keeps two workers from editing the same file.
2. Letting another model verify
/swarm 주문 목록 API 세 개에 입력값 검사를 추가해 줘. 워커는 API마다 한 명씩 두고, 검증 담당은 워커와 다른 모델로 실행해 줘. 검증 담당은 기존 테스트가 약해지지 않았는지와 빠진 예외 처리를 점검해 줘.
According to the official documentation, workers run on the same model as your conversation by default. If you specify it in the prompt, you can give each worker a different model. You can only choose models that appear in the model selector.
3. Having them investigate read-only
/swarm 앱이 처음 켜질 때 오래 걸리는 이유를 찾아 줘. 읽기 전용 워커 세 명이 각각 불러오는 모듈, 설정 읽기, 외부 서비스 연결을 따로 조사하고, 게시판에 근거를 올린 뒤 개선 순서를 정리해 줘. 파일은 수정하지 마.
This is useful for finding causes without changing any code.
4. Fixing broken tests by group
/swarm npm test에서 실패하는 테스트를 패키지별로 나눠 고쳐 줘. 패키지마다 워커를 한 명씩 두고, 테스트를 지우거나 기대값을 느슨하게 바꾸는 방식으로 통과시키지 말아 줘. 마지막에 전체 테스트를 다시 돌려 보고해 줘.
When things go wrong
- Two workers edit the same file: State in the prompt that ownership should be divided by file or folder. The official documentation says splitting into non-overlapping pieces is the coordinator's job. For work that is hard to split,
/boostor a single-agent normal conversation works better. - A worker is stuck: When quota runs out, workers do not retry and stay stopped. They move again when a new post appears on the board, when you change the model, or when you send a direct message. They do not resume on their own when quota recovers.
- Quota drops too fast: Each worker is a separate agent. Do not use swarm for small tasks.
- Not sure which command to use: The official documentation recommends
/swarmfor broadly split work,/teamworkfor long projects lasting hours to days, and/boostfor tricky debugging or tangled refactors. - It is a preview feature and may change: Menu names and behavior may differ, so check the official documentation when you get stuck.
TL;DR
- Type
/swarm 할 일과 확인 방법with the task and how to verify it, and the coordinator attaches workers and a verifier to process the work at the same time. - In the app, use the Swarm window; in the CLI, use
/swarm boardor Alt+S to watch the board and change direction midway. - Use it for work that can be split, such as files or packages. Note that it is a preview feature and each worker consumes quota.
Sources (checked 2026-11-27)
- Google Antigravity 공식 문서: Swarm (/swarm) · checked 2026-11-27
- @googledevs X 글: Gemini 4 Neon /swarm 커뮤니티 빌드 · checked 2026-11-27
This post was written by SET-UP’s AI after reviewing public official sources. If you spot a mistake, please let us know in the comments.
Comments 0
Loading