A Software Factory Plugin for Antigravity

Back in the spring I wrote a seven-part series about a custom coding harness that I created on Hermes. My coordinator managed planning and routing work with another coding engine writing all of the code. The whole thing ran on an old MacBook I could control from Telegram.
The old harness worked down a list of tasks one at a time. It had a batch mode to execute tasks side by side on different files if I picked which ones were safe to group and merged all of it myself. It was also a black box with a limited view of what happened behind the scenes. What I needed was a setup that could execute a bunch of tasks in parallel, show me what it was doing and save me from babysitting the run.
Getting an agent to write code wasn’t the bottleneck (most coding tools do that well by themselves now). All of the work wrapped around the code is what slows you down. Somebody has to pick who takes each task and the sequence. Somebody has to stop two agents from editing the same file or approving their own pull request. Somebody has to stop review loops from spinning in circles and merge in a safe order. On your own you have to do all of that manually. Adding more agents just piles on more supervision. I had become the bottleneck because the toil had shifted from writing code to herding agents down the line.
Based on this I created Swarm Coordinator, an open source Antigravity plugin that treats software work as a factory model. In this post I go over the ideas that survived from Hermes as well as what my team’s research added and how the six gates work to make sure I can trust what is going to be merged.
What I carried over from Hermes
Five ideas from that series held up. All five live in the new design:
- Split planning from coding (in Part 1 the coordinator never wrote code and the coding engine never made plans).
- No agent checks what it wrote (new context catches what familiarity hides).
- Work starts from a backlog (Part 5 used GitHub Issues with enough context in each ticket for an agent to pick it up cold).
- Humans hold the calls that matter (Part 6 spelled out what an agent could do by itself and left merges to me).
- Learn from mistakes (Part 7 had agents write down lessons from tasks they struggled with).
What that series couldn’t tell me was which ideas were sound and which were just my ways of working. I only had one harness and one person’s data.
What my team’s research added
My team at Google ran research on making software with agents under light supervision at scale. We tested four hypotheses over more than 1,300 coding runs. Five findings from that work guided this plugin most.
Agents do better under a coordinator. Throwing more agents at a problem doesn’t help by itself. Equal agents talking in one channel did poorly. Big pools of identical workers did poorly too. One lead agent directing a few focused roles beat all the other setups. What we saw there lined up with Hermes (and explains why this plugin puts one Coordinator in charge).
One model family should review another’s code. In Hermes I used a clean context for review (that helps). Running the same model again leaves you with the same blind spots as the initial pass. Reviewers from a different model family don’t have them. In this plugin Gemini writes code and Claude reviews it (when quota allows) and the other way round.
Tracing how a bug got in pays off more than just finding bugs. Catching an issue at the end helps one time. Tracing where it started allows you to change that stage in order to stop the same error from coming back. In our study we traced each bug back to its source (spec, plan, weak tests, setup or code).
Get requirements straight up front. Agents make what the ticket asks for. Where a ticket is vague they guess at what was left out and press on. Nailing down requirements at the start is the cheapest way I know to make what you need.
Agents take shortcuts on their own tests. An agent writing the tests and the code tends to write tests that its code can pass. In our study, code that passed tests it wrote regularly failed checks. Test-driven development helps here if someone else checks the tests (ideally from the other model family).
Why I call it a factory
Years ago I worked in manufacturing. Ideas from Six Sigma and lean manufacturing are what got me thinking about software factories. Quality on a factory floor doesn’t come from inspecting more at the end of the line. You put a check at each station. Any time a defect shows up you find out which station let it in. Knowing when and why defects leak out allows you to work them out of the system as you go. Doing that is what separates a production line from a crowd of agents.
I’m not trying to build a lights-out factory. I want to have a semi-autonomous one where agents do the daily grind of tests, code and review with humans owning the key calls. On the board I have the data I need laid out in front of me to see issues and act fast. Important things shouldn’t drown in noise.
Swarm Coordinator: six gates
Swarm Coordinator has 3 parts. One skill allows your main Antigravity chat to act as the Coordinator you interact with. The CLI tool executes all your project checks in the background (the Coordinator runs this on your behalf). The Kanban board (in a web panel beside Antigravity) tracks each ticket next to a Scorecard that allows you to get an analysis of how the factory is doing.
The Coordinator pulls tickets from your backlog and sends each one down six gates:
- Scope and plan. One developer agent writes acceptance criteria as a numbered list and names the files it intends to edit. Approval is granted only if scope is well defined and no other ticket in progress touches those files.
- Tests first. The developer writes failing tests to start (TDD), one per acceptance criterion. Another model family’s reviewer executes them to make sure no criterion was skipped and that tests line up with the ticket’s intent. Docs-only changes bypass this gate.
- Build. Working in a clean Git worktree, the developer writes code to turn the tests green and validates your project checks there. From there it opens a draft pull request (PR) for a reviewer.
- Independent and adversarial review. Another model family’s reviewer checks the diff against the ticket. Any time it sends a PR back, it logs where the problem started and posts detailed comments on the PR in order to save history on the ticket.
- Ready and merge. As soon as the review is clean and checks pass, the PR is marked ready. After that the plugin posts a reading-guide comment to help a human reviewer focus on the main changes. One agent watches all open PRs, waits on review bots, pings reviewers you named and leaves the PR for you to merge.
- After the merge. The worktree is removed, queued tickets start up and results go to the Scorecard.

