Feature Request: Expose Token Quota & Usage Telemetry API to Agent Runtime

Use Case & Problem:
When running autonomous, scheduled background agents (e.g., continuous refactoring, automated testing, or repo maintenance), agents operate completely blind to remaining token allowances. Users aiming to fully utilize their weekly quota allowance cannot programmatically pace their background workloads. Without usage awareness, automated jobs either underutilize the allowance or hit sudden 429 quota exhaustion errors.

Proposed Solution:

  1. Provide a built-in read-only agent tool or environment hook (e.g., get_quota_status() or an injected ANTIGRAVITY_QUOTA_REMAINING variable) exposing:
    • Remaining weekly allowance (percentage or token estimate)
    • Current rolling window rate-limit headroom
    • Time until the next quota refresh
  2. (Optional) An agent runtime policy allowing autonomous agents to dynamically adapt model tier (e.g., fallback to Flash when quota < 15%, or step up to Pro/Ultra when surplus exists near the reset period).

Impact:
Enables robust, unattended, 24/7 autonomous coding workflows that maximize subscription utility without unexpected rate-limit disruptions.