Add Google Antigravity CLI as a new executor#543
Open
bborn wants to merge 1 commit into
Open
Conversation
Antigravity is Google's terminal-first coding agent and the official
successor to the Gemini CLI, which Google retires on 2026-06-18.
The Antigravity CLI is a TUI with no documented flags for headless
prompting, session resume, or auto-approve ("YOLO") mode — auto-approve
is configured in-app via /permissions. The executor therefore treats
every run as stateless, reports no dangerous mode, and appends task
guidance to the prompt (the OpenClaw pattern), so retries replay the
full prompt + feedback. The binary and prompt flag are overridable via
ANTIGRAVITY_BIN and ANTIGRAVITY_PROMPT_FLAG so operators can adapt
without a code change as Google stabilizes the CLI surface.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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) and the official successor to the Gemini CLI, which Google retires on 2026-06-18.internal/executor/antigravity_executor.gomodeled on the Gemini executor for tmux + process management, but adapted for what's actually documented today.cmd/task/,internal/ui/, andinternal/db/.README.md,AGENTS.md, anddocs/executor_interface.md.Design notes
The Antigravity CLI is a TUI and does not currently expose documented command-line flags for headless prompting, session resume, or auto-approve ("YOLO") mode — auto-approve is configured in-app via
/permissions. The executor reflects that reality:SupportsSessionResume()→false(retries replay the full prompt with appended feedback, same as Codex/Gemini fallbacks)SupportsDangerousMode()→false(no CLI flag exists;ResumeDangerous/ResumeSafeare no-ops with a log line)agyhas no separate system-prompt mechanism — and avoids clobbering an existingAGENTS.mdin the worktree.To stay resilient while Google stabilizes the CLI surface (this is
agy1.0.0), the invocation is overridable via env vars:ANTIGRAVITY_BIN— binary name/path (defaultagy)ANTIGRAVITY_PROMPT_FLAG— flag used to pass the initial prompt (default-i, matching the Gemini CLI it replaces)IsAvailable()falls back to~/.local/bin/agysince the official installer drops the binary there and that directory is not always on PATH for non-login shells.Deprecating Gemini
Per the task, the
geminiexecutor stays as-is until Google's Gemini CLI shutdown on 2026-06-18. The constant comment and README now note the planned deprecation.Test plan
🤖 Generated with Claude Code