Google Antigravity 5-Hour & Weekly Quota Tracker, iOS Widgets & Token Heatmap
Never hit a surprise rate limit mid-refactor: Multigravity reads your official local Antigravity account state to display live 5-hour and weekly quota gauges across all 5 active pools (Gemini 5h, Gemini Weekly, Claude 5h, Claude Weekly, and Gemini 4 Argon), projects burn-rate depletion ETAs, puts glanceable widgets on your iPhone Home Screen, Lock Screen, and CarPlay, and audits 20 weeks of Token consumption & Prompt Cache Hit(%).
1. Intelligent 5-Pool Quota Guard & Alert Engine
Implemented in internal/cockpit/quota_alert.go, the local gateway samples your quota pools every 30 seconds and deduplicates alerts across restarts so your phone only pings when action matters:
| Alert Type | Trigger Threshold | Anti-Noise Guard | Actionable Signal |
|---|---|---|---|
| Low Quota Warning & Critical | Default ≤20% (warn) and ≤5% (critical), customizable via QUOTA_ALERT_*_PERCENT |
Once per account × pool × reset cycle; multi-pool drops merged into 1 push | Includes rolling 60-minute depletion ETA on 5h/Argon pools when earlier than reset |
| Early Bonus Reset | Pool jumps back to ≥95% ahead of schedule (≥20m early on 5h/Argon, ≥2h early on weekly) | Requires meaningful jump (≥30% short / ≥25% weekly) to ignore jitter | Notifies you immediately when official bonus capacity refills |
| Idle Drop & Rapid Anomaly | Idle ≥20m drop (≥15% short / ≥5% weekly) or 15m rapid plunge (≥45% short / ≥15% weekly) | 4-hour cooldown per pool; suppressed if low-quota alert already fired | Spots runaway background loops or unexpected quota burns early |
| Prompt Cache Hit(%) Drop | Consecutive low cache-hit turns or idle cache expiry risk | Tracks real turn-level cached vs uncached tokens | Helps preserve high prompt-cache efficiency during long sessions |
2. 20-Week Token History Heatmap & Prompt Cache Efficiency
Through internal/cockpit/token_history.go, Multigravity builds a local 20-week activity heatmap across your Antigravity conversations:
- Daily & Model Breakdown: Compare input, output, and cached-read token volumes across Gemini and Claude models over 140 days without exporting data to third-party analytics.
- Burn-Rate Pacing Needles: Visually compare how fast you are burning a 5-hour or 7-day budget against the elapsed time in the reset window.
- iOS WidgetKit Support (
QuotaWidgetView.swift&AgentStatusWidgetView.swift): Pin small/medium Home Screen widgets, Lock Screen circular/rectangular gauges, or CarPlay dashboards.
3. Optional Multi-Account Cockpit Sync
If you maintain multiple local environments, run the built-in CLI setup command on your desktop gateway:
mgy cockpit
Every alert message is localized automatically in English, Simplified Chinese, or Japanese according to your paired device language.
4. Frequently Asked Questions
Does Multigravity require third-party billing API keys to display quota?
No. Multigravity reads the local quota telemetry already exposed by your official local Google Antigravity runtime — zero extra API keys, zero cloud scraping, and zero subscriptions.
Why does burn-rate ETA sometimes stay hidden?
To prevent noisy estimates right after a reset or with sparse usage, quota_alert.go only displays a depletion ETA when at least 3 samples span 15+ minutes, consumption exceeds 0.5%, and the projected depletion time arrives before the scheduled reset.
Can I customize the warning thresholds?
Yes. Override the default 20% warning and 5% critical thresholds with QUOTA_ALERT_WARN_PERCENT and QUOTA_ALERT_CRITICAL_PERCENT in your local gateway environment.