Cross-family review needs quota on two model families. In case the second family runs low (or you toggle that setting off), the reviewer starts in a clean context on a model at least at the same level as the author’s.
When agents get into a review/fix loop it can start to feel like whack-a-mole. In this plugin agents can’t spin forever. Review rounds have hard caps. Hitting a cap pulls the Coordinator in to defer minor nits for later or bring an open design question to me.
What I still decide
In my earlier series I wrote that merging was the one thing I never automate. Manual merge is the default (even if my thinking has shifted a bit on automating merges). Clean pull requests stay ready for me whenever I want to look at them myself. You can also flip a setting to let the plugin merge clean PRs automatically for repos where you trust your checks and accept the risk (it’s fun going to bed with a big backlog and waking up to it done). I wouldn’t turn that on for accounting software, whereas I’m fine using it on a team poll app.
I always own requirements, architecture, public contracts and merge policy (the agents do the coding and reviewing). Whenever a ticket leaves an open product or design question, the Coordinator pauses that ticket and pings me. Other tickets can go on.
The improvement loop
In my Hermes harness the agent wrote down a lesson whenever it struggled in order to help later tasks with matching problems. Swarm Coordinator uses that same idea around the factory question: at which stage did a defect enter and what data shows its impact?
As tickets flow down the gates, the plugin logs each change sent back from review as well as where the problem started. It logs each failed check. It also logs each change a human had to request after an agent reviewer approved. These misses matter most because they show what agents overlook.
The Scorecard boils all of that data down to a short list of items to act on.

One rule in that list marks the biggest shift in my thinking since the Hermes series. Scripted checks beat written lessons. Scripts find errors each time. Written lessons work only if an agent sees and follows them. Whenever the same error hits two or more PRs that a script could find, the brief recommends writing that check. The lessons file for the agent is capped in size for the same reason.
As soon as a change is marked done, the Scorecard saves the number from that point in order to see if those defects fall on later PRs. Checking that tells me if the change worked.
What it costs and where it stops
Swarm Coordinator uses more tokens than having one chat do all of the coding. Tickets each spin up an individual developer and reviewers (some tickets loop more than one time). Spending more tokens is going to buy you independent review, less supervision and better odds of getting things working on the first try. The Coordinator also chooses a good model and effort for each job in order to save tokens where it can. Seeing that trade-off pay off comes down to your codebase, your checks or your quota (be ready to watch usage). I added a quota status bar along the top of the board as well as token usage in each card’s drawer.
The plugin has caveats to know up front:
- It expects a backlog of well-defined tickets and won’t write them for you. Tickets can live in GitHub issues (my preferred setup), Markdown files in your repo or data from a script reading another tracker like Jira. Many tools generate backlogs with
grill-mestyle prompts. I personally prefer Matt Pocock’s agent skills as a great way to turn an idea into scoped GitHub issues. - It works in Antigravity on Linux, macOS or WSL on Windows (and needs a Git repository).
- Pull request features use GitHub. On other Git hosts it does the build, tests and reviews locally and leaves you a branch.
- TDD tests pile up as you go and can stretch CI times out. On one Swift app, UI tests with a mocked server soon swelled past 30 minutes until I split them up and ran parts in parallel.
- It’s experimental and not an officially supported Google product.
Try it
The fastest look takes no setup. Install the plugin, launch the Swarm Coordinator board and click Demo Mode to watch a sample project flow down the gates.
If you have a GitHub repo with a backlog of issues, getting started takes four steps:
-
In Antigravity, start a chat not attached to a project and tell it to install the plugin:
Please install the Antigravity plugin from https://github.com/GoogleCloudLabs/swarm-coordinator -
Restart Antigravity and turn Swarm Coordinator on under Skills & Customizations -> Plugins.
-
Go to a project with a backlog of issues and enter:
Set up /coordinator for this project and ask me about any settings I can configure for how I want to work with it. -
After setup finishes, check what is ready:
Review the backlog and recommend what we can start working on now.
Try two tickets on a live repo with dry run switched on to start (nothing merges and no reviewers get pinged). Check the README for more quickstart prompts.
Right now this needs to be kept up to date manually. If this gets any real usage, then I’ll look to add it to the Antigravity Marketplace, but for now if you want to update it just go to the original conversation in step 1 above and enter:
Please update the Antigravity plugin from https://github.com/GoogleCloudLabs/swarm-coordinator
And then restart Antigravity.
What comes next
The Hermes series ended with a system that worked well and stayed safe one agent at a time. Swarm Coordinator is my attempt at the same for multiple agents, with higher quality and a better view into what the factory is doing in Antigravity. I use it now to build out swarm-coordinator itself and work on its backlog.
After this I want to work on better memory to help the factory learn from run to run as well as automated ways to speed up test suites.
Take a look, play with it and tell me what you think. File an issue if you find a bug or want to suggest a feature. For now I’m leaving this on Antigravity only as I go on learning and improving the tool.