Hi Team,
With latest Anti Gravity IDE update (Antigravity IDE Version: 2.0.3).I am facing repeated critical stability issues with Antigravity IDE / Gemini agent workflows on macOS during implementation tasks.
Issue Summary:
-
The IDE/agent consumes excessive memory (>40 GB swap usage) and eventually freezes/crashes the entire Mac.
-
This has happened multiple times.
-
The latest crash occurred while the agent executed
npm run buildfor a Next.js frontend project.
Observed Root Cause:
The issue appears to be caused by aggressive recursive indexing + filesystem watching across very large monorepo dependency/build directories.
Workspace characteristics:
-
Multiple nested
node_modules -
Python
venv -
Next.js
.nextbuild cache -
Total file count exceeds ~120k files
What likely happens:
-
The IDE/language server recursively scans and indexes large dependency directories (
node_modules,venv,.next). -
During
next build(Turbopack), thousands of files are continuously generated inside.next. -
The IDE watcher reacts to every generated file and repeatedly triggers indexing/background analysis.
-
This creates a feedback loop:
-
build writes files
-
watcher detects changes
-
indexer rescans
-
CPU/RAM spikes
-
-
macOS starts swapping aggressively (>40 GB swap observed), UI freezes, and system crashes.
Why this is concerning:
-
The crash affects the entire operating system, not just the IDE.
-
Background indexing/watcher behavior does not appear to safely throttle or exclude heavy generated folders automatically.
-
This makes the IDE unsafe to use for large monorepos with Next.js/Python environments.
Temporary Mitigation:
I manually added watcher exclusions for:
-
node_modules -
venv -
.next -
.swc -
dist -
__pycache__
This reduced the issue significantly.
Request:
Please investigate:
-
Recursive indexing behavior in large monorepos
-
File watcher handling during active build processes
-
Automatic exclusion handling for generated/dependency folders
-
Memory throttling/backpressure for language servers and watchers
-
Safe handling of Next.js/Turbopack build output
It would also help if the IDE:
-
automatically respected nested
.gitignore -
auto-excluded common heavy folders
-
paused indexing during build storms
-
exposed watcher/indexing diagnostics in UI
Environment:
-
macOS
-
Next.js 16 + Turbopack
-
Python virtual environments
-
Monorepo workspace structure
This issue is reproducible and severe enough to crash the full machine.
Thanks.