Skip to content

Add Antigravity usage collector, brand assets, and icon font glyph - #14884

Closed
dandrejvv wants to merge 4 commits into
omacom:quattrofrom
dandrejvv:feat/antigravity-usage-collector
Closed

dandrejvv wants to merge 4 commits into
omacom:quattrofrom
dandrejvv:feat/antigravity-usage-collector

Conversation

@dandrejvv

@dandrejvv dandrejvv commented Oct 10, 2026 •

Copy link
Copy Markdown

Google Antigravity (agy) is required to use and track Google AI Pro subscriptions, which are unsupported by the legacy Gemini CLI. Completes the Antigravity integration started in #6900.

  • Add bin/omarchy-agent-usage-agy to collect Google Antigravity tokens, session counts, and models
  • Add light and dark mode vector assets in shell/plugins/agents/assets/ (agy.svg, agy-light.svg)
  • Compile authentic monochrome Antigravity mark into default/fonts/omarchy/omarchy.ttf as U+E90F
  • Update setup.default.agent.agy in default/omarchy/omarchy-menu.jsonc to render with the omarchy icon font
  • Update test/shell.d/menu-test.sh expectations and charset range

- Add bin/omarchy-agent-usage-agy (and bin/omarchy-agent-usage-antigravity symlink) to collect Google Antigravity tokens, session counts, and rolling 5h/7d limits
- Add light and dark mode vector assets in shell/plugins/agents/assets/
- Compile authentic monochrome Antigravity mark into default/fonts/omarchy/omarchy.ttf as U+E90F
- Update setup.default.agent.agy in default/omarchy/omarchy-menu.jsonc to render with the omarchy icon font
- Update test/shell.d/menu-test.sh expectations and charset range
@greptile-apps

greptile-apps Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Medium impact] Adds usage collector and brand assets for Antigravity agent.

Fix the inconsistent cached-token totals before merging.

Findings

  1. P1 Cached token totals disagree ▶
  2. P2 Earlier usage changes models ▶
  3. P2 Token guesses look measured ▶
  4. P2 Old sessions count today ▶

Summary

Adds an Antigravity usage collector, light and dark brand assets, and the U+E90F menu glyph.

  • Antigravity usage now appears in the agents panel.
  • The agents panel has Antigravity marks for dark and light surfaces.
  • The default-agent menu uses Antigravity’s Omarchy glyph.

Reviews (4) · Last reviewed commit: "fix(agy): capture exact token metrics fr..." · Reviewed by Greptile

Comment thread bin/omarchy-agent-usage-antigravity Resolved
Comment thread bin/omarchy-agent-usage-agy Resolved
Comment thread bin/omarchy-agent-usage-agy Resolved
Comment thread bin/omarchy-agent-usage-agy Resolved
Comment thread bin/omarchy-agent-usage-agy Resolved
Comment thread bin/omarchy-agent-usage-agy Outdated
Comment on lines +165 to +166
in_tok = max(1, in_chars // 4) if in_chars else 0
out_tok = max(1, out_chars // 4) if out_chars else 0

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.

P2 Token guesses look measured

Character counts divided by four are written into the same token fields as measured usage, without an estimate label. Counting each visible message once also misses repeated context sent during later requests. Read recorded token usage where available. Otherwise mark the numbers as estimates and make the panel show that distinction.

Comment thread bin/omarchy-agent-usage-agy Outdated
and not d.startswith(".")
]
total_sessions = len(entries)
today_sessions = min(1, total_sessions)

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.

P2 Old sessions count today

When the database is missing or unreadable, any existing conversation folder makes todaySessions equal one. Old conversations therefore appear as activity today, and several conversations today are reduced to one. Count distinct conversations with dated activity today, or report that today's count is unavailable.

Comment thread bin/omarchy-agent-usage-agy Resolved
Comment thread bin/omarchy-agent-usage-agy Resolved
- Remove bin/omarchy-agent-usage-antigravity to prevent duplicate discovery
- Remove asset alias symlinks
- Emit empty not-ready record when Antigravity has not been used
- Report empty limits instead of simulated quota percentages
- Store daily token totals in recentDays.messageCount
- Dynamically detect model names from transcripts instead of hardcoding
- Reconcile SQLite session timestamps with local day boundaries
- Ensure --output writes target file on cache hits
Comment thread bin/omarchy-agent-usage-agy Resolved
…move legacy alias record

- Keep configured limits and tierLabel even when local conversations are empty
- Automatically clean up legacy antigravity.json alias record to avoid duplicate panel entries
- Ensure dynamic model slugification strips parentheticals without hardcoded checks
out_val = max(1, out_chars // 4) if out_chars else 0
cache_val = 0

tok_sum = in_val + out_val

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.

P1 Cached token totals disagree

parse_transcripts leaves cache_val out of tok_sum, but adds it to modelUsage. For records with cached input, the panel includes those tokens when comparing models but leaves them out of today’s and the week’s totals. Normalize the input and cache fields, then use the same total for both.

Comment on lines +215 to +217
active_model = session_model or "gemini-3.8-flash"
bucket = model_usage.setdefault(
active_model,

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.

P2 Earlier usage changes models

parse_transcripts now reads every model change before counting any tokens. session_model holds the last selected model, so every earlier record is assigned to that model too. When a user changes models during a conversation, this credits the new model with the old model’s usage and can skew the panel’s “Mostly” label. Update the active model while counting records in order instead.

@jandrusk

Copy link
Copy Markdown

Thanks for this! A couple of notes:

@dandrejvv dandrejvv closed this Oct 12, 2026
@dandrejvv
dandrejvv deleted the feat/antigravity-usage-collector branch October 12, 2026 19:24
@dandrejvv

Copy link
Copy Markdown
Author

Thanks for letting me know. I did not know there was other PRs for Antigravity.

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