Google Antigravity loses context, and now you can catch it
The chat_tokens plugin adds /ctx and /чат to Google Antigravity 2.0, showing context usage before a model request is sent.
AI news faster than on the site — on Telegram KARMAZIN MEDIA

The chat_tokens plugin for Google Antigravity 2.0 adds a context monitor plus the local /ctx and /чат commands. A PreInvocation hook intercepts them before the model request, so the check uses 0 AI tokens and 0 quota. The interface shows the current volume, percentage, cache, model, step count and warning threshold.
Antigravity 2.0 had already started trimming the history of long chats, while Gemini offered a way to restore the context. The plugin now reads local transcript.jsonl files and the conversation_summaries.db database in read-only mode. Its Sidecar shows a six-category breakdown, statistics for 24 hours and 7 days, and the ten most recent conversations.
The plugin is released under the MIT license. You can install it with agy plugin install from the repository or clone it into ~/.gemini/config/plugins/chat_tokens, then restart Antigravity 2.0. It requires the app itself, bundled or installed Node.js, and Python 3.
Tools
AI agents
Tools