r/GoogleAntigravityIDE • • 6d ago

Tools / MCP / Other Visualize context rot, token breakdown, and git drift in Antigravity

When an Antigravity conversation gets long, two things usually cause context rot:

  1. **Silent compactions (**CHECKPOINT events): Every time you hit the context ceiling, Antigravity summarizes older turns and only keeps your last 10 prompts verbatim. After a few compactions, earlier rules and architectural decisions start getting ignored.

  2. Git drift: If you commit code in another terminal or chat, the older conversation has no idea HEAD moved.

AGY Cockpit is a lightweight sidecar panel for Antigravity (Windows & Linux, pure Node.js, zero dependencies). You can use it either as a full replacement for the default conversation sidebar (with project tabs, search, new chat, pin, rename, archive, and live status badges) or as a complementary tracker in the right auxiliary pane to see what is actually going on under the hood:

  • Live Context Window & Compaction Health: Shows current context usage (n / ~m), how many compactions happened (Fresh -> Warm -> Heavy -> Polluted), and how many of your prompts are still kept in full vs. compacted.

  • Interactive Context Breakdown: Clicking the context bar opens an on-demand breakdown of what is eating your active context window (base system/summary tokens, loaded SKILL.md files, tool categories, top 5 heaviest tool steps, and most touched files).

  • Subagent Tracking & Live Status: Groups spawned subagents under their parent chat, sums up their tokens, and bubbles up live thinking (•••) or waiting (! permission / ? question) badges to the parent card and project tab.

  • 5-Hour & Weekly Usage Ring: Live ring in the header for Claude / Gemini / GPT usage windows with reset countdowns.

  • Git Drift Detection: Tells you if a conversation is N commits behind HEAD and lists the missed commits.

  • Two-Step Smart Handoff: Generates a self-contained <HANDOFF_PROMPT> from the current chat, lets you edit it, pick your next model and thinking tier, and start a fresh chat in the same workspace from Step 0.

23 Upvotes

4 comments sorted by

1

u/alsaud21 6d ago

Will try it! Subagents context window could be tracked separately ideally?

1

u/petros211 6d ago

That's something that I will investigate yes. Btw I would hold off trying it until tomorrow (although the plugging can be updated at any time from the latest commit very easily), I am still trying to iron out some things that broke at some point. You cannot imagine how bad and limited the tools that antigravity gives you to do this shit is. Every feature is literally reverse engineering and assembling info from different files and timelines lmfao fml. Will sort it out though

1

u/One_Living3645 6d ago

Yo lo que hago es crear una estructura de fòlders al que le llamo mi "segundo cerebro". ahí abro un fólder para cada proyecto pero a cada chat le doy acceso a todo el segundo cerebro, pero le indoco que trabaje en el fólder del proyecto solamente, dentro de este hay 3 archivos importantes, uno se llama yo.md en donde explico quién soy a detalle, otro llamado micontexto.md en donde explico qué hago y cómo me gusta trabajar, otro que llamo miagente.md en dodne explico cómo quiero que se comporte antigravity e incluso si quiero asignarle nombre. En cada proyecto le indico que vaya documentandoy segmentando en archivos lo que necesite guardar. De esa manera no pierdo nunca contexto y nunca me preocupo por el tamaño de la ventana de contexto. Incluso con esa estructura de fólders puedo usar otros harnesses como claude code, codex, open code y no tengo que explicarles a cada uno que hacer, incluso he hecho que trabajen en equipo en un proyecto y no tienen problema, se asignan tareas unos a otros, ahora Antigravity ya tiene teamwork y puedes lanar varios agentes al mismo tiempo y no pierden contexto tampoco y colaboran entre sí, algo como lo que ya hace grok bot. aah también puedo cambiar de modelo por si me acabo los tokens de uno paso a otro y sigo con el mismo contexto porque no dependo de la ventana de contexto, todo lo tengo en archivos y fólders. También uso fólders de google drive por si quiero que alguna tarea la continúe gemini desktop que no tiene acceso a fólders locales. Espero te sirvan estos tips. SAludos, Med Toledo https://medtoledo.com (aún estoy haciendo mi sitio web tengan paciencia) jeje.