
Google Antigravity Has a Context Problem. fAI Fixes It.
How big is Antigravity's context window, and how do you see, clear and compress it? And why a bigger window still doesn't stop context rot.
Michael GearhardtGoogle's new agentic IDE is impressive. Multi-model support. Autonomous agents. "Manager view" for running multiple AI workers in parallel. Gemini models with up to a 1 million token context window. Google shipped something real.
But developers using Antigravity for production work have already found the failure mode: context rot. Long sessions lose their own earlier work; one developer's bug report is titled "The server cleared a prefix of the conversation as it grew too large". A large context window is a capacity claim. Reliable context retention inside that window requires architecture, not just space.
This isn't unique to Antigravity. Every agentic IDE has this failure mode. The context window fills. Earlier information gets compressed. The session degrades. The difference is that Antigravity is the highest-profile IDE to launch since Cursor, and the problem is showing up in session one.
Context Engineering Is the Answer
In 2025, Shopify CEO Tobi Lütke named the discipline: Context Engineering. Not Prompt Engineering; prompts get you through a single request. Context Engineering is what makes AI reliable across a full working session, and across sessions, and across tools.
Andrej Karpathy endorsed the framing and developer communities picked it up. The working split now: prompting works for one-off tasks, production AI workflows require Context Engineering.
What that means in practice: the right information has to surround every AI request before it starts. Architecture decisions. Active priorities. Naming conventions. Technical vocabulary. The context your AI needs to do good work, curated, maintained, and injected into each session.
fAI is the infrastructure for that.
What fAI Does for Antigravity
Run fai.
fAI reads your vault, the accumulated context from every AI session you've run,
and writes it into AGENTS.md. Antigravity reads AGENTS.md automatically before
the session starts. Architecture decisions, active priorities, naming conventions,
all front-loaded before context rot can reach them.
The vault isn't just for Antigravity. While you work, fAI captures activity across all your configured AI tools. A session with Claude Code yesterday, a session with Cursor this morning, a session with Antigravity now: all of it feeds the same vault. The context compounds continuously, ambient, nothing to configure.
By session 20, your Antigravity instance knows your vocabulary, your patterns, your architectural decisions, built up from every AI session you've had, across every tool. The context is already there before you type the first prompt.
Your Context, Not Google's
The vault fAI builds stays on your machine, in ~/.fai/. Plain Markdown files.
Git-backed. Portable to the fifteen AI coding tools fAI writes context for.
Switch to Cursor next month and your context goes with you. Your vault doesn't belong to Google. The context you've built won't reset when you close Antigravity.
We covered the ownership question in depth in Your Sessions Don't Belong to Claude. Antigravity makes it concrete: a capable tool, context rot as its failure mode, and the choice of building context inside Google's ecosystem or keeping it somewhere portable.
Git democratized code ownership. fAI democratizes AI context ownership.
Managing Antigravity's Context Window by Hand
Inside a single session, Antigravity gives you some control of its own.
How big is the window? That depends on the model you pick, and Google's Antigravity docs don't give a number. Google's largest Gemini model takes up to 1M tokens (Google's model list). Other models stop sooner: one user's long agent session was refused with "prompt is too long: 218556 tokens > 200000 maximum" (Google AI developers forum).
How do you see what's in it? In the Antigravity CLI, type /context. A panel shows how full
the window is, a token breakdown by category, the compaction checkpoints and the workspace files
it's tracking (Antigravity docs). The
desktop app has no built-in indicator yet; a
feature request
for one is open.
How do you clear it? In the CLI, /clear (or /new) starts fresh; the docs suggest it when you
switch to a task that doesn't need the earlier conversation. In the desktop app, start a new
conversation. To keep the window lean without clearing it, /btw asks a side question without
adding it to the conversation, and /fork or /rewind go back to an earlier checkpoint.
How do you compress it? Antigravity does it for you: as a session grows, it compacts older turns into checkpoint summaries. The docs list no manual compact command.
These keep one session usable. None of them carries anything into the next one.
How to Start
deno run -A jsr:@fathym/fai/install
fai
fAI is open source, free, and runs locally. It works with every AI coding tool
fAI supports, and your context stays in ~/.fai/. No cloud.
Context that compounds. Every session, every tool, every model that comes next.
Read more: Your Sessions Don't Belong to Claude ->
Last updated
Two commands. No config files, no API keys upfront.
deno run -A "https://www.fathym.com/fai/install.deno"Sign up for occasional emails when new posts land: how teams put AI fully to work, build tools they own, and make every session count.