Skip to content
Projetos

akelabs/antigravity-pulse

Ver no GitHub

Sobre

Live tok/s and context-capacity capsule beside Turbo in Google Antigravity 2.0

IA e aprendizado de máquina

Como estes números são medidos

O que você pode fazer

  • Native Composer-Bar Layout: ⚡ XX tok/s ➔ Morandi Runway Capsule (31k/256k, 12.1%) ➔ Turbo inside .agy-composer-footer — no squinting at tiny status-bar text.
  • Official Turbo Popover Aesthetics: Zero emojis, inherited UI sans-serif with tabular-nums, 500/400 font weights, 6px radius, Tailwind shadow-md, and instant Light/Dark theme adaptation.
  • 5-Hour Quota Pool & Reset Countdown: Accurately decodes Protobuf Timestamp objects and shared gemini / premium 5h quota pools (Resets in 2h 40m) with strict cross-pool isolation.
  • Near-Compaction Warning: When context usage reaches >= 85%, the popover shows a quiet warning before automatic compaction kicks in.

Crescimento medido de estrelas

em 24 h
0
em 7 dias
+1
em 15 dias
+10
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Antigravity Pulse: live tok/s and context capacity beside Turbo

Antigravity Pulse

100% client-native composer-bar telemetry for Google Antigravity 2.0.
Live tok/s, a context-capacity capsule, prompt cache hit ratio, and the 5-hour quota countdown — right beside Turbo.
0 external background daemons · 0 local proxy ports · 0 SQLite database polling

Release Platform Node.js 18+ Zero dependencies

Why Client-Native? · Features · Quick Start · AI One-Click Skill · Privacy · Download
English · 简体中文

Antigravity Pulse demo


Why Client-Native?

Other context monitors typically rely on external background daemons — spinning up standalone Node.js or Python processes, opening local polling ports, or repeatedly scanning SQLite database files (state.vscdb and disk logs) to estimate context limits and token usage. That approach adds setup complexity, consumes extra background memory and disk I/O, and easily loses sync across multiple windows, Remote Agent cloud workspaces, or silent client updates.

Antigravity Pulse (AGY-Pulse) is built 100% client-native: 0 external background processes, 0 local proxy ports, and 0 SQLite database polling. It runs directly inside Antigravity's native renderer, reading in-memory session GeneratorMetadata and trajectory state same-origin (paired with React Fiber component isolation and passive stream inspection) so it merges seamlessly into the official composer bar:

Dimension External Daemon / DB-Polling Tools Antigravity Pulse (Client-Native)
Background Footprint Standalone Node.js / Python daemon + local polling port 0 external processes · 0 local ports (runs inside native renderer)
Telemetry Source High-frequency disk polling on state.vscdb / local logs Direct in-memory GeneratorMetadata & session state (0 disk I/O, 0 idle requests)
Context Ceiling & Models Hardcoded model allowlists or delayed log heuristics Zero-hardcode dynamic names & ceilings (80k / 256k / 512k / 840k / 1M+) with per-model memory
Multi-Window, Swarm & Cloud Prone to pane / subagent cross-talk; breaks in Remote / Web Per-pane & Swarm/subagent isolation across Local, Remote Agent & Browser Web
UI Integration Plain text tucked into the legacy bottom status bar Native .agy-composer-footer capsule right beside Turbo
Updates & Recovery Daemon lifecycle & shortcut maintenance; breaks on upgrades < 5ms health check + --ensure SHA-256 self-heal & .orig.bak 1-line restore
  1. Zero-Hardcode Dynamic Models, Real-Time Ceilings & Auto-Learned Memory: Reads model display names and server-enforced compaction ceilings directly from Antigravity's native GeneratorMetadata and live GetUserStatus catalog (clientModelConfigs / groupedModels) — automatically supporting newly released models (such as Gemini 4 Neon, Carbon, Hydrogen, or future models) without hardcoded allowlists. Local sessions auto-learn each model's observed real ceiling (512k, 840k, 1M+) so fresh 0-step chats start accurate; cloud/web sessions start at 256k and automatically unlock & remember 512k / 1M once live usage crosses the old ceiling without compacting — with shadow sub-models filtered out and 0 repeated requests while idle.
  2. True Multi-Window, Swarm Subagent & Local / Cloud / Web Isolation: Every chat pane isolates its own conversation ID from its React Fiber tree, and Swarm / subagent sessions strictly lock onto their own executed model, ceiling, and 5h quota pool instead of inheriting the parent composer's global model selector — preventing cross-talk across Windows & macOS (Apple Silicon & Intel) desktop clients, Remote Agent cloud workspaces, and the Browser Web client.
  3. Official Restraint & Pure-DOM Security: Inherits the composer footer's native UI sans-serif font (tabular-nums), 6px corner radius, and Light/Dark shadow-md elevation with a 3-tier muted Morandi capsule — rendered with zero innerHTML for strict CSP / Trusted Types safety.
  4. < 5ms Health Check, Fingerprint Self-Heal & 1-Line Restore: Automatically preserves a clean .orig.bak archive backup on first injection (~20ms atomic patch). Embedded version & SHA-256 fingerprint checks let --check finish in < 5ms, --ensure self-heal only when overwritten or outdated (skipping restarts when already up to date), and a single command restore the original bundle cleanly.

