Users of the Google Antigravity 2.0 desktop application face an issue where the system silently truncates chat history once it exceeds a certain size. This 'Compaction Amnesia' leads to the loss of initial instructions, architectural constraints, and project history, causing the AI agent to ignore previous decisions or repeat errors.

The application lacks a built-in context usage indicator, unlike competitors such as Cursor, Claude Code, or Cline. While the console version of Antigravity includes a /context command, the desktop interface provides no visibility into token limits, leading to unexpected data loss during long sessions.

Antigravity 2.0 logs detailed token usage data locally in JSONL files, including input, cache, and output tokens for every step. By accessing these local logs, a developer created a custom solution to monitor context usage without modifying the IDE binary or sending extra requests to the server.

The solution uses a Python-based pre-invocation hook triggered by the /chat command. It reads the local transcript files and returns a status message, effectively aborting the request before it reaches the LLM to save quota. This approach bypasses the need for server-side API calls.

The project evolved into a native macOS sidecar application called ContextRing, which displays real-time context usage in the IDE's side panel. This tool provides a visual breakdown of token consumption, cache hits, and model status, helping users manage session hygiene and avoid automatic truncation.