r/GoogleAntigravityCLI • u/Mad-Dog-UA • 15h ago
Tools agy 1.5.22 adds `agy usage` — clean CLI quota checks (--json / stream-json) for scripts and external agents
With Google's updated Terms now permitting unmodified agy to be called from other harnesses (headless -p or ACP), agy 1.5.22 just added a dedicated subcommand so scripts and external tools don't have to wrap agy -p "/usage":
agy usage --json
agy usage --output-format stream-jsonWe tested it on Windows 11 (paid Google AI Pro) to see how json vs stream-json behave and how quickly quotas update after a turn:
- Why
--jsonbeats text mode:--output-format textrounds to whole percentages, so small runs disappear.--jsonreturns exactremaining_fractionfloats (and reports"1970-01-01T00:00:00Z"for unused 100% buckets until a window starts). --jsonvsstream-json**:**--jsonprints a single object;stream-jsonemits two NDJSON lines (command_resultfollowed byresultwrapping the same payload).- Fast quota updates: Polling around a
Gemini 4 Hydrogenturn (every ~1 min) and twoClaude Opus 5.5runs (every 30s) showed deductions landing within 1 minute on Gemini and 17 seconds on Claude, with no delayed drift afterward.
In PowerShell 7+, you can pull the exact fields with:
(agy usage --json | ConvertFrom-Json).command.data.groups.buckets |
Select-Object id, remaining_fraction, reset_time(One minor leftover: command.data.groups[0].description in --json still mentions Orchestrator (Argon)*.)*
Full write-up (including agy conversations compact --dry-run, collapsed /config, and Desktop 2.37.0 drag-in chats): https://ai.win10.support/antigravity-desktop-2-37-0-cli-1-5-22-updates/