Skip to content

Replace the deprecated Gemini agent with Antigravity (agy) - #6796

Closed
ThorTL67 wants to merge 2 commits into
omacom:quattrofrom
ThorTL67:replace-gemini-with-antigravity
Closed

ThorTL67 wants to merge 2 commits into
omacom:quattrofrom
ThorTL67:replace-gemini-with-antigravity

Conversation

@ThorTL67

Copy link
Copy Markdown

Google sunset the free/Pro-tier Gemini CLI on 2026-06-18 in favor of the Antigravity CLI, a single Go binary named agy. Anyone picking Gemini as their preconfigured agent now gets a dead tool.

This swaps the preconfigured Gemini agent for Antigravity:

  • install/user/mise.sh installs github:google-antigravity/antigravity-cli as the agy lazy stub (same two-arg pattern as oh-my-pi), and omarchy-remove-preinstalls cleans it up
  • omarchy-default-agent accepts antigravity | agy, stores the agy slug, and installs from the GitHub release package; the gemini/gemini-cli names are removed
  • omarchy-agent launches agy --dangerously-skip-permissions, passing an initial prompt as a positional argument (agy's replacement for --yolo --prompt-interactive)
  • The menu entry becomes Antigravity with the Nerd Font rocket glyph, sorted first alphabetically
  • A migration installs the agy stub (respecting the preinstalls opt-out), removes the gemini stub only if it is still Omarchy's mise wrapper, and moves a gemini default to agy

Tests updated in default-agent-test.sh (lazy stub, migration behaviors, opt-out, launch flags) and menu-test.sh (entry, glyph, alphabetical order — with an optional checked slug since the menu key is antigravity but the stored slug is agy).

Related but non-overlapping: #6472 (usage-bar provider) and #5954 (Antigravity IDE as editor); neither touches the agent stack.

🤖 Generated with Claude Code

Google sunset the free-tier Gemini CLI on 2026-06-18 in favor of the
Antigravity CLI, a single Go binary named agy. Swap the preconfigured
agent: install via mise's github backend, launch with
--dangerously-skip-permissions and a positional prompt, and migrate
existing installs by replacing the stub and moving a gemini default
to agy.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings August 13, 2026 09:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Replaces the retired Gemini CLI integration with Antigravity (agy) across installation, selection, launching, migration, menus, and tests.

Changes:

  • Installs and launches Antigravity with its required package and flags.
  • Migrates Gemini defaults and wrappers to agy.
  • Updates menus and shell tests for Antigravity.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
bin/omarchy-agent Launches agy with unattended permissions.
bin/omarchy-default-agent Adds Antigravity selection and installation.
bin/omarchy-remove-preinstalls Replaces Gemini stub cleanup with agy.
default/omarchy/omarchy-menu.jsonc Adds the Antigravity menu entry.
install/user/mise.sh Preinstalls the agy lazy stub.
migrations/1786610161.sh Migrates Gemini installations and defaults.
test/shell.d/default-agent-test.sh Tests installation, migration, selection, and launching.
test/shell.d/menu-test.sh Tests Antigravity menu metadata and ordering.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread migrations/1786610161.sh Resolved
A user who removed the preinstalls and then explicitly chose Gemini
would have their default rewritten to agy without the wrapper being
installed, so the next launch failed. Install the agy stub in that
case despite the opt-out marker.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 13, 2026 09:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 8 changed files in this pull request and generated no new comments.

Suppressed comments (1)

migrations/1786610161.sh:7

  • Add a migration test that places a non-Omarchy executable at ~/.local/bin/gemini and verifies it survives. The current test covers only deletion of the generated mise wrapper, so the safety condition that prevents this migration from deleting a user's custom gemini command can regress unnoticed.
if [[ -f $HOME/.local/bin/gemini ]] && grep -Fq 'mise use -g "gemini"' "$HOME/.local/bin/gemini"; then

@ThorTL67

Copy link
Copy Markdown
Author

Closing — this landed upstream independently as #6900, and that version is the better one: it aliases gemini/gemini-cli to agy, installs the antigravity-cli mise package rather than the github:google-antigravity/antigravity-cli path I used, and passes --prompt-interactive.

Migration 1786719479.sh also covers the edge case Copilot raised here, with the same reasoning as my follow-up commit — an existing gemini default is treated as an opt-in so the rewritten default always points at something launchable — plus an anchored-grep guard so a hand-written ~/.local/bin/gemini wrapper survives. Nothing left in this branch worth carrying over. Thanks for the review.

@ThorTL67 ThorTL67 closed this Aug 24, 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