Skip to content

Add Antigravity (agy) agent usage collector and test suite - #8479

Closed
theMindDeveloper wants to merge 2 commits into
omacom:quattrofrom
theMindDeveloper:add-agy-usage-collector
Closed

theMindDeveloper wants to merge 2 commits into
omacom:quattrofrom
theMindDeveloper:add-agy-usage-collector

Conversation

@theMindDeveloper

Copy link
Copy Markdown

Summary

This PR adds the missing omarchy-agent-usage-agy collector and test suite for the Antigravity (agy) coding agent, completing its integration with Omarchy's omarchy.agents status bar widget and panel.

Changes

  • bin/omarchy-agent-usage-agy: Implements the usage collector for Antigravity (agy). It extracts local prompt counts and session activity from ~/.gemini/antigravity-cli/history.jsonl, merges Google/Gemini provider usage from OpenCode SQLite databases, and includes pi/omp Google sessions.
  • test/shell.d/agent-usage-agy-scanner-test.sh: Adds automated test coverage verifying ID reporting, prompt/session parsing, OpenCode provider merging, and concurrent write resilience.
  • shell/plugins/agents/README.md: Updates the agent collectors reference table to include agy.

Fixes #8477

* Implement bin/omarchy-agent-usage-agy to collect usage statistics from
  ~/.gemini/antigravity-cli/history.jsonl, opencode Google sessions,
  and pi/omp Google sessions.
* Add unit test suite test/shell.d/agent-usage-agy-scanner-test.sh.
* Document agy collector in shell/plugins/agents/README.md.

Fixes omacom#8477
Copilot AI balanced review requested due to automatic review settings August 26, 2026 23:30

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 collection for the agents status widget and panel.

Changes:

  • Collects Antigravity, Pi/OMP, and OpenCode usage.
  • Adds scanner and concurrency tests.
  • Documents the new collector.

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 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
bin/omarchy-agent-usage-agy Implements the Antigravity collector.
test/shell.d/agent-usage-agy-scanner-test.sh Tests history, OpenCode, and cache writes.
shell/plugins/agents/README.md Documents the agy collector.

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

Comment thread test/shell.d/agent-usage-agy-scanner-test.sh
@dhh

dhh commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Thanks! Antigravity is coming in through #14039 (from #11989, which reads the real quota from Google's API rather than estimating tokens per prompt). Closing in favor of that.

@dhh dhh closed this Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate default Google agent integration from deprecated Gemini CLI to Antigravity (agy)

4 participants