Skip to content

Add an Antigravity collector to the agents usage panel - #9216

Closed
edneymatias wants to merge 1 commit into
omacom:quattrofrom
edneymatias:antigravity-agent-support
Closed

edneymatias wants to merge 1 commit into
omacom:quattrofrom
edneymatias:antigravity-agent-support

Conversation

@edneymatias

Copy link
Copy Markdown

Summary

  • agy/Antigravity is already a first-class default agent (ed7bae4, Replace Gemini coding agent with Antigravity #6900), but the omarchy.agents bar panel had no collector for it, so it never got a tab next to Claude, Codex, and Fireworks.
  • Adds bin/omarchy-agent-usage-antigravity: local prompt/session stats from ~/.gemini/antigravity-cli (history.jsonl, conversation_summaries.db), plus real rate limits from agy -p "/usage" --output-format json — the same call the CLI's own /usage slash command makes, not a local estimate.
  • agy reports remaining_fraction (100% → 0% as quota depletes); the collector inverts it to percent-used and drops "Remaining" from the label, matching the Claude/Codex convention where the number and the label agree as it climbs toward 100%.
  • Adds assets/antigravity.svg / antigravity-light.svg, redrawn as a single flat path from the outline in Google's published mark (the same single-<path> shape claude.svg/codex.svg use — a raw multi-color/blurred brand file does not render cleanly at bar-icon size).
  • Adds README.md/manifest.json entries matching the other three collectors, and ANTIGRAVITY_DATA_DIR alongside CLAUDE_CONFIG_DIR/CODEX_HOME for a non-default install.

Test plan

  • test/shell.d/agent-usage-antigravity-scanner-test.sh (new): fake agy on PATH following the codex collector test's pattern, fixture history.jsonl + a conversation_summaries.db built with sqlite3. Covers: prompt/session counting, the remaining_fraction → percent-used inversion and label rewrite, agy missing from PATH, a non-zero agy exit (not signed in), and no data directory at all.
  • Full ./test/shell suite (221 files): no new failures. 7 pre-existing failures unrelated to this change (snapper, Windows VM, theme install guards).
  • Ran the collector against a real signed-in agy install and confirmed the record against agy -p "/usage"'s plain-text output.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HvwPm7JhMAUtn2dWUrJx2p

The default-agent launcher already treats agy/Antigravity as a first-class
citizen (ed7bae4, omacom#6900), but the omarchy.agents bar panel had no collector
for it, so it never got a tab next to Claude, Codex, and Fireworks.

omarchy-agent-usage-antigravity reads local prompt/session stats from
~/.gemini/antigravity-cli (history.jsonl, conversation_summaries.db) the same
way the claude collector reads ~/.claude/projects, and gets rate limits from
`agy -p "/usage" --output-format json` -- the real per-group quota the CLI's
own /usage slash command reports, not a local estimate. agy reports
remaining_fraction; this inverts it to percent-used and drops "Remaining"
from the label to match the Claude/Codex convention, where the number and
the label agree as the number climbs toward 100%.

Also adds the antigravity.svg / antigravity-light.svg bar marks (redrawn as
a single flat path from the outline in Google's published mark, matching how
claude.svg and codex.svg are built), a scanner test following the
codex/fireworks fixture pattern (a fake agy on PATH, fixture history and
sqlite files), and the README/manifest entries the other three collectors
already have.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HvwPm7JhMAUtn2dWUrJx2p
@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.

@bjarneo bjarneo closed this Sep 20, 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