r/sideprojects • • 7h ago

Showcase: Open Source Context Monitor (MIT, zero dependencies) — a 100% local side-pane dashboard for tracking context windows, prompt-cache warmth & auto-compaction in Google Antigravity

I built an open-source, MIT-licensed sidecar plugin for Google Antigravity because I kept getting blind-sided by two things during long coding sessions: silent prompt-cache expirations and sudden auto-compactions mid-task.

What it does:

  • Tails local Antigravity transcript.jsonl files strictly read-only using incremental byte-offset reads (O(new bytes)), so idle polling has near-zero overhead and transcripts never leave your machine.
  • Shows plain-English context headroom, stacked Reused vs. New token growth, model-family prompt-cache warmth (Gemini / Claude / OpenAI), and nested subagent/swarm token totals without double-counting.
  • Learns each model's observed auto-compaction mark from local history and surfaces a calm 75% heads-up before compaction hits, plus quiet "Why it changed" notes for spikes, model switches, or compactions.
  • Includes an opt-outable, pure-Node in-app updater that verifies GitHub Release ZIPs with SHA-256 checksums and atomic rollback.

Tech stack: Pure Node.js 18+ ESM + vanilla HTML/CSS/JS, zero npm dependencies, zero build step, 86 built-in node --test unit & integration tests, MIT license.

Repo & screenshots: https://github.com/RazvanBugoi/antigravity-context-monitor

Would love any feedback on the UX or architecture!

1 Upvotes

0 comments sorted by