Skip to content

[Feature]: Show Antigravity quotas using the documented CLI status-line feed #50402

Todo

Description

@gentslava

Problem or use case

Users of Gemini through Antigravity lost the remaining-quota display in Orca after #50137 removed background agy -p /usage polling. We'd like to see the current account's Gemini quota and reset time in the Left/Used usage menu while keeping that background polling removed.

Proposed solution

Use the documented Antigravity CLI status-line payload as an opt-in source for interactive Antigravity terminals. Google supplies the signed-in account and quota buckets with the remaining fraction and reset time. Send only the needed fields to Orca, associate each reading with its host and account, and show actual available windows with their freshness. Preserve the user's existing status-line configuration. Keep the readout unavailable if there is no usable reading for the selected account.

Alternatives or additional context

Google documents interactive /usage for manual viewing. Google Antigravity issue #1045 tracks provider quota reporting over ACP. A native ACP chat can use a reading from the same account and host when that identity can be verified. ACP-only quota refresh needs a supported server capability. Related to the mobile quota view in #50140.

Activity

  1. TommyFang2077 commented on Nov 28, 2026

    @TommyFang2077

    +1 on Linux (Ubuntu 24.04, Orca v1.4.280).

    Using the documented Antigravity CLI status-line JSON payload as an opt-in source is a very clean and policy-compliant way to restore the 5h/weekly quota & reset time readout in Orca's usage menu without background agy -p /usage polling. Would love to see this implemented!

  2. wofantks commented on Nov 28, 2026

    @wofantks

    +1 from Windows. On Orca 1.4.280 with Antigravity CLI (agy) 1.5.18, checking the remaining quota means switching from Orca Chat to an interactive agy terminal and running /usage.

    Could the Windows desktop status bar show Antigravity's remaining quota and reset time, including the 5-hour and weekly windows when available? I saw that #51483 currently targets local macOS and Linux. I'd appreciate a Windows follow-up that uses the documented status-line feed or another supported source and keeps background quota polling disabled.

  3. 0xAlbertChen commented on Nov 29, 2026

    @0xAlbertChen

    +1 for restoring Antigravity quota monitoring.

    Antigravity quota tracking is particularly important for my multi-agent orchestration workflow.

    I understand the account safety concerns behind #50137 and support using an officially supported mechanism instead of background agy -p /usage polling.

    Please restore support for:

    • 5-hour and weekly quota windows.
    • Remaining quota percentages and exact reset timestamps.
    • Per-account and per-host quota tracking.
    • Status bar and AI Provider Accounts integration.
    • Machine-readable quota data via CLI and RPC.
    • Data freshness timestamps and explicit unavailable states.

    I would also appreciate continued development of #51483.

    Quota visibility is not merely a UI convenience. It is a critical requirement for intelligent agent scheduling and workload distribution.

  4. EwgenyKuzmenko commented on Nov 30, 2026

    @EwgenyKuzmenko
    Contributor

    Following up on this one. We looked at whether quota can be restored through ACP, and at what already exists.

    Why not ACP. agy acp reports per-turn and context token usage, but not plan quota (5h / weekly windows, reset time). That gap is tracked upstream in google-antigravity/antigravity-cli#1045 and is still open. Google also told other ACP clients that even read-only agy -p /usage isn't supported outside agy acp, which matches why #50137 removed it. We closed our PR restoring that read (#52211) for the same reason.

    Prior art. #51483 implemented this issue's proposal (opt-in, status-line feed, no agy runs, no extra Google requests) and was closed by its author on 2026-11-29 without maintainer review. It's a good base:

    • Opt-in switch under Settings → AI Provider Accounts → Antigravity, off by default.
    • It points statusLine.command in ~/.gemini/antigravity-cli/settings.json at a managed script that passes agy's payload through unchanged to the user's existing command, and posts a copy to the local agent-hook server (throttled to once per 15 s per pane).
    • Readings stay in memory only, labeled with the payload's account, and are cleared when the account changes.
    • Restore on disable is exact, and the install refuses unsafe files (comments, duplicate keys, a status line the user turned off).

    Limits of this approach.

    • Quota is only fresh while an interactive agy is open in an Orca terminal. Native ACP chats can't refresh it, so the UI must show the reading's age and stay empty without one.
    • Editing a user's settings.json is the riskiest part and needs careful review.
    • Windows needs its own script variant. feat(antigravity): show agy quota from agy's own status line, without running agy #51483 only covered macOS/Linux, and SSH/WSL hosts need the script installed on the host.

    Questions for maintainers and the community:

    1. Is a status-line feed acceptable from a Google-policy standpoint? Orca would run nothing and ask Google for nothing beyond what the user's own interactive agy already does.
    2. Opt-in and off by default, as in feat(antigravity): show agy quota from agy's own status line, without running agy #51483?
    3. Should this land first for local macOS/Linux, with SSH, WSL and Windows as follow-ups?
    4. Is anyone from feat(antigravity): show agy quota from agy's own status line, without running agy #51483 or elsewhere already working on it? We'd rather build on it than duplicate.

    No code is planned until there's agreement here.

  5. self-assigned this
    on Nov 30, 2026
  6. AlexRen94 commented on Nov 30, 2026

    @AlexRen94

    A data point for question 1 and for the "editing settings.json is the riskiest part" limit.

    agy already writes the latest status-line quota to disk at ~/.gemini/antigravity-cli/cache/statusline_quota.json. I've seen this with agy 1.5.20 on macOS. The file is rewritten whenever an interactive agy refreshes its status line, for example after /usage. Here is its content, with values trimmed:

    {
      "saved_at": 1795948826,
      "quota": {
        "gemini-5h":     { "remaining_fraction": 0.9086, "reset_time": "2026-11-29T13:25:19Z", "reset_in_seconds": 9892 },
        "gemini-weekly": { "remaining_fraction": 0.7666, "reset_time": "2026-12-03T08:47:44Z", "reset_in_seconds": 338837 },
        "3p-5h":         { "remaining_fraction": 1,      "reset_time": "1970-01-01T00:00:00Z", "reset_in_seconds": 0 },
        "3p-weekly":     { "remaining_fraction": 0.1875, "reset_time": "2026-12-02T07:25:05Z", "reset_in_seconds": 247478 }
      }
    }

    The buckets have the same shape as the documented quota field of the status-line payload. If Orca only read this file, it could show the same readout as #51483 with less to get wrong:

    • Orca runs nothing and sends nothing to Google. It reads a file that the user's own interactive agy has already written.
    • It needs no change to settings.json, no managed statusLine.command script, and no restore logic when the feature is turned off.
    • Freshness comes from saved_at. A bucket whose reset_time has passed is stale, and a 1970-01-01 reset time means that window hasn't started.
    • It is a plain file read, so no per-OS script variant is needed. On Windows I'd expect the same path under the user profile, but I haven't checked that. SSH and WSL hosts could read the file on the host, like other host-side files.

    Trade-offs:

    • The file itself isn't documented; only the payload is. Its shape could change. A strict parser that hides the readout when anything looks unexpected limits a format change to "no readout".
    • The file has no account field, so a reading can only be labelled as this host's last reading, not tied to an account. After the Antigravity account is switched in Orca, the reading should stay hidden until a newer saved_at arrives.
    • It has the same freshness limit as feat(antigravity): show agy quota from agy's own status line, without running agy #51483: the file only updates while an interactive agy is running.

    I've been running this approach locally as an Orca plugin: a trusted worker re-reads the file every 30 s and updates a status bar item. It works. Plugin items appear in the plugin area, though, not next to the built-in usage items, so the plugin can't stand in for a native provider (that's what #49026 asks for).

    If maintainers are happy with this direction (opt-in, read-only, local first, SSH and WSL as a follow-up), I can open a PR.

  7. ahang39 commented on Dec 1, 2026

    @ahang39

    One relevant update for question 1: Google's current Antigravity Additional Terms of Service, section 6, explicitly permit running the unmodified Antigravity harness through supported interfaces, including third-party UIs, headless CLI usage, and supported customization mechanisms.

    Since Google also documents the status-line JSON payload, including quota data, an opt-in, read-only integration that displays those quota fields in Orca appears consistent with the updated terms.

    Could the maintainers reconsider restoring quota visibility on that basis? The documented status-line feed seems like a particularly clean approach, without background agy -p /usage polling or direct requests using Antigravity credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions