The Google Antigravity and Google Research teams introduced autonomous codebase optimization powered by DuoDiscover, rolling out in the next Antigravity update via /teamwork. To tackle slow real-world benchmarks, worker agents co-discover optimization targets and 20x–50x faster local proxy yardsticks, guarded by Kendall's tau fidelity checks and clean-room verification. Official evaluations report 1.50x–2.69x speedups on DeepSeek-V4 Pallas TPU kernels, 55.1% fewer TPU interruptions in offline Borg scheduler replays, and a +5.0% speedup on the DPC4 CPU data-prefetcher benchmark.

Key Takeaways

  • ✓DeepSeek-V4 TPU kernel gains: 1.50x to 2.69x speedups across five Pallas kernels (MLA, MLA SWA, Masked Dense MLA, Sparse MLA, Streamindex TopK) over engineer-written baselines while passing all correctness tests.
  • ✓Gemini 4 Hydrogen vs. Carbon search economics: Hydrogen achieved a 2.10x geometric-mean speedup across the five kernels at an estimated $8,826 API cost (163,797 calls, 85.7% cache hit) vs. Carbon's 1.97x ($12,305, 33,195 calls, 48.4% cache hit).
  • ✓Cluster scheduling and hardware design: offline Borg production trace replays cut TPU interruptions by 55.1% and colocation CPU usage by 71.3%; on DPC4 CPU prefetching, Antigravity reached +5.0% in 9.6 days and 2,244 evaluations, beating top human (+3.5%) and ArchAgent v2 (+3.8%).
  • ✓Clean-room trust boundary: fast inner-loop yardsticks run 20x–50x faster and filter >80% of edits; an isolated Evaluator audits allowlisted diffs against benchmark gaming and checks Kendall's tau >= 0.5 before promoting solutions.
Google Antigravity Introduces Autonomous Codebase Optimization With /teamwork: Up to 2.69x Speedup on DeepSeek-V4 TPU Kernels, 55.1% Fewer Borg Interruptions, and +5.0% on DPC4
Official Media
Click to view high-res

Turn your technical choice into a development budget

Compare 40 dev plans & simulate token costs vs $20/mo subscriptions

In-Depth Technical Analysis

Core Background & Industry Pain Points

Standard coding-agent loops assume fast feedback, yet benchmarking TPU kernels, vLLM serving stacks, or CPU simulators can take tens of minutes to over a day. On the Google Antigravity blog, the Antigravity and Google Research teams detailed an autonomous codebase optimization workflow built on DuoDiscover, rolling out in the next update via /teamwork.

Architecture Highlights & Internals

Parallel branched workers profile hotspots bottom-up and co-discover 20x–50x faster local proxy yardsticks, filtering out over 80% of unpromising edits in a fast inner loop. At milestones, an isolated clean-room Evaluator stages only allowlisted diffs onto a pristine baseline, audits for benchmark gaming, and checks rank correlation via Kendall's tau (validating at tau >= 0.5 or triggering an in-place yardstick rebuild). An independent Victory Auditor re-runs full tests and benchmarks before publishing the diff.

Authoritative Benchmarks & Measured Scores

Per official team evaluations: across five DeepSeek-V4 Pallas TPU kernels, agents achieved 1.50x–2.69x speedups over engineer baselines, with Gemini 4 Hydrogen reaching a 2.10x geometric mean ($8,826 estimated cost across 163,797 calls) versus Carbon's 1.97x ($12,305 across 33,195 calls). In offline Borg production trace replays (under review, not yet deployed), TPU interruptions fell 55.1% and host scheduler throughput rose 37.3%. On the DPC4 CPU data-prefetcher benchmark, Antigravity achieved +5.0% in 9.6 days across 2,244 evaluations, surpassing the best human (+3.5%) and ArchAgent v2 (+3.8%).

Developer Hands-on Guide

Open a repository with runnable correctness tests and a quantitative benchmark command in Google Antigravity, invoke /teamwork with your target metric (latency, throughput, memory, or kernel speed), and let the fleet deliver an audited diff.

Action HubReady to adopt this in production?

Benchmark side-by-side against alternatives, or calculate monthly token cost vs subscription break-even.

Up NextGoogle DeepMind's Patrick Toulme: You Will "NOT Be Banned Ever" for Using Antigravity in T3 Code; Antigravity Lead Varun Mohan Calls Ban Claims Misinformation
Read Now→