Repository navigation
feat(antigravity): add Google Antigravity support - #59
Merged
Merged
Conversation
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
Adds Google Antigravity (Antigravity CLI, Antigravity App, and Antigravity IDE) as a supported agent in
agent-notify, following the existing per-agent package architecture.Hook Integration Details
~/.gemini/config/hooks.json(shared across Antigravity App, CLI, and IDE).agents/hooks.json"agent-notify"): writesSessionStart,PreToolUse(matcher: "ask_question|ask_permission"), andStopunder"agent-notify"without touching user-defined hooks;Uninstallremoves onlyagent-notifyentries and deletes the file if empty.SessionStart→session_start(click-to-focus window capture only, never notifies)PreToolUse(ask_permission) →permission_requiredPreToolUse(ask_question) →input_requiredStop→run_completed/run_failed(byterminationReason/error; user-initiatedUSER_CANCELEDwithout error is skipped){"decision":"allow"}forPreToolUse/Stop,{}forSessionStart).handle-antigravity-hookalways emits valid JSON even when skipping or encountering malformed input, never blocking or breaking the agent.agy/antigravityonPATHor Antigravity directories (~/.gemini/antigravity-cli,~/.gemini/antigravity,~/.gemini/antigravity-ide,~/.config/antigravity), intentionally avoiding false positives on bare~/.gemini.doctor,view,clean,send --agent antigravity(aliasesagy,google-antigravity),agent-notify antigravity print-hooks|install-hooks|uninstall-hooks, i18n, docs, and 64×64 agent logo (assist/logo/agentlogo/antigravity.png).Verification
go vet ./...go test -count=1 ./...(all packages pass, including new unit tests ininternal/antigravityhooks,internal/agentintegrations,internal/agenthooks,internal/config,internal/app/setup,internal/app/doctor,internal/cli, andinternal/notify)linux/amd64,darwin/amd64, andwindows/amd64install-hooks,handle-antigravity-hookstdin/stdout JSON contract, anddoctor