Your AI coding bill usually isn't high because of your prompts, it's because of your prompt cache.
Every turn, the agent resends your entire conversation. That's cheap while the cache is hot, but the moment it breaks, you pay full price for hundreds of thousands of tokens. Loading a skill, switching models, rewinding, compacting at the wrong time, or just stepping away too long can all bust it.
I built Antigravity Context Intelligence (free, MIT) to show you exactly where your tokens go and help you stop leaking them.
What it tracks (0 extra LLM tokens, 100% local):
- Cache misses: the exact cause of every cache break
- Context hogs: which files, tools, or turns are eating your window
- Optimal compaction: the cheapest moment to compact, learned from your own sessions
- Cost breakdown: real-time session cost and cache savings
Opt-in agent optimizations (feeds the same telemetry back to the agent so it can self-correct):
- Nudges the agent to compact at the right time
- Blocks duplicate file reads
- Flags runaway tool output
- Includes a bundled skill so the agent can check its own context before starting big tasks
All data stays strictly on your machine.
Install:
agy plugin install https://github.com/souhhcong/antigravity-context-intelligence
Then open Toggle Side Panel → Plugins → Context. It's also available as an extension for VS Code and Antigravity IDE (CLI support coming soon).
(Note: If you saw this posted earlier as "Context Monitor," I renamed it deliberately. A monitor only tells you the number is high, while this tells you why and what to do about it.)
Would love any feedback, feature requests, or edge cases you run into!