Repository navigation
Remove deprecated gemini engine - #29
Conversation
Gemini CLI was replaced by Antigravity CLI (agy), and stopped serving requests on June 18, 2026. Remove gemini from built-in engine arguments and autodetection. Fail with a clear migration hint when engine="gemini" is used without explicit args. Users should update their configuration to use engine="agy". BREAKING CHANGE: engine="gemini" without explicit args now fails with a migration hint. Use engine="agy" instead, or set engines.gemini.args explicitly to continue using Gemini CLI. Claude-Session: https://claude.ai/code/session_011S1wPtNeaQmdUW7UGBPwn9
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 418d55c374
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if name == "gemini" { | ||
| return nil, "", fmt.Errorf("engine %q is no longer built in: Gemini CLI was replaced by Antigravity CLI. Use engine = \"agy\", or set engines.gemini.args explicitly", name) |
There was a problem hiding this comment.
Reject Gemini entries that omit args
When a config contains engine = "gemini" and an empty [engines.gemini] table, TOML decoding creates a map entry whose Args is nil, so the earlier cfg.Engines[name] branch returns successfully before this migration guard is reached. In that scenario the removed built-in still runs as bare gemini with the prompt on stdin instead of producing the documented migration error; require the Gemini entry to contain an explicit args value before allowing it to bypass this guard.
Useful? React with 👍 / 👎.
Summary
Google replaced Gemini CLI with Antigravity CLI (
agy), and Gemini CLI stopped serving requests for Google AI Pro/Ultra subscribers and free users on June 18, 2026.agysupport landed in #27; this PR completes the migration by droppinggeminias a built-in engine.geminifromconfig.DefaultEngineArgsand from the autodetect candidate list (nowclaude→agy→codex)engine = "gemini"without explicitengines.gemini.argsnow fails with a migration hint pointing atagy, instead of silently running baregeminiwith the prompt on stdinengines.gemini.argsexplicitlyscripts/release-check.shfromgeminitoagyBreaking change
engine = "gemini"without explicit args now errors. Switch toengine = "agy", or setengines.gemini.args.Test plan
mise run testpassesmise run lintpasses (0 issues)DefaultEngineArgs, errors without explicit args, and still works with explicit argsagyovercodexhttps://claude.ai/code/session_011S1wPtNeaQmdUW7UGBPwn9