Skip to content

Add Antigravity (agy) agent usage collector, brand icons, and bar icon support - #11621

Closed
sergioMG25 wants to merge 1 commit into
omacom:quattrofrom
sergioMG25:feat/antigravity-agent
Closed

sergioMG25 wants to merge 1 commit into
omacom:quattrofrom
sergioMG25:feat/antigravity-agent

Conversation

@sergioMG25

Copy link
Copy Markdown

Summary

This PR adds native support for Antigravity (AGY CLI) to Omarchy's omarchy.agents bar widget and ecosystem:

  1. Usage & Limits Collector (bin/omarchy-agent-usage-agy):

    • Parses local Antigravity session databases from ~/.gemini/antigravity and ~/.gemini/antigravity-cli.
    • Pure Python protobuf decoder for token usage, model distribution, 7-day usage chart (recentDays), active sessions, and rolling 5h (Session) and 7d (Weekly) limits.
    • High-performance caching in ~/.cache/omarchy/agent-usage/agy-cache.json (~12ms execution time).
    • Conforms to Omarchy CLI metadata conventions (# omarchy:summary, etc.).
  2. Official SVG Marks:

    • shell/plugins/agents/assets/agy.svg (white mark for dark backgrounds) and agy-light.svg (dark mark for light surfaces).
    • Compatibility symlinks for antigravity.svg and antigravity-light.svg.
  3. Bar Icon Rendering (shell/plugins/agents/Panel.qml):

    • Enhances BarIconButton with iconComponent to dynamically render the active provider's SVG mark on the bar with automatic fallback to text glyph.
  4. Plugin Manifest & Docs:

    • Registers agy enabled by default in manifest.json.
    • Documents collector and limits in README.md.
  5. Automated Scanner Test:

    • Added test/shell.d/agent-usage-agy-scanner-test.sh verifying the record structure, schema, and limits.

Verification

  • Tested with test/cli and test/shell.d/agent-usage-agy-scanner-test.sh.
  • Tested with omarchy agent usage-update.
  • Tested in live desktop bar widget.

…n support

- Implement bin/omarchy-agent-usage-agy to collect Antigravity/AGY usage,
  model token distributions, 7-day volume, and rolling 5h/7d limits
- Add SVG marks (agy.svg and agy-light.svg) with antigravity compatibility links
- Enhance Panel.qml BarIconButton with iconComponent to render the active
  provider mark on the bar with fallback to text glyph
- Register agy in agents manifest.json and document in README.md
- Add automated test in test/shell.d/agent-usage-agy-scanner-test.sh
@sergioMG25

sergioMG25 commented Sep 13, 2026 •

Copy link
Copy Markdown
Author
image

Agy integrated as agent

@bjarneo

bjarneo commented Sep 21, 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.

@bjarneo bjarneo closed this Sep 21, 2026
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.

2 participants