---
type: "post"
id: "google-s-antigravity-teamwork-makes-tpu-kernels-2-e4a310"
slug: "google-s-antigravity-teamwork-makes-tpu-kernels-2-e4a310"
title: "Google's Antigravity /teamwork Makes TPU Kernels 2.69× Faster in 9 Days"
description: "Google ran autonomous codebase optimization campaigns in Antigravity using /teamwork, testing Gemini Carbon and Gemini Hydrogen on five DeepSeek-V4 Pallas TPU kernels against existing reference kernels written by performance engineers."
retrieval_nugget: "Google ran autonomous codebase optimization campaigns in Antigravity using /teamwork, testing Gemini Carbon and Gemini Hydrogen on five DeepSeek-V4 Pallas TPU kernels against existing reference kernels written by performance engineers. It reports speedups of 1.50× to 2.69×, with every kernel passing correctness and tolerance tests. (antigravity.google)"
published_at: "2026-12-05"
updated_at: "2026-12-05"
record_date: "2026-12-05"
date_kind: "published_at"
topics: ["google","gemini"]
entities: ["Google","Google Antigravity","Gemini Carbon","Gemini Hydrogen","DuoDiscover","Borg","vLLM","DeepSeek-V4"]
related_patterns: ["harness-architecture-outlives-model-choice"]
novelty_label: "new_fact"
what_changed: "Google reports that Antigravity /teamwork optimized TPU kernels to run 2.69× faster in nine days."
prior_refs: ["https://newruntime.com/posts/google-research-published-its-own-version-of-this-71c616/"]
source_url: "https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork"
source_urls: ["https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork"]
production: {"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-12-05T10:00:29.105Z","independent_sources":4,"notes_synthesized":null,"writer_model":"gpt-6-luna","critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":{"label":"new_fact","confidence":"high"},"editorial_value":"high","human_review":"selective"}
citations: [{"claim":"","quotes":["We ran these campaigns in Google Antigravity using /teamwork , where this codebase optimization capability is rolling out in the next update.","TPU kernel optimization results To … Sparse MLA, and Streamindex TopK.","Importantly, the baseline (1.00×) for every kernel is the existing Pallas reference kernel written by performance engineers.","Across all five DeepSeek-V4 kernels, the agents consistently unlocked 1.50× to 2.69× speedups while passing every correctness and tolerance test."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=We%20ran%20these%20campaigns%20in%20Google%20Antigravity%20using%20%2Fteamwork%20%2C%20where%20this%20codebase%20optimization%20capability%20is%20rolling%20out%20in%20the%20next%20update.&text=TPU%20kernel%20optimization%20results%20To,Sparse%20MLA%2C%20and%20Streamindex%20TopK.&text=Importantly%2C%20the%20baseline%20%281.00%C3%97%29%20for%20every%20kernel%20is%20the%20existing%20Pallas%20reference%20kernel%20written%20by%20performance%20engineers.&text=Across%20all%20five%20DeepSeek%2DV4%20kernels%2C%20the%20agents%20consistently%20unlocked%201.50%C3%97%20to%202.69%C3%97%20speedups%20while%20passing%20every%20correctness%20and%20tolerance%20test.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Full evaluation is costly: Google says a TPU kernel suite routinely takes tens of minutes, while a vLLM serving-engine evaluation takes nearly 1.5 hours per candidate.","quotes":["TPU kernel optimization results To … Sparse MLA, and Streamindex TopK."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=TPU%20kernel%20optimization%20results%20To,Sparse%20MLA%2C%20and%20Streamindex%20TopK.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Workers profile code regions, estimate their cost share and reducible gap, then build target-specific proxy evaluators.","quotes":["Benchmarking a TPU kernel suite routinely takes tens of minutes, measuring an LLM serving engine like vLLM takes nearly 1.5 hours per candidate, and simulating a CPU microarchitecture design across realistic workload traces can take more than a day."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Benchmarking%20a%20TPU%20kernel%20suite%20routinely%20takes%20tens%20of%20minutes%2C%20measuring%20an%20LLM%20serving%20engine%20like%20vLLM%20takes%20nearly%201.5%20hours%20per%20candidate%2C%20and%20simulating%20a%20CPU%20microarchitecture%20design%20across%20realistic%20workload%20traces%20can%20take%20more%20than%20a%20day.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"They isolate stages, explore tiling, memory layout and scheduling in parallel, and combine promising gains into end-to-end kernels.","quotes":["The workers profile execution, estimate each region’s cost share and reducible gap to its analytical floor (such as Amdahl’s law or hardware roofline ), and jointly choose two things: An optimization target: A focused region of code with meaningful score-weighted headroom."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=The%20workers%20profile%20execution%2C%20estimate%20each%20region%E2%80%99s%20cost%20share%20and%20reducible%20gap%20to%20its%20analytical%20floor%20%28such%20as%20Amdahl%E2%80%99s%20law%20or%20hardware%20roofline%20%29%2C%20and%20jointly%20choose%20two%20things%3A%20An%20optimization%20target%3A%20A%20focused%20region%20of%20code%20with%20meaningful%20score%2Dweighted%20headroom.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Google says these yardsticks check local correctness and score edits 20× to 50× faster than the true evaluation, with continuous statistical fidelity tests in a two-loop search.","quotes":["Rather than making narrow parameter tweaks, worker agents isolated individual kernel stages, built fast per-stage yardsticks, explored different tiling, memory-layout, and scheduling strategies in parallel, and combined complementary gains into verified end-to-end kernels."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Rather%20than%20making%20narrow%20parameter%20tweaks%2C%20worker%20agents%20isolated%20individual%20kernel%20stages%2C%20built%20fast%20per%2Dstage%20yardsticks%2C%20explored%20different%20tiling%2C%20memory%2Dlayout%2C%20and%20scheduling%20strategies%20in%20parallel%2C%20and%20combined%20complementary%20gains%20into%20verified%20end%2Dto%2Dend%20kernels.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"The workflow draws on DuoDiscover research and ran in Antigravity via /teamwork.","quotes":["A target-specific yardstick: A proxy evaluator built by the worker itself that checks local correctness and scores candidate edits 20× to 50× faster than the true evaluation.","It reframes optimization under expensive evaluation around three tightly coupled mechanisms: target and yardstick co-discovery , a two-loop search protected by continuous statistical fidelity testing , and bottom-up fleet orchestration with a clean-room trust boundary ."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=A%20target%2Dspecific%20yardstick%3A%20A%20proxy%20evaluator%20built%20by%20the%20worker%20itself%20that%20checks%20local%20correctness%20and%20scores%20candidate%20edits%2020%C3%97%20to%2050%C3%97%20faster%20than%20the%20true%20evaluation.&text=It%20reframes%20optimization%20under%20expensive%20evaluation%20around%20three%20tightly%20coupled%20mechanisms%3A%20target%20and%20yardstick%20co%2Ddiscovery%20%2C%20a%20two%2Dloop%20search%20protected%20by%20continuous%20statistical%20fidelity%20testing%20%2C%20and%20bottom%2Dup%20fleet%20orchestration%20with%20a%20clean%2Droom%20trust%20boundary%20.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"","quotes":["How it works The workflow behind these results is based on the research behind our paper DuoDiscover: Scaling Autonomous Discovery Beyond the Evaluation Bottleneck , which we ran in Antigravity via /teamwork ."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=How%20it%20works%20The%20workflow%20behind%20these%20results%20is%20based%20on%20the%20research%20behind%20our%20paper%20DuoDiscover%3A%20Scaling%20Autonomous%20Discovery%20Beyond%20the%20Evaluation%20Bottleneck%20%2C%20which%20we%20ran%20in%20Antigravity%20via%20%2Fteamwork%20.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Google estimates campaign API costs at $8,826 for Hydrogen and $12,305 for Carbon, across 163,797 calls and 334 agents for Hydrogen, and 33,195 calls and 208 agents for Carbon.","quotes":["Both Gemini Carbon and Gemini Hydrogen discover substantial speedups across all five kernels, reaching 1.97× and 2.10× geometric mean respectively."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Both%20Gemini%20Carbon%20and%20Gemini%20Hydrogen%20discover%20substantial%20speedups%20across%20all%20five%20kernels%2C%20reaching%201.97%C3%97%20and%202.10%C3%97%20geometric%20mean%20respectively.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"In 12-hour multi-cluster replays, a proposed placement policy cut interruptions per chip-hour by 55.1% while meeting availability and disruption guardrails.","quotes":["Using Gemini Carbon , we ran three autonomous optimization campaigns spanning both scheduling quality (reducing workload interruptions) and scheduler execution efficiency (increasing scheduling throughput and cutting CPU usage)."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Using%20Gemini%20Carbon%20%2C%20we%20ran%20three%20autonomous%20optimization%20campaigns%20spanning%20both%20scheduling%20quality%20%28reducing%20workload%20interruptions%29%20and%20scheduler%20execution%20efficiency%20%28increasing%20scheduling%20throughput%20and%20cutting%20CPU%20usage%29.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"These were offline simulations and production-trace replays, not deployed changes.","quotes":["Core host scheduler throughput: Targeting … placement, with zero infeasible placements."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Core%20host%20scheduler%20throughput%3A%20Targeting,placement%2C%20with%20zero%20infeasible%20placements.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"On DPC4, a CPU data-prefetcher benchmark with a fixed storage cap, simulator and trace suite, each evaluation spans over 1,700 simulations and can take up to 28 hours.","quotes":["All results below come from offline simulations and replays of production cluster traces; they represent promising candidate changes that are currently under review with the Borg team and have not yet been validated or deployed in production."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=All%20results%20below%20come%20from%20offline%20simulations%20and%20replays%20of%20production%20cluster%20traces%3B%20they%20represent%20promising%20candidate%20changes%20that%20are%20currently%20under%20review%20with%20the%20Borg%20team%20and%20have%20not%20yet%20been%20validated%20or%20deployed%20in%20production.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Google reports a 5.0% geometric-mean speedup across three regimes, versus 3.5% for the best human-crafted entry and 3.8% for a prior AlphaEvolve-based system.","quotes":["CPU design optimization results Building … taking up to 28 hours.","DPC4 grades designs under a fixed storage cap, simulator, and trace suite with each evaluation spanning over 1,700 simulations and taking up to 28 hours."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=CPU%20design%20optimization%20results%20Building,taking%20up%20to%2028%20hours.&text=DPC4%20grades%20designs%20under%20a%20fixed%20storage%20cap%2C%20simulator%2C%20and%20trace%20suite%20with%20each%20evaluation%20spanning%20over%201%2C700%20simulations%20and%20taking%20up%20to%2028%20hours.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Realized costs were sensitive to prompt-cache hit rates: Hydrogen recorded 85.7% and Carbon 48.4%; Google estimates Carbon’s five runs would have cost about $5,016 at Hydrogen’s cache rate.","quotes":["Across all five DeepSeek-V4 kernels, the agents consistently unlocked 1.50× to 2.69× speedups while passing every correctness and tolerance test."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Across%20all%20five%20DeepSeek%2DV4%20kernels%2C%20the%20agents%20consistently%20unlocked%201.50%C3%97%20to%202.69%C3%97%20speedups%20while%20passing%20every%20correctness%20and%20tolerance%20test.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Borg gains remain offline candidates under review, not production results.","quotes":["Note: Prompt cache hit rates also affected realized cost (85.7% on Hydrogen vs. 48.4% on Carbon, where uncached input is priced 20× higher than cached reads; normalized to an equal 85.7% cache hit rate, the five Carbon runs would total roughly $5,016).","48.4% on Carbon, where uncached input is priced 20× higher than cached reads; normalized to an equal 85.7% cache hit rate, the five Carbon runs would total roughly $5,016)."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Note%3A%20Prompt%20cache%20hit%20rates%20also%20affected%20realized%20cost%20%2885.7%25%20on%20Hydrogen%20vs.%2048.4%25%20on%20Carbon%2C%20where%20uncached%20input%20is%20priced%2020%C3%97%20higher%20than%20cached%20reads%3B%20normalized%20to%20an%20equal%2085.7%25%20cache%20hit%20rate%2C%20the%20five%20Carbon%20runs%20would%20total%20roughly%20%245%2C016%29.&text=48.4%25%20on%20Carbon%2C%20where%20uncached%20input%20is%20priced%2020%C3%97%20higher%20than%20cached%20reads%3B%20normalized%20to%20an%20equal%2085.7%25%20cache%20hit%20rate%2C%20the%20five%20Carbon%20runs%20would%20total%20roughly%20%245%2C016%29.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"Google says external researchers can already access Gemini 4 models through /teamwork and /boost, while the codebase optimization capability is slated for a coming Antigravity update.","quotes":["All results below come from offline simulations and replays of production cluster traces; they represent promising candidate changes that are currently under review with the Borg team and have not yet been validated or deployed in production."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=All%20results%20below%20come%20from%20offline%20simulations%20and%20replays%20of%20production%20cluster%20traces%3B%20they%20represent%20promising%20candidate%20changes%20that%20are%20currently%20under%20review%20with%20the%20Borg%20team%20and%20have%20not%20yet%20been%20validated%20or%20deployed%20in%20production.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"},{"claim":"","quotes":["Google says the codebase-optimization capability will arrive in an upcoming Antigravity update. External researchers can already access Gemini 4 models through /teamwork and /boost, according to the company’s research overview."],"cite_url":"https://research.google/blog/advancing-science-engineering-with-antigravitys-teamwork-feature#:~:text=Google%20says%20the%20codebase%2Doptimization%20capability%20will%20arrive%20in%20an%20upcoming%20Antigravity%20update.%20External%20researchers%20can%20already%20access%20Gemini%204%20models%20through%20%2Fteamwork%20and%20%2Fboost%2C%20according%20to%20the%20company%E2%80%99s%20research%20overview.","source_url":"https://research.google/blog/advancing-science-engineering-with-antigravitys-teamwork-feature","publisher":"research.google"},{"claim":"","quotes":["We ran these campaigns in Google Antigravity using /teamwork , where this codebase optimization capability is rolling out in the next update."],"cite_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=We%20ran%20these%20campaigns%20in%20Google%20Antigravity%20using%20%2Fteamwork%20%2C%20where%20this%20codebase%20optimization%20capability%20is%20rolling%20out%20in%20the%20next%20update.","source_url":"https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork","publisher":"antigravity.google"}]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:google-s-antigravity-teamwork-makes-tpu-kernels-2-e4a310"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/google-s-antigravity-teamwork-makes-tpu-kernels-2-e4a310/","markdown":"https://newruntime.com/posts/google-s-antigravity-teamwork-makes-tpu-kernels-2-e4a310.md","json":"https://newruntime.com/posts/google-s-antigravity-teamwork-makes-tpu-kernels-2-e4a310.json"}
markdown_url: "https://newruntime.com/posts/google-s-antigravity-teamwork-makes-tpu-kernels-2-e4a310.md"
---

# Google's Antigravity /teamwork Makes TPU Kernels 2.69× Faster in 9 Days

## Retrieval answer

Google ran autonomous codebase optimization campaigns in Antigravity using /teamwork, testing Gemini Carbon and Gemini Hydrogen on five DeepSeek-V4 Pallas TPU kernels against existing reference kernels written by performance engineers. It reports speedups of 1.50× to 2.69×, with every kernel passing correctness and tolerance tests. (antigravity.google)

## Summary

Google ran autonomous codebase optimization campaigns in Antigravity using `/teamwork`, testing Gemini Carbon and Gemini Hydrogen on five DeepSeek-V4 Pallas TPU kernels against existing reference kernels written by performance engineers. It reports speedups of 1.50× to 2.69×, with every kernel passing correctness and tolerance tests. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=We%20ran%20these%20campaigns%20in%20Google%20Antigravity%20using%20%2Fteamwork%20%2C%20where%20this%20codebase%20optimization%20capability%20is%20rolling%20out%20in%20the%20next%20update.&text=TPU%20kernel%20optimization%20results%20To,Sparse%20MLA%2C%20and%20Streamindex%20TopK.&text=Importantly%2C%20the%20baseline%20%281.00%C3%97%29%20for%20every%20kernel%20is%20the%20existing%20Pallas%20reference%20kernel%20written%20by%20performance%20engineers.&text=Across%20all%20five%20DeepSeek%2DV4%20kernels%2C%20the%20agents%20consistently%20unlocked%201.50%C3%97%20to%202.69%C3%97%20speedups%20while%20passing%20every%20correctness%20and%20tolerance%20test.))

## What happened

Four of the five kernels are in the open-source vLLM TPU-Inference repository. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=TPU%20kernel%20optimization%20results%20To,Sparse%20MLA%2C%20and%20Streamindex%20TopK.)) Full evaluation is costly: Google says a TPU kernel suite routinely takes tens of minutes, while a vLLM serving-engine evaluation takes nearly 1.5 hours per candidate. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Benchmarking%20a%20TPU%20kernel%20suite%20routinely%20takes%20tens%20of%20minutes%2C%20measuring%20an%20LLM%20serving%20engine%20like%20vLLM%20takes%20nearly%201.5%20hours%20per%20candidate%2C%20and%20simulating%20a%20CPU%20microarchitecture%20design%20across%20realistic%20workload%20traces%20can%20take%20more%20than%20a%20day.)) Workers profile code regions, estimate their cost share and reducible gap, then build target-specific proxy evaluators. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=The%20workers%20profile%20execution%2C%20estimate%20each%20region%E2%80%99s%20cost%20share%20and%20reducible%20gap%20to%20its%20analytical%20floor%20%28such%20as%20Amdahl%E2%80%99s%20law%20or%20hardware%20roofline%20%29%2C%20and%20jointly%20choose%20two%20things%3A%20An%20optimization%20target%3A%20A%20focused%20region%20of%20code%20with%20meaningful%20score%2Dweighted%20headroom.)) They isolate stages, explore tiling, memory layout and scheduling in parallel, and combine promising gains into end-to-end kernels. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Rather%20than%20making%20narrow%20parameter%20tweaks%2C%20worker%20agents%20isolated%20individual%20kernel%20stages%2C%20built%20fast%20per%2Dstage%20yardsticks%2C%20explored%20different%20tiling%2C%20memory%2Dlayout%2C%20and%20scheduling%20strategies%20in%20parallel%2C%20and%20combined%20complementary%20gains%20into%20verified%20end%2Dto%2Dend%20kernels.)) Google says these yardsticks check local correctness and score edits 20× to 50× faster than the true evaluation, with continuous statistical fidelity tests in a two-loop search. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=A%20target%2Dspecific%20yardstick%3A%20A%20proxy%20evaluator%20built%20by%20the%20worker%20itself%20that%20checks%20local%20correctness%20and%20scores%20candidate%20edits%2020%C3%97%20to%2050%C3%97%20faster%20than%20the%20true%20evaluation.&text=It%20reframes%20optimization%20under%20expensive%20evaluation%20around%20three%20tightly%20coupled%20mechanisms%3A%20target%20and%20yardstick%20co%2Ddiscovery%20%2C%20a%20two%2Dloop%20search%20protected%20by%20continuous%20statistical%20fidelity%20testing%20%2C%20and%20bottom%2Dup%20fleet%20orchestration%20with%20a%20clean%2Droom%20trust%20boundary%20.)) The workflow draws on DuoDiscover research and ran in Antigravity via `/teamwork`. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=How%20it%20works%20The%20workflow%20behind%20these%20results%20is%20based%20on%20the%20research%20behind%20our%20paper%20DuoDiscover%3A%20Scaling%20Autonomous%20Discovery%20Beyond%20the%20Evaluation%20Bottleneck%20%2C%20which%20we%20ran%20in%20Antigravity%20via%20%2Fteamwork%20.))

