Antigravity Telemetry Exporter
Read local Antigravity telemetry, monitor live session/turn counts and quota status in the status bar, and export structured telemetry bundles to CSV or JSON.
Features
- Local Telemetry Indexing: Automatically discovers and reads local Antigravity IDE and CLI data roots (
auto, ide, cli, or all).
- Live Status Bar HUD: Displays indexed session/turn counts and live remaining quota percentage, with quick-action tooltip links to export or refresh.
- 3-File Export Bundle (CSV or JSON):
turns.csv / turns.json — Per-turn token usage (cached/non-cached input, output, thinking, response, context size, compactions, subagent flags, and timestamps).
sessions.csv / sessions.json — Per-conversation rollups (nesting depth, subagent role, model, token totals, cache rate, tool calls, commands, file reads/writes, and optional titles).
quota_snapshots.csv / quota_snapshots.json — Live 5-hour / 7-day quota snapshots polled from the local Antigravity Language Server.
- Programmatic API: Exposes
getSnapshot(), getQuota(), refresh(), and exportNow(options) from the activated extension for scripts or other extensions.
Commands
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and run:
Antigravity Telemetry Exporter: Export Telemetry — Pick CSV or JSON and a target folder to write the 3-file telemetry bundle.
Antigravity Telemetry Exporter: Refresh Now — Re-scan local Antigravity roots and refresh live quota data.
Antigravity Telemetry Exporter: Status Check — Show discovered data roots, indexed session/turn counts, and live quota connection status.
Extension Settings
| Setting |
Default |
Description |
antigravityTelemetryExporter.enabled |
true |
Enable background telemetry collection and status bar updates. |
antigravityTelemetryExporter.dataSource |
"auto" |
Which local Antigravity data roots to read (auto, ide, cli, all). |
antigravityTelemetryExporter.exportFormat |
"csv" |
Default 3-file export format (csv or json). |
antigravityTelemetryExporter.exportDirectory |
"" |
Default output folder for telemetry exports. Leave blank to prompt each time. |
antigravityTelemetryExporter.includeTitles |
true |
Include conversation titles in exported sessions data. |
antigravityTelemetryExporter.enableQuotaPolling |
true |
Poll the local Antigravity Language Server for live 5h/7d quota snapshots. |
antigravityTelemetryExporter.quotaRefreshIntervalSeconds |
60 |
Interval in seconds between live quota snapshot checks (15–3600). |
antigravityTelemetryExporter.sqlitePath |
"" |
Optional custom path to the sqlite3 CLI fallback binary. |
Development
npm test # Run unit tests
npm run lint:syntax # Check syntax across src/
npm run package # Build a .vsix package
See ARCHITECTURE.md for module boundaries and conventions.
License
Licensed under the MIT License. See THIRD_PARTY_NOTICES.md for attribution of code adapted from reference repositories.
| |