# Google Antigravity — Autonomous Codebase Optimization with Antigravity & Gemini

- Company: Google Antigravity (antigravity.google)
- Announced: 2026-12-03T17:00:00+00:00
- Category: capability-change
- Coverage: not counted
- Announcement: yes
- Group: announcements
- Source: https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork
- Record: https://forck.live/items/44314-autonomous-codebase-optimization-with-antigravity-gemini
- Subject: Antigravity
- Models affected: Gemini Carbon, Gemini Hydrogen, DeepSeek-V4
- Pricing: Gemini Hydrogen costs $1.50 / $0.075 / $7.50 per million uncached input, cached input, and output tokens, which is 2.67× cheaper per token than Gemini Carbon ($4.00 / $0.20 / $20.00)

Google Antigravity is rolling out a codebase optimization capability in its next update, with agents powered by Gemini delivering up to 2.69× speedups on DeepSeek-V4 TPU kernels. The company frames the problem as one of evaluation cost: benchmarking a TPU kernel suite takes tens of minutes, and measuring an LLM serving engine like vLLM takes nearly 1.5 hours per candidate. Hand-crafted microbenchmarks do not scale, and static proxies fall prey to Goodhart's law as agents exploit gaps between proxy and true benchmark. The agents instead discover what to optimize and how to measure progress cheaply, verifying that fast proxies stay faithful and reserving expensive true evaluations for confirmations. Across five DeepSeek-V4 Pallas TPU kernels, the agents reached 1.50× to 2.69× speedups while passing every correctness and tolerance test, with Gemini Hydrogen at a 2.10× geometric mean versus Gemini Carbon's 1.97×. Hydrogen costs $1.50 / $0.075 / $7.50 per million uncached input, cached input, and output tokens, 2.67× cheaper per token than Carbon, and ran nearly 5× as many LLM calls. On Borg, the same workflow found candidate scheduling changes that cut TPU workload interruptions by 55.1% in offline replays of production traces.

## Evidence

Verbatim from https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork:

> Agents in Google Antigravity, powered by Gemini, deliver up to 2.69× speedups on DeepSeek-V4 TPU kernels, find candidate scheduling changes that cut TPU workload interruptions by 55.1% in offline replays of production traces on Google’s Borg cluster scheduler, and achieve a +5.0% speedup on the DPC4 CPU data-prefetcher benchmark, beating the best human (+3.5%) and prior AI (+3.8%) designs in under a quarter of the time and a fifth of the evaluations.
> 
> Real-world codebase optimization presents a distinct challenge: progress is governed by a quantitative benchmark, and running that benchmark is often far slower than generating candidate edits. The agents behind these results solve this by jointly discovering what to optimize and how to measure progress cheaply. We ran these campaigns in Google Antigravity using /teamwork , where this codebase optimization capability is rolling out in the next update.
> 
> The limitations of standard agent loops for codebase optimization
> 
> Most coding agents and discovery systems share a quiet assumption: evaluating a candidate solution is fast. On real production systems, this assumption breaks down.

---

Record: https://forck.live/items/44314-autonomous-codebase-optimization-with-antigravity-gemini
Catalogue: https://forck.live/llms.txt
Current issue: https://forck.live/feed.md
