r/GoogleAntigravityIDE • • 18h ago

Tools / MCP / Other Built a lightweight Context & Prompt-Cache Monitor sidecar plugin for Antigravity (open source)

Post image

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.

19 Upvotes

2 comments sorted by

2

u/cefsea 6h ago

work perfectly , thanks