Google Antigravity recently added /swarm command that lets you run a team of named agents to divide your task, work in parallel, and sync on a single shared board. It is useful for tasks that split cleanly across files, packages, or questions, or whenever you want a second agent to review and test changes before you see them. I wanted to put the swarm feature to the test by updating multiple NPM packages in parallel to see how it works. Let’s get going!

AI has transformed software engineering in 2026

Table of contents

More on Google Antigravity Swarm

Before we get our hands dirty, you will need the Antigravity App or Antigravity CLI installed on your machine. I will do the demo with Antigravity CLI version 1.5.18. Swarm runs a group of related subagents managed by a coordinator agent. It might sound similar to the /teamwork command, but it is different; follow this table to know the difference between subagents, /boost, /teamwork, and /swarm.

How it works

To use the /swarm command/feature, start your prompt with /swarm or use it as part of the prompt. It then internally starts a coordinator subagent, which splits the task, names the swarm, and divides the work into non-colliding pieces. After that, it starts a pool of similar workers in a numbered group.

Each worker sub-agent gets a public brief of the work and does its work by communicating on the common board. A verifier checks the work. There is usually one verifier for two to four workers.

All sub-agents talk on the board; workers don’t message each other privately. Idle members sleep to save tokens. The coordinator is the main sub-agent that manages other agents to ensure the task is completed efficiently. It doesn't do the technical work; it distributes work, judges what comes back, and reports to you. It also responds to you while workers run.

It is easy to understand visually, as follows:

How Google Antigravity /swarm works with Coordinator, Named Workers, Verifier, Monitor, and Shared Message Board

There are also worker states and quota handling involved. You can read more about it in the official swarm documents. In the next section, you will update 10 NPM dependencies/packanges in parallel with /swarm.

Update NPM packages with Antigravity Swarm

NPM packages get out of date quite fast. You can run npm outdated to see the outdated packages and npm audit fix to fix any security issues with the NPM dependencies. In general practice, these housekeeping tasks do not take priority. When you run them after a few weeks or months, you may find that many packages need to be updated. You can use tools like Dependabot to get a steady stream of packages that need updating, but testing each package upgrade becomes the bottleneck. And when the packages get a major version bump, it can come with breaking changes and other issues.

With that context, this blog is generated with Eleventy. It is also an NPM package, and in this blog I use multiple other NPM packages to support other features like Syntax Highlighting. Below are the steps I took to use /swarm with agy CLI to update 10 npm packages in parallel in minutes.

Get a list of outdated NPM packages

To get a list of outdated NPM packages, I ran npm outdated on the root of this Eleventy blog, which resulted in:

npm outdated packages

I wanted a simpler upgrade, so I would not upgrade tailwindcss as it is a major upgrade and breaking it would impact all the CSS on my blog; my target is to update all the other NPM packages except tailwindcss.

The prompt to upgrade NPM packages with swarm

Therefore, I used the following prompt in the Antigravity CLI (agy in the folder) to upgrade the 10 NPM packages in parallel:

using /swarm update all the npm dependencies to the latest version except tailwind, you can update each dependency in it's own agent. Make sure each update is a different commit and after each update ensure that the blog builds. After the whole task is done test 2 pages on the browser

Which looks like the following in agy cli:

Prompt to update npm packages in Google Antigravity (agy) CLI with /swarm

After I ran it, it picked up some skills and started the coordinator. As I had the agent-browser skill available, it pulled that in for later testing:

Antigravity CLI /swarm starting coordinator, loading skills, and running npm outdated

For your reference, I am using the Gemini 4 Neon model on high capacity. It ran other commands, including npm outdated –json to figure out the outdated NPM dependencies.

Google Antigravity /swarm in progress with 10 subagents updating outdated NPM dependencies

After that, it created the swarm of 10 agents, and each agent was doing it’s part of the work. Workers got their own brief like below:

Antigravity CLI /swarm worker brief for updating the rimraf npm package in isolation

Overall progress of the workers was visible in the swarm board, which looked like this:

Google Antigravity /swarm board showing the agent roster and live progress updates

The update was coming in the main conversation too:

Updates from workers coming to the main agent in Google Antigravity Swarm

It also updated any related files that needed an update as part of an NPM dependency update.

Google Antigravity Swarm updating related files for the NPM packages update task

I had to wait a few minutes for it to finish; when I ran git status while it was running, I could see package.json and package-lock.json changing. The git log -2 command also showed me the commit history.

After the steps, it ran the agent browser to test the two pages.

Google Antigravity Swarm using Browser with browser agent to test the change

It gave a QA verification brief to that worker to test the site:

Google Antigravity Swarm QA verification brief to the QA worker

The swarm board looked like the below when the QA was happening:

Google Antigravity Swarm QA worker testing the blog with browser agent

All the communication was happening on the board. Keep in mind it does burn a lot of tokens.
When it was all done, it gave a summary of commits and the result of the browser verification as seen below:

Google Antigravity Swarm completed the NPM upgrade task

After that, I asked it to push the branch, which it did. These are the 10 commits it made.

Google Antigravity Swarm did the 10 commits and pushed it to GitHub branch

Then, I did a quick check to make sure everything worked, then used the update Antigravity did. I hit option+x to clear/dismiss the swarm board as the work was done.

If I had made these changes one by one, it would have taken a long time, but with the /swarm command, it was done in minutes, with parallel workers. Next time you have a task that can be divided cleanly into smaller chunks that can be done in parallel, reach out for the /swarm feature.

Conclusion

Coding agents have transformed how we work as software engineers. In this post, you saw a small but practical use of the Antigravity /swarm command to update 10 NPM dependencies in parallel. Keep experimenting with new ways to work with AI/Coding agents to stay relevant in this agentic AI era of software engineering, where the discussion is rapidly moving toward a software factory. I hope you don’t run out of tokens!

Geshan Manandhar Geshan Manandhar
7 MIN READ

Comments

Related Blogs

How to use /goal to add last updated at feature to an Eleventy blog in Antigravity IDE with a single prompt

Use Google Antigravity's /goal feature with Gemini 3 to add a last updated at feature to an Eleventy blog autonomously with a single prompt.

How to clone your own voice to use for text to speech with Gemini on Google AI Studio

Use Google AI studio to clone your voice and use it with Gemini Text to speech to create audio from any text

3 almost hidden Google Gemini features you should start leveraging today

Use Deep Research, Guided Learning, and Canvas features in Gemini for software engineering tasks for better productivity. You will be surprised how easy they are to use!

How to deploy a Google Agent Development Kit (ADK) agent to Google Cloud Run

Learn how to deploy your Google Agent Development Kit (ADK) AI agent to Google Cloud Run for serverless, production-ready scaling.

Stay Connected

Follow me on LinkedIn for new posts, engineering insights, and tech takes — straight from the trenches.

Follow on LinkedIn  →