Google's Antigravity teamwork agents have moved from writing code to improving the systems that run it. In a new post on the Antigravity blog, the Antigravity and Google Research teams describe autonomous codebase optimization built on a research method called DuoDiscover, rolling out in the next Antigravity update through the /teamwork mode. According to Google, the Antigravity teamwork agents delivered speedups of 1.50x to 2.69x across five DeepSeek-V4 TPU kernels, cut TPU workload interruptions by 55.1 percent in offline replays of production cluster traces, and beat the best human design on a CPU prefetcher benchmark.

The results matter because they point at a different job for coding agents. Instead of taking a ticket and producing a patch, the Antigravity teamwork agents take a repository, a runnable test suite, and a target metric, then run a campaign that can last days and return an audited diff. Google reports the approach generalizes across the computing stack, from accelerator kernels to cluster schedulers to CPU microarchitecture.

Antigravity teamwork agents speed up DeepSeek-V4 TPU kernels

The headline experiment ran on five DeepSeek-V4 Pallas TPU kernels, four of which live in the open-source vLLM TPU inference repository. The kernels cover multi-head latent attention in several forms, plus a top-k selection kernel. The baseline in every case was the existing Pallas reference kernel written by performance engineers, so the Antigravity teamwork agents were measured against expert human code, not against a straw man.

Across the five kernels, the Antigravity teamwork agents reached speedups between 1.50x and 2.69x while passing every correctness and tolerance test. The strongest result came on masked dense multi-head latent attention at 2.69x. Rather than making narrow parameter tweaks, the Antigravity teamwork agents isolated individual kernel stages, built fast per-stage yardsticks, and explored tiling, memory-layout, and scheduling strategies in parallel before combining complementary gains into verified end-to-end kernels.

Google ran the same five-kernel campaign with two Gemini 4 models. Gemini Carbon, the stronger long-horizon reasoning model, reached a 1.97x geometric mean. Gemini Hydrogen, the faster and cheaper execution model, reached 2.10x. Hydrogen costs about 2.67 times less per token than Carbon, and because it is cheaper and faster, a comparable budget bought nearly five times as many model calls: 163,797 for Hydrogen against 33,195 for Carbon. The estimated bill came to 8,826 dollars for Hydrogen and 12,305 dollars for Carbon. According to Google, the cheaper model converted that extra search volume into results that matched or exceeded the stronger model on three of the five kernels.

Cutting TPU interruptions in Google's Borg scheduler

The same workflow was then pointed at Borg, Google's large-scale cluster management system. The Antigravity teamwork agents proposed candidate changes to the scheduler in offline simulations and replays of production traces. The results are candidate changes under review with the Borg team, Google notes, and have not yet been deployed in production.

In 12-hour multi-cluster replays, a redesigned placement scoring order across 15 C++ files cut overall interruptions per chip-hour by 55.1 percent. Serving interruptions fell by 72 to 83 percent and training interruptions by 54 to 93 percent, while passing all availability and disruption guardrails. A separate campaign targeting scheduler execution speed cut colocation CPU usage by 71.3 percent and lifted steady-state scheduling throughput by 27.1 percent, with zero change to placement decisions. A third campaign on the core host scheduler delivered 37.3 percent higher steady-state throughput.

The scheduler numbers are the most consequential part of the announcement, even though they are the least deployable today. If the Antigravity teamwork agents can propose scheduler changes that survive review, the same fleet could eventually tune the clusters that train the next generation of models. Kernel speedups help one model run faster. A scheduler that interrupts fewer training jobs changes the economics of every workload on the cluster. Google is careful to frame these as offline results, and the blog says the changes are under review rather than shipped.

Beating the best human on CPU prefetcher design

The third test pushed the Antigravity teamwork agents into hardware design, and the Antigravity teamwork agents delivered there too. On the DPC4 CPU data-prefetcher benchmark, where each evaluation can take up to 28 hours, the agents reached a 5.0 percent geometric-mean speedup across all three evaluation regimes. That beat the best human-crafted entry at 3.5 percent and the prior AI-based system, ArchAgent v2, at 3.8 percent. The agents reached the result in 9.6 days across 2,244 graded candidates, against more than 40 days and 12,000 candidates for the earlier system. Single-core CPU performance currently advances by roughly 3.5 percent per year, according to figures cited in the post, which puts a 5.0 percent jump from one campaign in perspective.

How DuoDiscover keeps fast proxies honest

The method behind the results is DuoDiscover, described in a research paper from the same teams. Standard coding-agent loops assume evaluating a candidate is fast. On real production systems that assumption breaks: benchmarking a TPU kernel suite takes tens of minutes, measuring an LLM serving engine takes nearly 1.5 hours per candidate, and simulating a CPU design can take more than a day. A standard loop can afford only a handful of true evaluations before the budget runs out.

The Antigravity teamwork agents solve this by co-discovering two things at once: what to optimize and how to measure progress cheaply. Each worker agent explores the codebase from the bottom up, profiles execution, and builds its own proxy evaluator, called a yardstick, that scores candidate edits 20 to 50 times faster than the true benchmark. A yardstick does not need to match the true benchmark's absolute scale; it only needs to rank candidate edits in the same order.

The safeguard is a two-loop search. In the fast inner loop, workers hill-climb candidate edits against the yardstick in seconds, screening out more than 80 percent of unpromising edits before spending a true evaluation. At milestones, an isolated Evaluator stages only allowlisted diffs onto a pristine baseline, audits the candidate against benchmark gaming, and runs the full test suite and canonical benchmark. A statistical fidelity test then measures the rank correlation between yardstick scores and true scores, and rebuilds the yardstick in place if the proxy has drifted. An independent Victory Auditor re-runs the full tests and benchmarks before any diff is published.

The design echoes the earlier /teamwork results Google Research reported in November, when agent teams formalized the Weil conjectures in Lean and rewrote parts of the Zircon microkernel in Rust, with proof checkers and unmodified test suites acting as falsifiers. The new post extends the same verifier-first pattern from mathematics to production engineering, where the falsifier is a benchmark that takes hours to run. That continuity is the story: the checker, not the model, is what makes long-running agent work trustworthy.

What this means for developers

For developers, the practical takeaway is a new way to use the Antigravity teamwork agents. Open a repository with runnable correctness tests and a quantitative benchmark command, invoke /teamwork with a target metric such as latency, throughput, memory, or kernel speed, and let the fleet return an audited diff. The capability rolls out in the next Antigravity update, according to Google.

There are limits worth stating plainly. The Borg scheduler changes are offline candidates, not deployed improvements. All of the reported figures are Google's own evaluations, with no independent review. And the economics depend on cheap, fast models doing the bulk of the search, which is a bet on inference pricing staying low. Even with those caveats, the pattern is hard to ignore: agents that build their own fast yardsticks, verify them statistically, and submit to clean-room evaluation can now beat expert humans on problems where the real test takes a day to run. That is a meaningful shift in what an agent team is for.

Sources: Google Antigravity blog, AICoder, Last AI, Times of AI. Related coverage on genznewz: Gemini 4 Live answers in 0.39 seconds in 70 languages and Hermes Agent Desktop beta brings self-improving AI to desktops.