Features

  • Native Composer-Bar Layout: ⚡ XX tok/s ➔ Morandi Runway Capsule (31k/256k, 12.1%) ➔ Turbo inside .agy-composer-footer — no squinting at tiny status-bar text.
  • Official Turbo Popover Aesthetics: Zero emojis, inherited UI sans-serif with tabular-nums, 500/400 font weights, 6px radius, Tailwind shadow-md, and instant Light/Dark theme adaptation.
  • True End-to-End tok/s & Instant /compact Checkpoint Feedback: Measures full output tokens (thinking + response) over real generation wall time, plus character-level live delta estimation between snapshots; explicitly handles manual /compact and automatic CHECKPOINT steps so the active baseline drops immediately after compaction (auto-calibrating on the next real snapshot without losing 512k+ remote unlocked ceilings), alongside dual-threshold anti-noise filtering (>5,000 tokens & >= 25% drop), Undo immunity, and automatic clearing so subsequent >= 85% warnings are never masked.
  • 5-Hour Quota Pool & Reset Countdown: Accurately decodes Protobuf Timestamp objects and shared gemini / premium 5h quota pools (Resets in 2h 40m) with strict cross-pool isolation.
  • Near-Compaction Warning: When context usage reaches >= 85%, the popover shows a quiet warning before automatic compaction kicks in.
  • 1-Click EN ⇄ 中文 Toggle: Follows your system language on first run, and clicking the capsule switches popover language anytime (your choice is remembered).
Every number, one hover away
Every number, one hover away
Know before it compacts
Know before it compacts

Quick Start

AI One-Click Setup (Recommended): This repository includes a root SKILL.md contract. Drop this repo URL into Antigravity / Claude Code / Codex and ask "Install Antigravity Pulse" (or "Export the zero-patch web version only" / "Check and update Antigravity Pulse") — the agent detects your OS/arch, asks before restarting, and handles setup cleanly.

Prefer not to modify desktop app.asar? Start with the Zero-Patch Browser Web Client right below — zero binary changes, works on Windows / macOS / Linux.

0. Zero-Patch Browser Web Client (Chrome / Edge / Tampermonkey)

If you use Antigravity in the browser — or want to try the full experience with zero changes to desktop app.asar — export the browser adapters to ~/.gemini/tools/antigravity-pulse-web/ (%USERPROFILE%\.gemini\tools\antigravity-pulse-web\ on Windows; desktop installs also export this automatically):

  • Windows (PowerShell):
    $s = "$env:TEMP\agy-pulse-setup.ps1"; Invoke-WebRequest "https://github.com/akelabs/antigravity-pulse/releases/latest/download/setup.ps1" -OutFile $s -UseBasicParsing; powershell -NoProfile -ExecutionPolicy Bypass -File "$s" -Action web; Remove-Item $s -ErrorAction SilentlyContinue
    
  • macOS / Linux (Terminal):
    s="$(mktemp -t agy-pulse.XXXXXX)" && curl -fsSL https://github.com/akelabs/antigravity-pulse/releases/latest/download/setup.sh -o "$s" && bash "$s" --web; rm -f "$s"
    

Then load either adapter:

  • Chrome / Edge Extension (Recommended): open chrome://extensions/ (or edge://extensions/), enable Developer mode, click Load unpacked, and select the antigravity-pulse-web folder.
  • Tampermonkey: Install antigravity-pulse.user.js from that folder into Tampermonkey. The userscript runs on Google-hosted Antigravity pages only; for a web client served from localhost / 127.0.0.1, use the extension.

Zero Noise Guarantee: On non-Antigravity pages (Gmail, Google Search, Docs, YouTube, Cloud Console, or unrelated localhost apps), the script exits immediately without hooking fetch or running background timers.

1. Desktop Client (Windows)

One-line setup (recommended): open PowerShell and paste this line. It downloads setup.ps1, which checks for Node.js 18+ (and offers to install the LTS version with winget if it is missing), fetches the latest install-context-capsule.js and context-capsule-payload.js into %USERPROFILE%\.gemini\tools\, backs up the original app.asar, patches app.asar atomically in ~20ms, and restarts Antigravity cleanly:

