Skip to main content
Glama

AGY Pulse


Why AGY Pulse?

AGY Pulse is a pure-local, zero-dependency-runtime Antigravity MCP App (SEP-1865) plugin. It gives you deep visibility into your Antigravity sessions, token economics, model request distribution, tool-call patterns, and official quota pools — without patching app.asar, without Electron injection, without CDP debugging ports, and without probing undocumented RPCs.

  • Zero Injection: Runs strictly through Antigravity's official Plugin + MCP App contract. Desktop updates never break it.

  • Zero Runtime node_modules: The MCP server runs directly on built-in Node.js modules (node:sqlite, node:fs, node:child_process) with a self-contained single-file ui.html.

  • 100% Local: Reads your local Antigravity session metadata/transcripts read-only and optionally invokes the official agy -p /usage CLI. No telemetry ever leaves your machine.


Related MCP server: Antigravity Context Card

Features

1. Analytics & Models (Default View)

  • Time Windows: Switch smoothly between Today, 7D, 30D, and All.

  • Core Metrics: Total tokens (Input / Cache Read / Output), cache hit rate, model request counts, tool calls, and estimated API-equivalent cost.

  • Per-Model Breakdown: Inspect token share, request counts, and click any model card for flicker-free in-place session filtering.

  • Adaptive Activity Visuals: Hourly/daily activity charts tailored to the active window plus a compact 6-month contribution heatmap with smooth hover zoom.

  • Workspace Distribution & Session Explorer: Clean workspace breakdown, live search, subagent toggle, and one-click jump into any session.

2. Live Session

  • Context Window Gauge: Real-time context usage percentage and remaining capacity for the active or selected session.

  • Performance Telemetry: Cache hit rate, median decode speed (tok/s), per-step token breakdown, and model/tool timeline.

  • Silent Auto-Sync: Switching local tabs or returning focus from chat automatically refreshes local telemetry in the background (2s throttle, zero flicker, never triggers agy CLI).

3. Tool Calls

  • Interactive Donut & Bar Breakdown: Visualize tool-call distribution across either the selected time window or the active session.

4. CLI Quota (Official agy Hook)

  • Official Quota Sync: Queries agy -p /usage (official Antigravity CLI) when installed, displaying Gemini and Claude/GPT Weekly & 5-Hour remaining pools with live reset countdowns.

  • On-Demand & Quiet Caching: 3-minute memory/disk cache (quota-cache.json) with strictly on-demand syncing — only queries agy when you open the CLI Quota tab with an expired cache or click Refresh. Zero background polling and zero console flashes when browsing other tabs.

5. Direct Disk Export & Bilingual UI

  • Real .md & .csv Export: Writes timestamped reports directly to disk (default: your system Downloads folder, with UTF-8 BOM on CSV so Excel displays Chinese cleanly).

  • Editable Export Folder: Click the folder icon next to MD / CSV to enter any custom directory or pick quick presets (Downloads, Desktop, Documents, Plugin Folder).

  • EN / 中文 Toggle: Instant bilingual interface with persisted preferences (prefs.json).


Screenshots

Analytics & Models

Analytics & Models — KPI overview, 6-month token heatmap, per-model breakdown, and local telemetry footprint

Recent Sessions Explorer

Recent Sessions — Searchable session table with subagent badges, model tags, context size, and token totals

Live Session

Live Session — Real-time context gauge, token breakdown, 24-step cache trend, and per-step metrics

Tool Calls

Tool Calls — Tool category donut chart, call density metrics, and top-used tool ranking

Official CLI Quota

Official Quota — Real-time Gemini and Claude/GPT quota pools fetched via the official agy CLI


Requirements

  • Google Antigravity (Desktop or IDE supporting MCP Apps)

  • Node.js >= 22.5 (uses built-in node:sqlite, zero native compilation required)

  • (Optional) Official Antigravity CLI (agy) installed in PATH if you want to use the CLI Quota tab


Installation

Windows (PowerShell):

git clone https://github.com/213za-we/agy-pulse.git "$env:USERPROFILE\.gemini\config\plugins\agy-pulse"

macOS / Linux:

git clone https://github.com/213za-we/agy-pulse.git "$HOME/.gemini/config/plugins/agy-pulse"

Then restart Antigravity (or refresh MCP servers) and open AGY Pulse from the sidebar / aux pane, or ask the agent:

Open AGY Pulse dashboard

Option 2: Download Release Archive

  1. Download the latest release from Releases.

  2. Extract it into ~/.gemini/config/plugins/agy-pulse/ (ensure plugin.json sits directly inside that folder).

  3. Restart Antigravity.


Runtime Files & Data Locations

Only 6 files are required at runtime:

File

Purpose

plugin.json

Antigravity plugin manifest

mcp_config.json

Stdio MCP server definition (node --no-warnings server.mjs)

server.mjs

Zero-dependency MCP Apps (SEP-1865) stdio server

collector.mjs

Read-only local SQLite + transcript telemetry collector & CLI quota parser

ui.html

Self-contained bundled dashboard UI

assets/logo.svg

Plugin icon

User preferences and quota cache are stored outside the plugin code directory in Antigravity's ${PLUGIN_DATA} folder (~/.gemini/antigravity/plugin_data/agy-pulse/):

  • prefs.json — saved UI language (en / zh) and custom export directory

  • quota-cache.json — last official agy -p /usage snapshot (3-minute soft TTL)


Development & Building from Source

The compiled ui.html is checked into the repo so users can install without running npm install. To modify the frontend UI:

npm install
# Edit src/app.mjs or styles inside scripts/build-ui.mjs
npm run build
# Optionally sync the 6 runtime files to your local Antigravity plugins folder
npm run sync:local

Privacy & Security

  • Read-only access to local Antigravity conversation metadata and transcripts.

  • Never modifies Antigravity binaries, app.asar, or user settings outside ${PLUGIN_DATA}.

  • No external network requests from server.mjs or ui.html (the only network call happens inside the official agy binary when you check CLI quota).

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables users to inspect real-time prompt cache hit rate, task throughput, and per-model token usage for Antigravity sessions and 5h/1d/7d windows through an interactive local dashboard. It combines lifecycle hook timing with local transcript data, with zero outbound network telemetry.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables real-time monitoring of Google Antigravity context usage with detailed Messages/Thinking/Tool breakdowns, cache and checkpoint telemetry, one-click compaction, and smart suggested replies across Desktop, IDE, and CLI/tmux.
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables users to view live session context window occupancy, step-by-step growth charts, and compaction thresholds alongside a GitHub-style daily token usage heatmap with per-day, per-model, and per-session breakdowns and persistent filters. All data is read strictly read-only from local Antigravity transcripts with no network calls, telemetry, or token overhead.
      MIT