Skip to content

feat(agents): add Antigravity (agy) usage telemetry collector and shell panel support - #8983

Closed
bchok wants to merge 1 commit into
omacom:quattrofrom
bchok:feat-antigravity-integration
Closed

bchok wants to merge 1 commit into
omacom:quattrofrom
bchok:feat-antigravity-integration

Conversation

@bchok

@bchok bchok commented Aug 29, 2026

Copy link
Copy Markdown

Summary of Changes

This PR introduces native AI Usage Telemetry collection and Shell Panel integration for the Antigravity CLI (agy) within the built-in omarchy.agents status bar widget and panel.

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

    • Implements a dedicated usage collector for Antigravity following Schema Version 1.
    • Discovers and scans local prompt history and transcripts (~/.gemini/antigravity-cli/history.jsonl and ~/.gemini/antigravity-cli/brain/*/transcript.jsonl).
    • Implements multi-process concurrency locking via fcntl.flock(lock_fd, fcntl.LOCK_EX) on ~/.cache/omarchy/agent-usage/agy-scan.lock.
    • Uses atomic file replacement with tempfile.mkstemp (0644).
    • Stamps cache envelope with scanDate for midnight date rollover invalidation.
    • Accurately tracks today/weekly prompt counts, token estimation, all-time model breakdowns, and rolling session/weekly rate limit meters with exact UTC reset timestamps.
    • Dynamic tier detection (Google AI Pro vs Vertex AI Enterprise).
  2. Shell Vector Assets (shell/plugins/agents/assets/):

    • Adds agy.svg (fill="#fff") for dark surfaces.
    • Adds agy-light.svg (fill="#111") for light surfaces.
    • Conforms to standard viewBox="0 0 24 24", width="1em", height="1em", and evenodd fill rules matching existing agent marks (codex.svg, claude.svg).
  3. Manifest Update (shell/plugins/agents/manifest.json):

    • Registers "agy": { "enabled": true } under default providers.
    • Updates plugin description to include Antigravity.

Verification & Testing

  • Validated with python3 -m py_compile and Schema Version 1 JSON validation.
  • Executed 25-worker high-concurrency stress test to verify flock locking and cache atomicity under --force.
  • Verified edge cases (clean fallback on empty/missing history, read-only cache directory, malformed timestamps).
  • Audited for PII, secrets, and credentials (0 leaks).
  • Tested live rendering with omarchy-agent-usage-update and Quickshell omarchy.agents panel.

…ll panel support

* Add bin/omarchy-agent-usage-agy to collect Antigravity prompts, token counts, model breakdowns, and session/weekly rolling limits.
* Implement concurrency locking with fcntl.flock on agy-scan.lock, atomic file replacement, scanDate midnight invalidation, and Schema v1 compliance.
* Add monochromatic dark/light SVG vector assets (agy.svg, agy-light.svg) conforming to 24x24 viewBox.
* Register agy provider in shell/plugins/agents/manifest.json.
@GaleasAndres

Copy link
Copy Markdown

Hi @bchok - This looks like a duplicate of a PR I submitted as well - Solves same issue 😄 #8911

@bchok

bchok commented Sep 1, 2026

Copy link
Copy Markdown
Author

Hi @bchok - This looks like a duplicate of a PR I submitted as well - Solves same issue 😄 #8911

@GaleasAndres closing mine. Yours looks more feature complete.

@bchok bchok closed this Sep 1, 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