[BUG] Agent requests ~10× slower since Nov 22: same model, same context size, time to first output went from ~6 s to 40–200 s (data from 1,000+ requests)

Since the early morning of Nov 22 (PST), every agent turn in Antigravity takes minutes instead of seconds. I measured it from the timestamps Antigravity stores for each step. The slowdown is in waiting for the model’s first output, not my machine, my network, or tool execution. Comparing the same model at the same context size, the median wait went from ~6 s on Nov 20 to 40–60 s on Nov 22 and 75–200 s on Nov 23.

Environment

Antigravity 2.34.0 (Electron 44.9.1 / Chrome 152.0.7977.167), language server 2.34.0, “up to date” per auto-updater
OS / hardware macOS 14.8.9 (23J631), MacBook Air 13" M3 (Mac15,12), 8 cores, 16 GB
Model Gemini 4 Neon (XHigh), also seen with Gemini 4 Hydrogen (XHigh) and (High)
Backend daily-cloudcode-pa.googleapis.com (v1internal:streamGenerateContent?alt=sse), as configured by the app
Account / plan Gemini AI Ultra 20x
Region / network CA, US. HTTPS to the endpoint: TLS handshake ~0.46 s, total ~0.75 s per new connection, consistent across repeated tests
Usage pattern Agent mode, long sessions (100–800 steps), mostly run_command / read_file / edit_file tools, sometimes 2 conversations at once

How I measured

Antigravity keeps per-step metadata in ~/.gemini/antigravity/conversations/<id>.db (table steps). For each model step it records when the step was created, when the first output arrived, when it completed, and token usage (input, cached input, thinking, output). I decoded this read-only. “Wait” below means step created → first output received, which covers server-side queueing, prompt processing and thinking. (The field meanings are my reading of the raw protobuf, but the timestamps line up to the millisecond with the streamGenerateContent lines in language_server.log.)

1. Same model, same context size, by day

Only conversations that used Gemini 4 Neon (XHigh) exclusively: 1,053 model calls. Median / 90th-percentile wait, bucketed by total prompt size (input + cached tokens):

Day (PST) < 100k tokens 100–200k 200–300k > 300k All calls Median thinking tokens Cache hit (cached / total input)
Nov 20 5 s / 9 s (n=223) 6 s / 11 s (n=240) 6 s / 11 s (n=121) 6 s (n=1) 6 s / 10 s (n=585) 91 96%
Nov 21 9 s / 13 s (n=39) 12 s / 16 s (n=25) – – 10 s / 15 s (n=64) 324 94%
Nov 22 15 s / 74 s (n=103) 40 s / 99 s (n=100) 57 s / 123 s (n=67) 61 s / 206 s (n=107) 43 s / 126 s (n=377) 244 53%
Nov 23 (to 01:00) 24 s / 43 s (n=3) 75 s / 129 s (n=7) 75 s (n=2) 204 s / 282 s (n=15) 94 s / 266 s (n=27) 198 59%

The rolling median (20 calls) first crossed 30 s at Nov 22 06:35 PST and has stayed there since.

Notes:

  • Thinking tokens did rise (median 91 → ~250), but that’s a few hundred tokens and can’t explain waits of 1–4 minutes.
  • Many slow calls produce almost nothing. Several calls waited 4–5 minutes, then returned 27–300 output tokens with ~100–350 thinking tokens.
  • The prompt cache hit rate dropped from ~96% to ~55%. Tonight, consecutive calls in the same conversation sent ~410k tokens with only 0–8k cached, even though the previous turn’s prefix should have been cacheable.

2. Example slow requests (Nov 23, PST) with IDs

Time (PST) Wait Prompt Cached Thinking Output Trace ResponseID
00:49:32 282 s 411k 8k 327 229 0xd30b13181dbb7b.. J_8Da8WzNsurvMcPsYLNgQQ
00:45:03 266 s 410k 8k 190 150 0x5a62c39a634934.. 7P0Da-TaM6_DodAP74bqYA
00:58:18 245 s 417k 8k 98 27 0x52f44612d8e8ce.. AAEEa9HCFviFzLEPxqab6Qg
00:54:19 233 s 415k 8k 348 198 0xf496af84851fe9.. -_8Da730C5alkPIPkvTg6Ak
00:41:34 203 s 408k 0 108 286 0x777e8788b7deb.. 3_wDa4qPFt2IzLEP4fDEyQg
00:38:25 204 s 499k 446k 2,768 631 0x42ebe8cdcdf05.. tPsDa8ivKdLFodAPqqLDmA0
00:42:31 140 s 503k 499k 143 1,915 0x28dd92bb4ba106.. xvwDa_eTNfm5vMcPwrqY4Qg

The worst single call in the last 3 days waited 402 s for 259 output tokens (310k prompt, 0 cached, Nov 22 06:44 PST).

3. What I ruled out

  • Network: HTTPS round trips to the endpoint take < 1 s. The small safety-monitor calls Antigravity makes (LLM Monitor sir_flash_lite, MODEL_TIER_FLASH_LITE) go to the same endpoint, on the same machine, between the slow calls, and return in 1–2 s. Only the main model calls are slow.
  • Local machine: the language server is idle (< 1% CPU) while waiting, and nothing but routine telemetry is logged during the wait. The slowdown persisted across two restarts of Antigravity (Nov 22 12:47 and Nov 23 00:33 PST).
  • Tool execution: median tool run is 1–10 s in every conversation. In one conversation today (64 model calls), waiting for the model took 2 h 29 min in total versus 23 min for all tool execution.
  • Context size alone: context matters, but on Nov 20 calls with 200–300k-token prompts took 6 s. Today, prompts under 200k take 40–75 s.

Questions

  1. Is there a known capacity or latency problem for Gemini 4 Neon (XHigh) on daily-cloudcode-pa since Nov 22?
  2. Has prompt caching changed for agent conversations? The cache hit rate on long conversations fell from ~96% to ~55%, with several back-to-back calls getting almost no cache hits.
  3. Is there per-user throttling or deprioritisation after heavy use (I ran ~1,300 model calls on Nov 20)? If so, can it be shown in the UI instead of silently making each turn take minutes?

I can share more detail (per-step timing CSVs, language_server.log, more trace IDs) privately if that helps. Thanks!

+1, I’m seeing the exact same TTFT bottleneck on gemini-4-neon-xhigh in Antigravity. Comparing my own request logs side-by-side with Claude Code (claude-opus-5-5) within the same 1-minute window, the gap is massive:

  • claude-opus-5-5 (Claude Code): 107K–131K cached context (~2K new tokens/turn) → TTFT: 1.5s–2.7s (mostly < 2s), Decode: 58–84 tok/s
  • gemini-4-neon-xhigh (Antigravity, ~185K cached): ~2.3K–2.6K new tokens/turn → TTFT: 9.4s–11.5s, Decode: 322–802 tok/s
  • gemini-4-neon-xhigh (Antigravity, ~450K cached): ~10K–11.5K new tokens/turn → TTFT: 20.4s–21.2s, Decode: 202 tok/s

Even though Neon’s decode throughput is 4×–10× faster than Opus, agentic coding workflows rely heavily on frequent, short-output turns (80–400 tokens for tool calls). Waiting 10–21s just for the first token on every single turn—even with high prompt cache hits—makes the end-to-end experience feel much more sluggish than Claude Code.

Hope the team can prioritize optimizing large-context cache loading / TTFT for agent loops!