akelabs/antigravity-pulse
Tentang
Live tok/s and context-capacity capsule beside Turbo in Google Antigravity 2.0
AI dan pembelajaran mesinYang dapat Anda lakukan
- 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.
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +1
- dalam 15 hari
- +10
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli
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
Why Client-Native? · Features · Quick Start · AI One-Click Skill · Privacy · Download
English · 简体中文
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 |
- Zero-Hardcode Dynamic Models, Real-Time Ceilings & Auto-Learned Memory: Reads model display names and server-enforced compaction ceilings directly from Antigravity's native
GeneratorMetadataand liveGetUserStatuscatalog (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 at256kand automatically unlock & remember512k/1Monce live usage crosses the old ceiling without compacting — with shadow sub-models filtered out and 0 repeated requests while idle. - 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.
- Official Restraint & Pure-DOM Security: Inherits the composer footer's native UI sans-serif font (
tabular-nums),6pxcorner radius, and Light/Darkshadow-mdelevation with a 3-tier muted Morandi capsule — rendered with zeroinnerHTMLfor strict CSP / Trusted Types safety. < 5msHealth Check, Fingerprint Self-Heal & 1-Line Restore: Automatically preserves a clean.orig.bakarchive backup on first injection (~20msatomic patch). Embedded version & SHA-256 fingerprint checks let--checkfinish in< 5ms,--ensureself-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%)➔Turboinside.agy-composer-footer— no squinting at tiny status-bar text. - Official
TurboPopover Aesthetics: Zero emojis, inherited UI sans-serif withtabular-nums,500/400font weights,6pxradius, Tailwindshadow-md, and instant Light/Dark theme adaptation. - True End-to-End
tok/s& Instant/compactCheckpoint Feedback: Measures full output tokens (thinking + response) over real generation wall time, plus character-level live delta estimation between snapshots; explicitly handles manual/compactand automaticCHECKPOINTsteps so the active baseline drops immediately after compaction (auto-calibrating on the next real snapshot without losing512k+remote unlocked ceilings), alongside dual-threshold anti-noise filtering (>5,000tokens &>= 25%drop), Undo immunity, and automatic clearing so subsequent>= 85%warnings are never masked. - 5-Hour Quota Pool & Reset Countdown: Accurately decodes Protobuf
Timestampobjects and sharedgemini/premium5h 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 |
![]() Know before it compacts |
Quick Start
AI One-Click Setup (Recommended): This repository includes a root
SKILL.mdcontract. 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/(oredge://extensions/), enable Developer mode, click Load unpacked, and select theantigravity-pulse-webfolder. - Tampermonkey: Install
antigravity-pulse.user.jsfrom that folder into Tampermonkey. The userscript runs on Google-hosted Antigravity pages only; for a web client served fromlocalhost/127.0.0.1, use the extension.
Zero Noise Guarantee: On non-Antigravity pages (Gmail, Google Search, Docs, YouTube, Cloud Console, or unrelated
localhostapps), the script exits immediately without hookingfetchor 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
-Confirmif 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)
- Install Node.js LTS (18 or newer), or run
winget install OpenJS.NodeJS.LTS. Open a new PowerShell window and check withnode --version. - Create
%USERPROFILE%\.gemini\tools\and putinstall-context-capsule.jsandcontext-capsule-payload.jsfrom Releases in it. - 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.apprequires administrator write permission, Terminal will prompt for your macOS login password (sudo). Append--confirmif you want a confirmation prompt before closing Antigravity. After official client updates or payload upgrades, re-run the setup line or run--ensurelocally 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)
- Install Node.js LTS (18 or newer), or run
/opt/homebrew/bin/brew install node. Open a new Terminal window and check withnode --version. - Create
~/.gemini/tools/and putinstall-context-capsule.jsandcontext-capsule-payload.jsfrom Releases in it. - 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.apprequires administrator write permission, Terminal will prompt for your macOS login password (sudo). Append--confirmif you want a confirmation prompt before closing Antigravity. After official client updates or payload upgrades, re-run the setup line or run--ensurelocally 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)
- Install Node.js LTS (18 or newer), or run
/usr/local/bin/brew install node. Open a new Terminal window and check withnode --version. - Create
~/.gemini/tools/and putinstall-context-capsule.jsandcontext-capsule-payload.jsfrom Releases in it. - 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.asarintegrity against the app bundle signature on macOS, patching applies a local ad-hoccodesignsignature. Uninstalling restores the originalapp.asarandInfo.plistso 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 freshAntigravity.appfrom the official.dmginto/Applications— all chats, sign-in state, and settings in~/Library/Application Support/Antigravityremain untouched.
Privacy & Security
- 100% Local & Same-Origin: Reads telemetry strictly from your own active Antigravity session in memory, using pure DOM construction (no
innerHTMLor global Trusted Types overrides). Zero external network requests, zero background daemons, zero analytics, zero telemetry servers. - Atomic Backup & Surgical
~20msPatch: Automatically saves a clean.orig.bakbackup before modifyingdist/preload.jsinsideapp.asarvia atomic temp-file rename, keeping all other 760+ application files untouched. On macOS, it updatesElectronAsarIntegrityinContents/Info.plistlocally and invokes the built-incodesigntool 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.
Jelajahi proyek terkait
Memuat…