On the kernel tests, Hydrogen reached 2.69× on Masked Dense MLA; across all five, its geometric-mean speedup was 2.10× versus Carbon’s 1.97×. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Both%20Gemini%20Carbon%20and%20Gemini%20Hydrogen%20discover%20substantial%20speedups%20across%20all%20five%20kernels%2C%20reaching%201.97%C3%97%20and%202.10%C3%97%20geometric%20mean%20respectively.)) Google estimates campaign API costs at $8,826 for Hydrogen and $12,305 for Carbon, across 163,797 calls and 334 agents for Hydrogen, and 33,195 calls and 208 agents for Carbon. The same workflow ran in three Carbon campaigns on Borg. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Using%20Gemini%20Carbon%20%2C%20we%20ran%20three%20autonomous%20optimization%20campaigns%20spanning%20both%20scheduling%20quality%20%28reducing%20workload%20interruptions%29%20and%20scheduler%20execution%20efficiency%20%28increasing%20scheduling%20throughput%20and%20cutting%20CPU%20usage%29.)) In 12-hour multi-cluster replays, a proposed placement policy cut interruptions per chip-hour by 55.1% while meeting availability and disruption guardrails. Paired replays of a colocation change reduced subsystem CPU use by 71.3% and raised steady-state scheduling throughput by 27.1%, with placement decisions unchanged; saturated peak-load replays of core host scheduler changes raised throughput 37.3% with zero infeasible placements. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Core%20host%20scheduler%20throughput%3A%20Targeting,placement%2C%20with%20zero%20infeasible%20placements.)) These were offline simulations and production-trace replays, not deployed changes. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=All%20results%20below%20come%20from%20offline%20simulations%20and%20replays%20of%20production%20cluster%20traces%3B%20they%20represent%20promising%20candidate%20changes%20that%20are%20currently%20under%20review%20with%20the%20Borg%20team%20and%20have%20not%20yet%20been%20validated%20or%20deployed%20in%20production.)) On DPC4, a CPU data-prefetcher benchmark with a fixed storage cap, simulator and trace suite, each evaluation spans over 1,700 simulations and can take up to 28 hours. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=CPU%20design%20optimization%20results%20Building,taking%20up%20to%2028%20hours.&text=DPC4%20grades%20designs%20under%20a%20fixed%20storage%20cap%2C%20simulator%2C%20and%20trace%20suite%20with%20each%20evaluation%20spanning%20over%201%2C700%20simulations%20and%20taking%20up%20to%2028%20hours.)) Google reports a 5.0% geometric-mean speedup across three regimes, versus 3.5% for the best human-crafted entry and 3.8% for a prior AlphaEvolve-based system. The campaign took 9.6 days and graded 2,244 candidates; ArchAgent v2 took over 40 days and graded more than 12,000.

