Repository navigation
feat(agents): Add Antigravity agent usage and quota collector - #8911
GaleasAndres wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
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.
|
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. |
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
bin/omarchy-agent-usage-agy): Recursively parses session databases and transcripts under~/.gemini/antigravity-cli/brainand~/.gemini/antigravity/brain, normalizing model names (e.g.Gemini 3.7 Flash) and calculating prompt counts, active days, and token volumes.Default_keyring.keyring).loadCodeAssistto discover active user tiers (Google AI Pro).retrieveUserQuotaSummaryto track both rolling 5-hour session limits and 7-day weekly limits with real-time countdown timers.shell/plugins/agents/assets/agy.svg): Custom Antigravity icon for the top bar.test/shell.d/agent-usage-agy-scanner-test.sh): Comprehensive 11-step unit test suite asserting data fidelity and quota caching.Testing
./test/cli(passes 100%)bash test/shell.d/agent-usage-agy-scanner-test.sh(all 11 tests pass)Functionality designed to work seamlessly with migration from Gemini CLI to Antigravity CLI -> #6900