Add Antigravity CLI support#183
Open
aserper wants to merge 2 commits into
Open
Conversation
9412366 to
cb0a14f
Compare
Contributor
Author
|
Updated after local sidebar testing: the Antigravity default icon is now |
Contributor
Author
|
Updated with the final Antigravity lifecycle fix: status tracking now uses agy's official statusLine Verified locally with a live |
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.
Fixes #168
Summary
Adds first-class Antigravity CLI (
agy) support:agyagent profile for prompt injection, auto mode, auto-naming, and continue/resume flagsagypanes in the sidebar/dashboard with an Antigravity label/color and a reliableAGdefault iconAG · <title>instead of suppressing them~/.gemini/antigravity-clistatusLinesignal, with lifecycle hooks as a compatibility/working fallbackset-window-statussilent on success so Antigravity's fail-closed hook parser does not reject the hook outputStatus tracking behavior
workmux setup --hooksnow installs:~/.gemini/config/workmux-hooks/workmux-statuslinestatusLine.command/statusLine.enabled = truein~/.gemini/antigravity-cli/settings.json~/.gemini/config/hooks.jsonand~/.gemini/antigravity-cli/hooks.jsonThe statusLine wrapper reads Antigravity's
agent_stateJSON payload and maps it to Workmux status. It prints nothing unless it is chaining a user-provided statusLine command, so it should not visibly change the Antigravity UI. If a user already had a custom statusLine command, Workmux stores and chains it so their visible statusLine output is preserved.Existing running
agysessions may need/statusline onor a restart to reload the new settings.Plan conformance
This follows the implementation plan saved in the Obsidian note "Workmux Antigravity CLI Implementation Plan":
AntigravityProfileusing canonical profile nameagyAgentKind::Antigravity~/.gemini/antigravity-cliThe note originally recommended deferring status hooks until Antigravity's hook schema/location was verified. After that plan was written, the lifecycle hooks and the official statusLine payload were verified locally, so this PR includes the planned follow-up status tracking work as well.
Validation
cargo test— 1268 passed, 4 ignoredcargo test antigravity— 11 passedcargo build --release/opt/brew/bin/workmuxand/home/amit/.pi/agent/bin/workmuxagytmux smoke test verified spinner starts while working and stops after/statusline onenabled the Workmux statusLine wrapper