Repository navigation
Add an Antigravity collector to the agents usage panel - #9216
Closed
edneymatias wants to merge 1 commit into
Closed
edneymatias wants to merge 1 commit into
edneymatias wants to merge 1 commit into
Conversation
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
7 tasks done
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agy/Antigravity is already a first-class default agent (ed7bae4, Replace Gemini coding agent with Antigravity #6900), but theomarchy.agentsbar panel had no collector for it, so it never got a tab next to Claude, Codex, and Fireworks.bin/omarchy-agent-usage-antigravity: local prompt/session stats from~/.gemini/antigravity-cli(history.jsonl,conversation_summaries.db), plus real rate limits fromagy -p "/usage" --output-format json— the same call the CLI's own/usageslash command makes, not a local estimate.agyreportsremaining_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%.assets/antigravity.svg/antigravity-light.svg, redrawn as a single flat path from the outline in Google's published mark (the same single-<path>shapeclaude.svg/codex.svguse — a raw multi-color/blurred brand file does not render cleanly at bar-icon size).README.md/manifest.jsonentries matching the other three collectors, andANTIGRAVITY_DATA_DIRalongsideCLAUDE_CONFIG_DIR/CODEX_HOMEfor a non-default install.Test plan
test/shell.d/agent-usage-antigravity-scanner-test.sh(new): fakeagyonPATHfollowing thecodexcollector test's pattern, fixturehistory.jsonl+ aconversation_summaries.dbbuilt withsqlite3. Covers: prompt/session counting, theremaining_fraction→ percent-used inversion and label rewrite,agymissing fromPATH, a non-zeroagyexit (not signed in), and no data directory at all../test/shellsuite (221 files): no new failures. 7 pre-existing failures unrelated to this change (snapper, Windows VM, theme install guards).agyinstall and confirmed the record againstagy -p "/usage"'s plain-text output.🤖 Generated with Claude Code
https://claude.ai/code/session_01HvwPm7JhMAUtn2dWUrJx2p