Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

elviscjn-cjn/antigravity-context-viewer

Developer Tools

Adds context, quota, speed and cost dashboards to the Antigravity desktop client via an ASAR injection CLI.

2,509
177
JavaScript
MIT
1 year old

What it does

Antigravity Context Viewer patches the Antigravity desktop client to expose information the stock UI does not show: how many tokens the current session has consumed and how much room is left, per-model quota rings with 5-hour and weekly reset times, output speed and time-to-first-token, per-turn prompt/reply/thinking/tool-call breakdowns, historical usage with an activity heatmap, and an API-cost estimate for recorded usage. It also offers optional extras such as a localized Chinese UI, a prompt-tier/branding enhancement center, and a launcher for the Antigravity CLI.

The core mechanism is an ASAR patch: the CLI unpacks the client's app.asar, injects main-process and preload modules plus renderer code, and can restore the original archive from a backup. A no-modification mode loads only the renderer over CDP into the running client.

Quick start

Prerequisites: Node.js available, the Antigravity desktop client installed, and the repository checked out locally. No npm install is needed because the ASAR engine is bundled.

# 1. Preflight: detect Node, client path, CDP port and Python
node cli.js check

# 2. Persistent install (writes ASAR + plugin modules)
node cli.js install

# 3. Fully quit every Antigravity window (including the tray icon) and reopen

# 4. Verify install and session status
node cli.js status

On Windows you can instead double-click install.bat (installer); macOS/Linux use ./install.sh. To avoid modifying app.asar, run node cli.js watch for a background daemon that re-mounts on window refresh, or node cli.js live for a one-off mount on the current window. node cli.js restore reverts to the backed-up original archive.

Constraints and compatibility

  • The patch modifies the client's app.asar. On macOS, builds using ElectronAsarIntegrity or a signed .app are blocked from install/recover by default, and the watch/CDP mode that keeps the official signature unmodified is recommended instead.
  • Main real-device testing is on the Windows desktop client; the README states this build had no physical macOS machine during construction, so real cold starts, Keychain/TCC behavior and watch interaction on macOS still need community feedback.
  • CDP-based localization only reaches the renderer layer. Native top-bar menus, tray menus and OS dialogs cannot be translated this way, and disabling it requires a refresh or restart to restore the original DOM.
  • The optional Windows helper scripts/cli-window-helper.exe is an unsigned ~15 KB binary, so some antivirus engines may flag it heuristically. It can be deleted without disabling security software; the CLI then launches a plain console window instead.
  • Context-size settings are bounded by model, client and server limits; setting a larger budget does not guarantee a longer request is accepted.
  • The no-TUN feature requires an existing local proxy and is not a free network service.

HotRepo's take

In the weekly JavaScript ranking dated 2026-12-04, the project recorded 2,506 stars and 175 forks with 980 stars added in that period, reaching 3rd place on that list. The repository carries a substantial body of community input — the README credits dozens of PR authors across several milestones — and the install path is unusually well documented for a client-patching tool: preflight checks, backup and restore, an integrity check, and an explicit no-modification CDP mode. Its practical value is real for heavy Antigravity users who need visibility into token budget and quota, but the trade-off between patching app.asar and preserving signed integrity is central, and the README's own note that macOS real-device coverage is missing is the main caveat to weigh before installing.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. ATtacK030130/antigrative-dashboardA local widget for Antigravity that shows token throughput, cache hits, context usage and quota windows next to the model selector.JavaScript106
  2. wangbingnan136/agy-maxElectron-side enhancement plugin for the Google Antigravity coding client, adding session search, usage dashboards, themes, multi-account switching and SSH project support.JavaScript105
  3. zou172866/agy-dartAntigravity plugin that trims tool output, monitors prompt cache and recovery, cutting token use for Antigravity users.JavaScript103
  4. aishadiaodeqishui/agy-monitorA read-only side-panel plugin for Antigravity that tracks context usage, multi-agent sessions, themes and wallpapers.JavaScript103
  5. qqxpee/antigravity2-cnA Chinese localization pack that patches the Antigravity IDE's Electron interface, menus, and dialogs on Windows and macOS.JavaScript2,334