r/google_antigravity • u/razvanbugoi • 7d ago
Showcase / Project Built a lightweight Context & Prompt-Cache Monitor sidecar plugin for Antigravity (open source)
I wanted an easy way to keep an eye on how full my context window is getting and whether prompt caching is actually hitting (or going cold) while working in Antigravity, so I put together a small read-only sidecar plugin for the side pane and open-sourced it in case anyone else finds it useful.
It automatically tracks whichever conversation you have open and shows: - Live context window usage (tokens + % fill), step delta, and compaction detection - Last-step and full-session prompt-cache hit rates (plus warm average excluding turn 1) - Cache freshness timer (5m TTL countdown for Claude models, hot/warm/cold window for Gemini) - Stacked cached vs. fresh token trend chart and recent model steps - Auto light/dark theme sync with Antigravity
It's pure Node.js (18+, zero npm dependencies) and completely local/read-only — it just reads your local transcript.jsonl files under ~/.gemini/*/brain/. Tested on macOS and Ubuntu Linux, and should work on Windows too.
Repo & install (git clone or one-click ZIP): https://github.com/RazvanBugoi/antigravity-context-monitor
Feedback or PRs welcome — let me know if anything breaks on your setup.
1
u/mohamed76813 6d ago
Amazing 👏
1
u/dsg123456789 6d ago
Thanks, that's a great plugin. Can I make a few requests?
- could you provide a scale & hover-to-show the exact measurements for the context and cache trend?
- could you provide hover-to-show exact for the last step cache & session cache colors? (or is blue just uncached?)
- what's the percentage mean for each recent model step?
- is there data on tool tokens and multimodal tokens? I have an MCP I built that does very complex visual reasoning, and it'd be good to understand where I could optimize efficiency.
1
u/Motor-Mycologist-711 6d ago
This worked well on windows 11
And I found that Antigravity clearly resets prompt cache every 10 turns…
This plugin is gold. And Antigravity is far below Deepseek Harness which completely handles prompt cache on any providers.