Skip to content

[Feature]: Restore Antigravity limits through the official CLI /usage output #43730

Not planned

Description

@PabloValencia14

Summary

Now that Antigravity quota polling was removed in #43026, consider restoring Usage → Limits through the official Antigravity CLI's own usage output, if maintainers confirm this is a supported interface and stays within Google's external-client policy.

A prior report tested the command below against the T3-managed runtime and converted its JSON into T3 quota windows:

agy --print /usage --output-format json --log-file /dev/null

This is /usage, not /status. The report says it returned Gemini 5-hour/weekly, shared Claude/GPT 5-hour/weekly, and Gemini 4 Argon weekly windows. It used no model tokens in the reporter's check. See #34327, especially the comments on Nov 14 and Nov 19.

Why revisit this

#43026 correctly removed direct calls to Google's internal quota APIs because maintainers said those calls could put user accounts at risk, and noted limits could return once Antigravity exposes them over ACP. Could the official CLI's own /usage command provide a supported route without T3 constructing private HTTP requests or reading OAuth secrets itself?

Suggested implementation

  • Invoke the configured Antigravity binary for each provider instance, using that instance's isolated profile/environment and the supported CLI interface only.
  • Parse the CLI's JSON output into the existing provider-independent quota-window format.
  • Do not call retrieveUserQuotaSummary / fetchAvailableModels, inspect OS keyrings, or read legacy OAuth token files.
  • Cache and coalesce refreshes; apply a short timeout and bound output so checking four accounts does not spawn repeated overlapping processes.
  • On unsupported CLI versions, malformed output, or nonzero exit, report limits as unavailable (with a useful reason); never retain stale values as current.
  • Keep thread execution unchanged and document which Antigravity CLI versions support this command.

The implementation should be gated on maintainer confirmation that agy --print /usage --output-format json is an acceptable supported interface under Google's policy. If not, please clarify whether an ACP capability for subscription limits is planned.

Resource impact

The reported test returned quota data without model tokens, so this should not consume inference quota. It will still start a local CLI process and make whatever status request that CLI uses. A cached, bounded refresh per account should keep CPU and network overhead modest; please confirm the command's polling behavior and any rate limits before enabling automatic frequent refreshes.

Related

Activity

  1. juliusmarminge commented on Nov 26, 2026

    @juliusmarminge
    Member

    Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

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

Metadata

Metadata

Assignees

No one assigned

    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