I once opened a large repository packed with image assets and asked the agent for a trivial fix. The reply simply never arrived.
At first I changed things at random. I restarted, cleared caches, switched models—and the results weren't good. I had never checked whether the slowness came from the input size, the number of things connected, the model I'd picked, or the network.
So this guide goes in the order I now use: narrow it down first, then fix. Response times and savings vary a lot between machines, so I won't promise "X% faster." Instead you'll get ways to measure before and after on your own setup.
Pin the slowness to one place before you fix anything. I try to hold that line hardest when I'm in a hurry.
First: is the agent slow, or the window?
| Symptom | Suspect | Look at first |
|---|---|---|
| Typing or scrolling lags, the window freezes | The app itself (memory, extensions, file watching) | Your OS task manager / Activity Monitor |
| The window is fine but replies are slow or never come | The agent side (context, model, MCP, network) | Project size, enabled MCP servers, selected model |
| Replies arrive but code stops mid-way | Output token budget | "When code output gets cut off" below |
If only the window is heavy, tuning the agent won't help, and the reverse is true too. This split alone roughly halves what you need to try.
Before touching anything, check the app version
Rereading the official changelog after drafting the rest of this guide, I noticed that a good share of the slowness and freezing people report was fixed in the app itself, not in anyone's settings. I used to edit ignore files and prune MCP servers before checking the version. That was the wrong order.
Here are the performance, freeze, and memory fixes I pulled from the official changelog for the Antigravity app (2.x line), as read on October 24, 2026. I read through 2.25.0; the entries for 2.23.1 (Oct 13), 2.24.0 (Oct 15) and 2.25.0 (Oct 20) list no performance, freeze, or MCP fixes.
| Version (date) | What was fixed | Symptom it matches |
|---|---|---|
| 2.4.3 (Jul 28) | Added timeouts for MCP server connections and tool calls | An MCP server stops answering and the agent waits forever |
| 2.5.0 (Jul 31) | Fixed a deadlock while waiting for subagents; reduced typing lag while the agent streams a reply | Work stalls once subagents are involved, or typing lags while a reply is streaming |
| 2.6.0 (Aug 7) | Faster opening of long conversations; fixed an endless hang when a stop hook keeps blocking the end of a turn; hooks that call a model now stop at their configured timeout | A long conversation won't open, or the agent stays stuck |
| 2.14.0 (Sep 15) | Faster loading and lower memory for long histories; fixed a leak where finished terminal commands kept their output; fixed a multi-second freeze when reconnecting after inactivity | The app gets heavy after running for hours, or freezes for a few seconds when you return from idle |
| 2.15.0 (Sep 18) | Faster conversation switching; fixed conversation files growing large and slowing the app | Switching conversations in the sidebar feels slow |
| 2.16.0 (Sep 22) | Much faster discovery of skills and other customizations on large projects and network-mounted folders | Opening a big repository or shared folder makes you wait |
| 2.17.0 (Sep 22) | Syntax highlighting and diffing for large files now run off the main thread, and files over 100 KB fall back to plain text, so the app no longer freezes | Opening a huge file or a big diff freezes the window |
| 2.23.0 (Oct 12) | Fixed restarting an MCP server sometimes leaving it stopped | You restarted an MCP server and its tools never came back |
The way to use this table is simple. If your symptom resembles a row, update the app first and measure the same request again. If the update alone fixes it, you never need the ignore-file work or the MCP cleanup.
One thing worth knowing before you read the table: from 2.17.0 on, files over 100 KB open as plain text with no syntax colors. That is a deliberate trade to avoid freezing, not a new bug. Mistaking "the colors vanished" for a second slowness symptom sends the diagnosis the wrong way.
Two caveats. First, the table summarizes the changelog's wording, not measurements from my own machine, so I can't tell you how many seconds you'll save. Second, my read of the changelog didn't reach the older entries, so a fix missing from the table isn't proof that it hasn't shipped. Only if the symptom survives the update should you move on to the checks below.
Cause 1: the project is too big
The agent builds its answers from the files in your project. When dependency folders, build output, and logs are in scope, there is simply more to read, and waits tend to grow.
Count what is actually in scope:
# Files excluding dependencies and build output
find . \( -name node_modules -o -name .git -o -name dist -o -name build -o -name .next \) -prune -o -type f -print | wc -l
# For comparison: everything
find . -type f | wc -l
# Candidates for oversized files (over 5MB)
find . \( -name node_modules -o -name .git \) -prune -o -type f -size +5M -printThe wider the gap between the two counts, the more an exclusion file can help. If the gap is small, the cause is elsewhere.
You can exclude paths with a file in .gitignore syntax. I have been using .antigravityignore, but how each ignore file is read has shifted between versions. A user reply on Google's developer forum even mentions that .gitignore handling and permission settings were reorganized around 2.5 (a user report, not official confirmation). So always verify the behavior after you write the rules—4 places to check when .antigravityignore isn't working walks through how.
node_modules/
.git/
dist/
build/
.next/
out/
*.log
.DS_Store
__pycache__/
coverage/
Protect secrets such as .env through permissions as well, for safety rather than speed. I avoid designs that rely on an ignore file alone.
If indexing never finishes, see diagnosing a stuck Workspace Indexing; for AI failures on huge files, see when AI fails on large files.
Cause 2: too many MCP servers
Each enabled MCP server adds connection checks and tool-list loading at startup. Servers you no longer use still make you wait every time an agent starts.
| Check | How |
|---|---|
| Enabled servers | List the ones you haven't used this week in the MCP settings |
| Slow starters | Disable one at a time and compare the agent's first response |
| Concurrency | With several agents running, check whether MCP connections pile up |
Turn one off, measure once. That order tells you afterward which one was responsible.
Cause 3: model and mode choice
Heavier models and planning-style modes take longer by nature. Sending simple questions to them manufactures slowness yourself.
Model names and prices change quickly, so I won't pin them here—use the names shown in your settings screen.
| Kind of work | Leaning toward |
|---|---|
| Lookups, small questions | A lightweight, fast model / fast mode |
| Everyday code generation and debugging | A standard model |
| Design across several modules | A more capable model / planning mode |
The point is to default to the light side and step up only when needed. A heavy default means waiting during every ordinary task.
To compare, send the same prompt twice under the same conditions and use a clock, not a feeling:
# Note the start time, then compare with when the reply arrives (macOS / Linux)
date +%H:%M:%SCause 4: the app's own memory
Apps left running for a long time tend to accumulate memory. Antigravity is a VS Code–style desktop app, so check its processes in your OS task manager (Activity Monitor on macOS).
- If a restart makes it lighter, suspect accumulation from long uptime.
- If disabling all extensions temporarily helps, suspect an extension conflict.
- If several projects are open, narrow to one and compare.
Looking at which process holds how much before acting means fewer blind restarts.
Cause 5: network latency
A slow round trip to the API means slow replies. VPNs and corporate networks deserve a look first.
# A rough connectivity and latency check (any public host will do)
ping -c 5 8.8.8.8Turning the VPN off or trying another connection (such as tethering) narrows it down quickly. On a corporate network, reporting the measured delay to your administrator is the shortest path.
When the agent stays on "thinking"
Check in this order:
- Is the network connected?
- Are there red errors in the app or its developer logs?
- Is there a service incident (check the official status display)?
- Do you still have quota or credits?
Then stop the agent and ask again; if it still doesn't move, restart the app and reopen the project. Keep clearing caches as a last resort, and learn what it deletes first.
When code output gets cut off — a different fix from "slow"
Slow replies and truncated output look alike but have different causes. If a function ends without its closing }, or you get imports with no body, the fix is not speed tuning—it is securing output tokens.
Sorting the symptom into three types decides your move:
- A: Code stops mid-function or mid-class — the output tokens ran out and generation gave up.
- B: Asking "continue" makes it forget earlier content — the chat history grew long and old context got pushed out.
- C: An explicit "file too long" error — the clearest sign that the input side is too large.
When it cuts off, start a fresh session instead of continuing
Rather than asking for more in a long session, open a new one and hand over only the part you need.
# Adding to a long session (prone to cutting off)
"Add authentication to the code from earlier"
# In a new session (recommended)
"Add JWT authentication to the function below. Only auth.ts changes.
export function checkAuth(req: Request) { /* ... */ }"
I also touch on organizing context in managing the context window in large codebases.
"Return only the changed code" frees up output budget
One extra line in the request cuts preambles and full re-prints, leaving more tokens for the code itself.
"Add error handling to fetchUserData.
Return only the changed function (no other functions, no explanation)."
In my own solo projects I was cut off many times trying to fix a long file in one go. Since I switched to extracting just the function and asking for only that function, truncation has become rare. Ask narrowly, and ask often—that has helped most.
Reviewing Auto-continue
Auto-continue lets the agent keep going on its own. It's convenient, but if it runs on in the wrong direction it spends extra time and quota.
When performance feels off, turn it off for a while and confirm each step yourself. Then re-enable it for the kinds of work that went smoothly. The setting's location and name change between versions, so check your own settings screen.
A checklist for measuring one change at a time
Go from the top, change one item, and measure with the same request each time.
- [ ] Check the app version against the changelog table and update before measuring
- [ ] Decide whether the window or the agent is slow
- [ ] Compare the file count with and without exclusions
- [ ] Disable unused MCP servers one at a time and compare first responses
- [ ] Move the default model and mode to the light side and compare on the same request
- [ ] Turn Auto-continue off and watch
- [ ] Check memory in the task manager and restart if needed
- [ ] Turn off the VPN or change connection and compare latency
Where to go next
Slowness usually lands on one of five things: context size, MCP count, model and mode, the app's memory, or the network. Which one it is differs by machine.
Start by opening the app's version and comparing it with the changelog table above. For whatever slowness remains, count the files with and without exclusions. Holding one number makes the next slowdown a lot less like guesswork.