---
title: Google Antigravity 5-Hour & Weekly Quota Tracker, iOS Widgets & Token Heatmap
canonical: https://multigravity.app/quota-widget.html
lang: en
version: 1.2.8
updated: 2026-11-28
---

# Google Antigravity 5-Hour & Weekly Quota Tracker, iOS Widgets & Token Heatmap

**Summary:** Multigravity reads local quota telemetry from your official Google Antigravity runtime — with zero extra API keys or billing accounts — 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**), project burn-rate depletion ETAs, render iOS Home/Lock Screen/CarPlay WidgetKit widgets, and audit **20 weeks of Token consumption & Prompt Cache Hit(%)**.

## 1. Intelligent 5-Pool Quota Guard (`internal/cockpit/quota_alert.go`)

Sampled every 30 seconds and deduplicated across restarts:

| Alert Type | Trigger Threshold | Anti-Noise Guard | Actionable Signal |
| :--- | :--- | :--- | :--- |
| Low Quota Warning & Critical | Default ≤20% (warn) and ≤5% (critical), customizable via `QUOTA_ALERT_WARN_PERCENT` / `QUOTA_ALERT_CRITICAL_PERCENT` | Once per account × pool × reset cycle; multi-pool drops merged into 1 push | Rolling 60-minute depletion ETA on 5h/Argon pools when earlier than reset |
| Early Bonus Reset | Pool refills to ≥95% ahead of schedule (≥20m early on 5h/Argon, ≥2h early on weekly) | Requires meaningful jump (≥30% short / ≥25% weekly) | Immediate push 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 | Catches runaway background loops early |
| Prompt Cache Hit(%) Drop | Consecutive low cache-hit turns or idle cache expiry risk | Tracks turn-level cached vs uncached tokens | Preserves high prompt-cache efficiency on long runs |

## 2. 20-Week Token History Heatmap & iOS WidgetKit

- **Local Activity Heatmap (`internal/cockpit/token_history.go`):** 140-day input, output, thinking, and cached-read token breakdown across Gemini and Claude models without exporting data externally.
- **Burn-Rate Pacing Needles:** Visual comparison of actual remaining quota vs even-pace elapsed time.
- **iOS WidgetKit (`QuotaWidgetView.swift`, `AgentStatusWidgetView.swift`):** Home Screen small/medium widgets, Lock Screen circular/rectangular gauges, and CarPlay mirroring.
- **Optional Multi-Account Cockpit Sync:** Configure via `mgy cockpit`. Alert messages auto-localize to `en` / `zh` / `ja` per paired device.
