Skip to content

feat(agents): Add Antigravity agent usage and quota collector - #8911

Closed
GaleasAndres wants to merge 3 commits into
omacom:quattrofrom
GaleasAndres:feat/antigravity-usage-collector
Closed

GaleasAndres wants to merge 3 commits into
omacom:quattrofrom
GaleasAndres:feat/antigravity-usage-collector

Conversation

@GaleasAndres

@GaleasAndres GaleasAndres commented Aug 29, 2026 •

Copy link
Copy Markdown

Summary

Adds native usage telemetry, token metric tracking, and live quota polling for the Google Antigravity (agy) CLI agent into the Omarchy Agents desktop panel.

What's Changed

  • Transcript & History Token Scanner (bin/omarchy-agent-usage-agy): Recursively parses session databases and transcripts under ~/.gemini/antigravity-cli/brain and ~/.gemini/antigravity/brain, normalizing model names (e.g. Gemini 3.7 Flash) and calculating prompt counts, active days, and token volumes.
  • Keyring Credential Extraction: Reads OAuth credentials securely from GNOME Keyring (Default_keyring.keyring).
  • Dynamic Project & Tier Discovery: Queries loadCodeAssist to discover active user tiers (Google AI Pro).
  • 5-Hour & Weekly Quota Telemetry: Queries retrieveUserQuotaSummary to track both rolling 5-hour session limits and 7-day weekly limits with real-time countdown timers.
  • SVG Icon Asset (shell/plugins/agents/assets/agy.svg): Custom Antigravity icon for the top bar.
  • Automated Tests (test/shell.d/agent-usage-agy-scanner-test.sh): Comprehensive 11-step unit test suite asserting data fidelity and quota caching.

Testing

  • Ran ./test/cli (passes 100%)
  • Ran bash test/shell.d/agent-usage-agy-scanner-test.sh (all 11 tests pass)
  • Verified live in the running desktop top bar with real session data

Functionality designed to work seamlessly with migration from Gemini CLI to Antigravity CLI -> #6900

image

Copilot AI balanced review requested due to automatic review settings August 29, 2026 09:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Antigravity usage and quota telemetry to the Agents panel.

Changes:

  • Adds local usage scanning and quota polling.
  • Adds Antigravity branding.
  • Adds collector tests.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.

File Description
bin/omarchy-agent-usage-agy Implements usage collection and quota polling.
shell/plugins/agents/assets/agy.svg Adds the Antigravity icon.
test/shell.d/agent-usage-agy-scanner-test.sh Tests transcripts, history, and cached limits.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@GaleasAndres GaleasAndres changed the title Add Antigravity agent usage and quota collector feat(agents): Add Antigravity agent usage and quota collector Aug 30, 2026
@bjarneo

bjarneo commented Sep 20, 2026

Copy link
Copy Markdown
Member

Automated duplication check: this pull request looks similar to #8479, which covers the same Antigravity usage collector. I keep that one open and close this one to consolidate review.

If you feel this is the wrong decision, please open the PR again with a note on the difference.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants