Antigravity delegate children start together with no concurrency cap and exhaust RAM, kernel-panicking a 64 GB Mac #48118
What happened#
T3 Code delegate tasks on the Antigravity provider (model gemini-4-neon) start one antigravity process per child. Each one reaches about 16 GB within about 40 seconds of starting and can grow to about 34 GB. On a 64 GB Mac Studio (M2 Ultra), six children started together after an Antigravity quota reset. Together they reached about 145 GB and the kernel panicked. This happened on 26 Nov, 1 Dec 18:37, 2 Dec 14:19 and 2 Dec 19:21 (CET). Antigravity 1.5.22, the latest, still does it.
Expected: bounded memory per child, or T3 limiting how many Antigravity children run at once. The current workaround is a manual one-at-a-time lock (a bash script the lead agents call before each delegation).
Diagnosis#
The panics are memory exhaustion caused by antigravity children of the T3 server. All three panic-full reports are watchdog timeout: no checkins from watchdogd in 90–94 seconds, each with Compressor Info: … 100% of segments limit (BAD) with 66–67 swapfiles. Every antigravity process in them is a direct child of the T3 Code (Nightly) server process:
| Panic | antigravity procs | Total RSS | Largest | Uptimes (s) |
|---|---|---|---|---|
| 1 Dec 18:37 | 4 | 120.4 GB | 34.5 GB | 294–696 |
| 2 Dec 14:19 | 6 | 138.3 GB | 34.5 GB | 148–417 |
| 2 Dec 19:21 | 6 | 145.6 GB | 34.3 GB | 155–611 |
Each process used only 3–38 s of user CPU. Their RSS sits at multiples of about 8.6 GB (8.7 / 17.2 / 25.4 / 34.4 GB), which suggests Antigravity reserves memory in 8 GiB blocks rather than doing real work. That growth is an upstream Antigravity problem. T3 makes it fatal for four reasons, verified on tag v0.1.14-nightly.20261203.5637:
- Auto-resume starts every limited thread in the same tick.
UsageLimitRecoveryWorker(apps/server/src/orchestration-v2/UsageLimitRecoveryWorker.ts:103-142) runs on the 5-second scheduler. It loops over every candidate fromgetLimitRecoveryCandidates(no row limit) and dispatchesmessage.dispatchwithstart_immediatelyfor each one, with no concurrency limit, stagger or jitter. WithautoResumeLimitedThreads: true, every Antigravity child stopped by the quota restarts at the same moment. - Nothing caps concurrent provider sessions.
delegate_task(OrchestratorMcpService.delegateTask→delegated_task.request) only checks that the parent run is active and the provider instance is enabled. There is no global or per-provider limit on running sessions or processes, and no setting for one. Idle release (ProviderSessionManager.ts:94-97) only affects idle sessions. - There is no containment on macOS.
agentScope.makereturns the no-op scope on any platform other than Linux (apps/server/src/process/agentScope.ts:104), so the MemoryHigh/MemoryMax slice limits do not exist on macOS. The Antigravity spawn (buildAntigravityAcpSpawnInput,antigravityAuthSupport.ts:569-595) sets no rlimit, heap limit or other memory bound. hostPressureis display-only. It readskern.memorystatus_vm_pressure_levelon macOS (HostResources.ts:246-252). Its only consumers are the client stream and a read-only MCP tool. Nothing in orchestration or provider startup reads it before starting another session.
autoResumeLimitedThreads is also global only. There is no per-provider override, so a user cannot keep auto-resume for Claude/Codex while turning it off for Antigravity.
Requests, in rough priority:
- A per-provider (or global) cap on concurrently running sessions, with a queue for delegated children and resumed threads.
- Stagger usage-limit auto-resume dispatches, and respect the cap.
- Optionally, delay new session starts while
hostPressurememory is elevated or severe. - A per-provider
autoResumeLimitedThreadsoverride. - On macOS, some per-child memory guard (e.g. kill a child above a configurable RSS) so a runaway child cannot take the host down.
The per-process growth itself is Antigravity's bug and is reported upstream (link below). The T3 side should still hold even if Antigravity fixes it: any provider whose children use a few GB each can do this to a smaller machine.
Steps to reproduce#
- macOS on Apple Silicon (seen on 64 GB). T3 Code desktop with an Antigravity provider instance, and
autoResumeLimitedThreadson. - A lead thread delegates 4–6 tasks to Antigravity (
gemini-4-neon) viadelegate_task, or creates threads for them. - Let them hit the Antigravity quota, so they fail with
usage_limitand auto-resume is armed. - At the reset time, all of them resume in the same 5 s sweep. Each
antigravityprocess reaches about 16 GB within about 40 s and keeps growing toward about 34 GB. - Total RSS passes physical RAM plus the compressor limit, and the kernel panics with a watchdog timeout.
Without step 3, starting 5–6 Antigravity delegates by hand at the same time gives the same result.
Version#
T3 Code Desktop nightly. The panics were on 0.1.14-nightly.20261201.5530/.5550 (1 Dec) and 0.1.14-nightly.20261202.5597 or .5611 (2 Dec). The code paths are unchanged in 0.1.14-nightly.20261203.5637.
Environment#
macOS 27.0.1 (26A434), Mac Studio M2 Ultra (Mac14,14), 64 GB RAM, Node v24.22.1, Antigravity CLI 1.5.22 (the T3-managed antigravity acp binary; T3 auto-updated it to 1.5.23 on 3 Dec, which is not yet verified), desktop app with a local server
Evidence#
# panic-full-2026-12-02-192155 (macOS 27.0.1)
panic(cpu 5 caller …): watchdog timeout: no checkins from watchdogd in 94 seconds
Compressor Info: 31% of compressed pages limit (OK) and 100% of segments limit (BAD) with 67 swapfiles and OK swap space
# processByPid, procname == "antigravity" (parentPid = T3 Code (Nightly) server)
pid 60092 uptime 611s RSS 34.3 GB userCPU 6.6s
pid 64134 uptime 367s RSS 17.4 GB userCPU 7.2s
pid 64756 uptime 350s RSS 17.3 GB userCPU 8.0s
pid 64856 uptime 349s RSS 34.1 GB userCPU 12.1s
pid 65092 uptime 343s RSS 17.1 GB userCPU 8.1s
pid 72372 uptime 155s RSS 25.4 GB userCPU 12.8s
total antigravity RSS: 145.6 GB (all processes: 164.3 GB on a 64 GB host)
# settings.json
"autoResumeLimitedThreads": true
Related issues#
- #27528 asked to cap how many scheduled and delegated runs are active at once. It is closed as completed, but nothing in this build caps concurrent delegated sessions or auto-resumed threads.
- #47050 and #46836 are about agent-slice memory limits on Linux. This report is about macOS, where there is no containment at all.
- #22307 / #46525 cover usage-limit auto-resume correctness, not resume bursts.
Fix applied or workaround#
No changes were made to the machine. The user runs a manual one-at-a-time lock script that lead agents call before each Antigravity delegation.
Cross-reference#
Antigravity-side report (per-process memory growth in antigravity acp): https://github.com/google-antigravity/antigravity-cli/issues/2178
Filed by#
Claude Code (claude-opus-5-5) via t3 triage
SasaSlivova-IS(GitHub profile, opens in a new tab) added labelsvia-triage
tanstack-source added labelsbug
juliusmarminge closed this
Sign in to join this conversation.
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.