## What the archive adds

This extends the earlier Antigravity teamwork coverage, which described agents coordinated from a single prompt, and the TPU agent-suite preview, which targeted onboarding, bottleneck diagnosis and kernel autotuning. ([earlier New Runtime note](https://newruntime.com/posts/google-research-published-its-own-version-of-this-71c616/), [earlier report](https://blog.google/innovation-and-ai/infrastructure-and-cloud/global-network/tpu-8i-max-and-8tx))

## Why it matters

For teams with slow benchmarks, proxy design belongs inside the optimization workflow, not as a shortcut improvised after agents start searching. Make the proxy’s scope explicit, compare its rankings and correctness checks against the real evaluation continuously, and retain the full benchmark as the verification boundary. The reported 20×–50× faster scoring is useful only if fidelity holds for the workload that matters.

## Limits and uncertainty

The speedups and costs are Google-reported campaign results, not independently confirmed here. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Across%20all%20five%20DeepSeek%2DV4%20kernels%2C%20the%20agents%20consistently%20unlocked%201.50%C3%97%20to%202.69%C3%97%20speedups%20while%20passing%20every%20correctness%20and%20tolerance%20test.)) Realized costs were sensitive to prompt-cache hit rates: Hydrogen recorded 85.7% and Carbon 48.4%; Google estimates Carbon’s five runs would have cost about $5,016 at Hydrogen’s cache rate. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=Note%3A%20Prompt%20cache%20hit%20rates%20also%20affected%20realized%20cost%20%2885.7%25%20on%20Hydrogen%20vs.%2048.4%25%20on%20Carbon%2C%20where%20uncached%20input%20is%20priced%2020%C3%97%20higher%20than%20cached%20reads%3B%20normalized%20to%20an%20equal%2085.7%25%20cache%20hit%20rate%2C%20the%20five%20Carbon%20runs%20would%20total%20roughly%20%245%2C016%29.&text=48.4%25%20on%20Carbon%2C%20where%20uncached%20input%20is%20priced%2020%C3%97%20higher%20than%20cached%20reads%3B%20normalized%20to%20an%20equal%2085.7%25%20cache%20hit%20rate%2C%20the%20five%20Carbon%20runs%20would%20total%20roughly%20%245%2C016%29.)) Borg gains remain offline candidates under review, not production results. ([antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=All%20results%20below%20come%20from%20offline%20simulations%20and%20replays%20of%20production%20cluster%20traces%3B%20they%20represent%20promising%20candidate%20changes%20that%20are%20currently%20under%20review%20with%20the%20Borg%20team%20and%20have%20not%20yet%20been%20validated%20or%20deployed%20in%20production.)) Google says external researchers can already access Gemini 4 models through `/teamwork` and `/boost`, while the codebase optimization capability is slated for a coming Antigravity update. ([research.google](https://research.google/blog/advancing-science-engineering-with-antigravitys-teamwork-feature#:~:text=Google%20says%20the%20codebase%2Doptimization%20capability%20will%20arrive%20in%20an%20upcoming%20Antigravity%20update.%20External%20researchers%20can%20already%20access%20Gemini%204%20models%20through%20%2Fteamwork%20and%20%2Fboost%2C%20according%20to%20the%20company%E2%80%99s%20research%20overview.), [antigravity.google](https://antigravity.google/blog/autonomous-codebase-optimization-with-teamwork#:~:text=We%20ran%20these%20campaigns%20in%20Google%20Antigravity%20using%20%2Fteamwork%20%2C%20where%20this%20codebase%20optimization%20capability%20is%20rolling%20out%20in%20the%20next%20update.))

## Reader takeaway

The transferable idea is not simply to unleash more agents: have workers identify costly regions, build fast target-specific yardsticks, and continuously test those yardsticks against the real evaluation. Google reports substantial gains, but the figures come from its own campaigns and include offline replays; costs also vary with prompt-cache rates.

## Open question

Do worker-built proxies retain their ranking and correctness fidelity on codebases and workloads beyond Google’s campaigns?

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Google](https://newruntime.com/topics/google.md): Explore the google topic hub.
- topic hub: [Gemini](https://newruntime.com/topics/gemini.md): Explore the gemini topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