$s = "$env:TEMP\agy-pulse-setup.ps1"; Invoke-WebRequest "https://github.com/akelabs/antigravity-pulse/releases/latest/download/setup.ps1" -OutFile $s -UseBasicParsing; powershell -NoProfile -ExecutionPolicy Bypass -File "$s"; Remove-Item $s -ErrorAction SilentlyContinue

Antigravity restarts automatically during setup (append -Confirm if you prefer an interactive prompt before closing it), so save your work first. If you are connected through remote desktop, the connection will drop only if you run inside an Antigravity terminal.

Prefer clicking or offline install? Download setup.ps1, setup.cmd, install-context-capsule.js, and context-capsule-payload.js from Releases into one folder and double-click setup.cmd (it automatically detects the local .js files and installs offline without re-downloading).

Check status in < 5ms (useful after silent Antigravity client updates — re-run the install command anytime an official update overwrites app.asar):

$s = "$env:TEMP\agy-pulse-setup.ps1"; Invoke-WebRequest "https://github.com/akelabs/antigravity-pulse/releases/latest/download/setup.ps1" -OutFile $s -UseBasicParsing; powershell -NoProfile -ExecutionPolicy Bypass -File "$s" -Action check; Remove-Item $s -ErrorAction SilentlyContinue
Manual setup (if you'd rather not run the script)
  1. Install Node.js LTS (18 or newer), or run winget install OpenJS.NodeJS.LTS. Open a new PowerShell window and check with node --version.
  2. Create %USERPROFILE%\.gemini\tools\ and put install-context-capsule.js and context-capsule-payload.js from Releases in it.
  3. Run:
node "$HOME\.gemini\tools\install-context-capsule.js"            # install or update (add --confirm to prompt before restart)
node "$HOME\.gemini\tools\install-context-capsule.js" --check    # status

2. Desktop Client (macOS — Apple Silicon: M1 / M2 / M3 / M4 · ARM64)

One-line setup (recommended): open Terminal and paste this line. If your shell is running under Rosetta 2, it automatically switches back to native arm64, prioritizes /opt/homebrew/bin for Node.js 18+ (offering to install LTS with Homebrew if missing), downloads install-context-capsule.js and context-capsule-payload.js into ~/.gemini/tools/, verifies Apple Silicon architecture compatibility, backs up the original app.asar and Info.plist, patches Antigravity.app atomically in ~20ms, updates ElectronAsarIntegrity, clears stale caches, performs local ARM64 ad-hoc re-signing (codesign), and restarts Antigravity cleanly:

s="$(mktemp -t agy-pulse.XXXXXX)" && curl -fsSL https://github.com/akelabs/antigravity-pulse/releases/latest/download/setup.sh -o "$s" && bash "$s" --arch arm64; rm -f "$s"

If /Applications/Antigravity.app requires administrator write permission, Terminal will prompt for your macOS login password (sudo). Append --confirm if you want a confirmation prompt before closing Antigravity. After official client updates or payload upgrades, re-run the setup line or run --ensure locally for fingerprint-verified self-healing.

Check status in < 5ms (useful after silent Antigravity client updates):

s="$(mktemp -t agy-pulse.XXXXXX)" && curl -fsSL https://github.com/akelabs/antigravity-pulse/releases/latest/download/setup.sh -o "$s" && bash "$s" --arch arm64 --check; rm -f "$s"

Prefer offline or double-click install? Download setup.command, setup.sh, install-context-capsule.js, and context-capsule-payload.js from Releases into one folder. Because browser-downloaded scripts do not carry macOS executable permissions by default, run chmod +x setup.command setup.sh && xattr -c setup.command setup.sh once in Terminal to enable double-clicking setup.command (or simply run bash setup.sh --offline --arch arm64 directly in Terminal).

Manual setup (if you'd rather not run the script)
  1. Install Node.js LTS (18 or newer), or run /opt/homebrew/bin/brew install node. Open a new Terminal window and check with node --version.
  2. Create ~/.gemini/tools/ and put install-context-capsule.js and context-capsule-payload.js from Releases in it.
  3. Run:
node ~/.gemini/tools/install-context-capsule.js --arch arm64            # install or update
node ~/.gemini/tools/install-context-capsule.js --arch arm64 --check    # status

3. Desktop Client (macOS — Intel x86_64)

One-line setup (recommended): open Terminal and paste this line. It prioritizes /usr/local/bin for Node.js 18+ (offering to install LTS with Homebrew if missing), downloads install-context-capsule.js and context-capsule-payload.js into ~/.gemini/tools/, verifies Intel architecture compatibility, backs up the original app.asar and Info.plist, patches Antigravity.app atomically in ~20ms, updates ElectronAsarIntegrity, clears stale caches, performs local ad-hoc re-signing (codesign), and restarts Antigravity cleanly:

s="$(mktemp -t agy-pulse.XXXXXX)" && curl -fsSL https://github.com/akelabs/antigravity-pulse/releases/latest/download/setup.sh -o "$s" && bash "$s" --arch intel; rm -f "$s"

If /Applications/Antigravity.app requires administrator write permission, Terminal will prompt for your macOS login password (sudo). Append --confirm if you want a confirmation prompt before closing Antigravity. After official client updates or payload upgrades, re-run the setup line or run --ensure locally for fingerprint-verified self-healing.

Check status in < 5ms (useful after silent Antigravity client updates):

s="$(mktemp -t agy-pulse.XXXXXX)" && curl -fsSL https://github.com/akelabs/antigravity-pulse/releases/latest/download/setup.sh -o "$s" && bash "$s" --arch intel --check; rm -f "$s"

Prefer offline or double-click install? Download setup.command, setup.sh, install-context-capsule.js, and context-capsule-payload.js from Releases into one folder. Run chmod +x setup.command setup.sh && xattr -c setup.command setup.sh once in Terminal to enable double-clicking setup.command, or run bash setup.sh --offline --arch intel directly in Terminal.

Manual setup (if you'd rather not run the script)
  1. Install Node.js LTS (18 or newer), or run /usr/local/bin/brew install node. Open a new Terminal window and check with node --version.
  2. Create ~/.gemini/tools/ and put install-context-capsule.js and context-capsule-payload.js from Releases in it.
  3. Run:
node ~/.gemini/tools/install-context-capsule.js --arch intel            # install or update
node ~/.gemini/tools/install-context-capsule.js --arch intel --check    # status

4. Uninstall & Full Recovery

Restore the unpatched app.asar (and Info.plist on macOS) from .orig.bak backup — or strip the hook cleanly if no backup exists — clean up local Pulse files in ~/.gemini/tools/, and restart Antigravity:

Windows (PowerShell):

$s = "$env:TEMP\agy-pulse-setup.ps1"; Invoke-WebRequest "https://github.com/akelabs/antigravity-pulse/releases/latest/download/setup.ps1" -OutFile $s -UseBasicParsing; powershell -NoProfile -ExecutionPolicy Bypass -File "$s" -Action uninstall; Remove-Item $s -ErrorAction SilentlyContinue

macOS — Apple Silicon (Terminal):

s="$(mktemp -t agy-pulse.XXXXXX)" && curl -fsSL https://github.com/akelabs/antigravity-pulse/releases/latest/download/setup.sh -o "$s" && bash "$s" --arch arm64 --uninstall; rm -f "$s"

macOS — Intel (Terminal):

s="$(mktemp -t agy-pulse.XXXXXX)" && curl -fsSL https://github.com/akelabs/antigravity-pulse/releases/latest/download/setup.sh -o "$s" && bash "$s" --arch intel --uninstall; rm -f "$s"

Or, with the files already on disk (works completely offline): node ~/.gemini/tools/install-context-capsule.js --uninstall --clean (node "$HOME\.gemini\tools\install-context-capsule.js" --uninstall --clean in Windows PowerShell; omit --clean if you want to keep the .js files in ~/.gemini/tools/).

In the browser, remove the extension from chrome://extensions/ (or edge://extensions/), or delete the script in Tampermonkey.

macOS Signature Note: Because Electron verifies app.asar integrity against the app bundle signature on macOS, patching applies a local ad-hoc codesign signature. Uninstalling restores the original app.asar and Info.plist so Antigravity launches normally, but cannot locally recreate Apple's original Developer ID certificate (which may affect built-in auto-updates or macOS TCC permission prompts). To restore the official vendor signature at any time, drag a fresh Antigravity.app from the official .dmg into /Applications — all chats, sign-in state, and settings in ~/Library/Application Support/Antigravity remain untouched.


Privacy & Security

  • 100% Local & Same-Origin: Reads telemetry strictly from your own active Antigravity session in memory, using pure DOM construction (no innerHTML or global Trusted Types overrides). Zero external network requests, zero background daemons, zero analytics, zero telemetry servers.
  • Atomic Backup & Surgical ~20ms Patch: Automatically saves a clean .orig.bak backup before modifying dist/preload.js inside app.asar via atomic temp-file rename, keeping all other 760+ application files untouched. On macOS, it updates ElectronAsarIntegrity in Contents/Info.plist locally and invokes the built-in codesign tool for local ad-hoc re-signing without uploading any data.

License

Copyright © 2026 Antigravity Pulse Authors. All rights reserved.

Release packages are provided free of charge for personal and individual developer use only. Redistribution, re-hosting, modified re-publishing, or commercial bundling without prior written permission is prohibited.

Antigravity Pulse is an independent community project and is not affiliated with or endorsed by Google.

Explore projetos relacionados

Carregando…