Repository navigation
Replace Gemini coding agent with Antigravity - #6900
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR replaces the “Gemini” coding agent with “Antigravity” (agy) across the default menu, installation, migrations, tests, and documentation.
Changes:
- Add
agyas a supported/default coding agent and remove “Gemini” from menus. - Introduce a migration to transition existing “Gemini” defaults to
agyand optionally installantigravity-cli. - Update shell tests and the AI manual entry to reflect the new agent.
Reviewed changes
Copilot reviewed 6 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test/shell.d/menu-test.sh | Updates expected agent list/sort order to include Antigravity and drop Gemini. |
| test/shell.d/default-agent-test.sh | Adds migration and launcher behavior tests for agy and Gemini→Antigravity transition. |
| migrations/1786719479.sh | Adds migration to install Antigravity and replace Gemini as default agent. |
| manual/17-ai.md | Updates the documented agent list to include agy instead of gemini. |
| install/user/mise.sh | Switches preinstall from Gemini to Antigravity (antigravity-cli agy). |
| default/omarchy/omarchy-menu.jsonc | Adds Antigravity to Defaults > Agent and removes Gemini entry. |
| bin/omarchy-remove-preinstalls | Updates stub removal list to delete agy instead of gemini. |
| bin/omarchy-default-agent | Maps gemini/gemini-cli aliases to agy and updates usage/docs accordingly. |
| bin/omarchy-agent | Replaces gemini launch behavior with agy. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 9 changed files in this pull request and generated no new comments.
Suppressed comments (3)
migrations/1786719479.sh:6
- This migration installs
antigravity-clifor any user who hasn't opted out of preinstalls (and is missingagy), even if they never used Gemini. If the intent is specifically to replace Gemini, consider gating the install on a Gemini signal (e.g., default agent file containsgemini, or an existinggeministub/command is present) so the migration doesn’t introduce a new agent unexpectedly for users who weren’t using it.
if [[ ! -f "$HOME/.local/state/omarchy/preinstalls-removed" ]] && omarchy-cmd-missing agy; then
omarchy-mise-install antigravity-cli agy
fi
migrations/1786719479.sh:9
- Quote
$agent_filein the-ftest for consistency and correctness when paths contain spaces/shell metacharacters (the variable is already quoted in thegrepcall).
if [[ -f $agent_file ]] && grep -qxF gemini "$agent_file"; then
test/shell.d/default-agent-test.sh:153
- This assertion relies on
agyalready existing from earlier steps in the test (otherwise the migration would correctly install it and the test would fail). To avoid order-dependent/fragile test behavior, explicitly create the precondition for this case (e.g., ensure anagywrapper exists before sourcing the migration, or reset prior side effects and then set upagydeterministically).
: >"$stub_log"
rm "$test_home/.local/state/omarchy/preinstalls-removed"
source "$ROOT/migrations/1786719479.sh" >/dev/null
[[ ! -s $stub_log ]] || fail "Antigravity migration reinstalls an existing Antigravity command"
pass "Antigravity migration preserves an existing Antigravity install"
Remove Preinstalls no longer lists gemini, so the wrapper Omarchy created would have stayed in ~/.local/bin with nothing left to clean it up. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…onto The opt-out check skipped the install but the rewrite ran anyway, so anyone who had removed the preinstalls was left with a default agent naming a command that is not there. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Tested on Omarchy 4.0.0-1 with Antigravity CLI 1.1.13 installed via mise. Google AI Pro authentication works correctly. Both agy --dangerously-skip-permissions and agy --dangerously-skip-permissions --prompt-interactive "..." worked as expected. This resolves the issue I was seeing with Gemini CLI 0.55.1, where individual Google account authentication is rejected and the CLI directs users to migrate to Antigravity. |
|
One thing we should include in this PR is wiring up Omarchy's default skills for Antigravity ( While Claude uses I tested symlinking Omarchy's skills to We should update:
-mkdir -p ~/.agents/skills ~/.claude/skills ~/.codex/skills ~/.pi/agent/skills
+mkdir -p ~/.agents/skills ~/.claude/skills ~/.codex/skills ~/.pi/agent/skills ~/.gemini/config/skills
for skill in "$OMARCHY_PATH"/default/agents/skills/*/; do
skill=${skill%/}
name=${skill##*/}
ln -sfn "$skill" ~/.agents/skills/"$name"
ln -sfn "$skill" ~/.claude/skills/"$name"
ln -sfn "$skill" ~/.codex/skills/"$name"
ln -sfn "$skill" ~/.pi/agent/skills/"$name"
+ ln -sfn "$skill" ~/.gemini/config/skills/"$name"
done
mkdir -p "$HOME/.gemini/config/skills"
for skill in "$OMARCHY_PATH"/default/agents/skills/*/; do
skill=${skill%/}
name=${skill##*/}
ln -sfn "$skill" "$HOME/.gemini/config/skills/$name"
done |
|
I had the same issue and resolved by the same way.
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 9 changed files in this pull request and generated no new comments.
Suppressed comments (1)
migrations/1786719479.sh:24
- This only matches the older wrapper form.
omarchy-mise-installnow writesmise use -g --quiet "gemini"(bin/omarchy-mise-install:25), so the migration leaves Omarchy's current Gemini wrapper behind and the new assertion attest/shell.d/default-agent-test.sh:144fails. Match both wrapper generations, as the existing Oh My Pi migration does.
if [[ -f $HOME/.local/bin/gemini ]] && grep -Fq 'mise use -g "gemini"' "$HOME/.local/bin/gemini"; then
- Wires Omarchy's default skills into Antigravity by linking them to ~/.gemini/config/skills/ in bin/omarchy-provision-user and migrations/1786719479.sh. - Fixes the Gemini wrapper migration in migrations/1786719479.sh to recognize and remove wrappers containing either `mise use -g "gemini"` or `mise use -g --quiet "gemini"`, while leaving hand-written wrappers intact. - Adds regression tests for both skill provisioning and wrapper removal in test/shell.d/default-agent-test.sh and test/shell.d/provision-user-test.sh.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 11 changed files in this pull request and generated no new comments.
Suppressed comments (2)
test/shell.d/provision-user-test.sh:32
- This mock fails both
omarchy-done checkand the finalomarchy-done mark, so the command under test always exits nonzero at the end. Because the test does not check that exit status, it still passes after the symlink is created and can mask a broken provisioning run. Make onlycheckreport “not done” and assert that provisioning completes successfully.
cat >"$mock_bin/omarchy-done" <<'SH'
#!/bin/bash
exit 1
migrations/1786719479.sh:26
- The package-line grep is not sufficient to identify an Omarchy-generated wrapper: a hand-written Gemini launcher that also runs
mise use -g "gemini"will be deleted, contrary to the comment and the migration's preservation goal. Also verify the generatedexecline before removing the file so custom wrappers with other behavior survive.
if [[ -f $HOME/.local/bin/gemini ]] && grep -Eq 'mise use -g .*"gemini"' "$HOME/.local/bin/gemini"; then
The test ran the real omarchy-provision-user, which sources install/user/all.sh and so reached omarchy-theme-set: hyprctl reload against the live compositor, gsettings against the live desktop, and a global Node install, none of which the skill symlinks it asserts need. Its mocks for omarchy-done and omarchy-refresh-applications were shadowed anyway, because provisioning prepends $OMARCHY_PATH/bin ahead of them, so stubbing the install suite at its own path is what a mock cannot do here. The exit status is checked rather than discarded: the assertion held even when provisioning died outright, because the symlinks are made twenty lines before the suite runs.
The migration decided both questions differently from the code that owns them. It read the default agent with grep -qxF, while omarchy-default-agent takes the first line through read, so a padded " gemini " that the launcher still resolves was left naming an agent the launcher no longer supports. The wrapper it deletes was matched anywhere in the file, so a hand-written one that only mentions the installer's line in a comment went with Omarchy's own. Reading it the launcher's way and anchoring the match settles both against whoever wrote the file. The skills loop guards its glob the way migrations/1786539345.sh does, so an empty source cannot leave a symlink named "*" behind a migration already marked complete. Co-Authored-By: Codex XHigh <[email protected]>
The manual named Claude Code, Codex, Pi and the generic location; provisioning now links ~/.gemini/config/skills too. Co-Authored-By: Codex XHigh <[email protected]>
|
Reviewed this and pushed three commits to the branch. The core checks out. Three things I changed: The provisioning test ran the real installer. The migration read the default agent differently from the launcher. It used The wrapper-ownership check matched anywhere in the file. A hand-written Each fix carries a regression test, and I broke each fix on purpose to confirm the test fails without it. One thing I deliberately did not change, because it is a maintainer's call rather than a defect: the migration deletes The three Copilot comments need no action. |
* Replace Gemini coding agent with Antigravity * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <[email protected]> * Remove the dead Gemini mise wrapper in the Antigravity migration Remove Preinstalls no longer lists gemini, so the wrapper Omarchy created would have stayed in ~/.local/bin with nothing left to clean it up. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Install Antigravity when it is the default a Gemini user is migrated onto The opt-out check skipped the install but the rewrite ran anyway, so anyone who had removed the preinstalls was left with a default agent naming a command that is not there. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Fix Antigravity skill provisioning and Gemini wrapper migration - Wires Omarchy's default skills into Antigravity by linking them to ~/.gemini/config/skills/ in bin/omarchy-provision-user and migrations/1786719479.sh. - Fixes the Gemini wrapper migration in migrations/1786719479.sh to recognize and remove wrappers containing either `mise use -g "gemini"` or `mise use -g --quiet "gemini"`, while leaving hand-written wrappers intact. - Adds regression tests for both skill provisioning and wrapper removal in test/shell.d/default-agent-test.sh and test/shell.d/provision-user-test.sh. * Stop the provisioning test from retheming the session it runs in The test ran the real omarchy-provision-user, which sources install/user/all.sh and so reached omarchy-theme-set: hyprctl reload against the live compositor, gsettings against the live desktop, and a global Node install, none of which the skill symlinks it asserts need. Its mocks for omarchy-done and omarchy-refresh-applications were shadowed anyway, because provisioning prepends $OMARCHY_PATH/bin ahead of them, so stubbing the install suite at its own path is what a mock cannot do here. The exit status is checked rather than discarded: the assertion held even when provisioning died outright, because the symlinks are made twenty lines before the suite runs. * Match the Gemini default and wrapper the way Omarchy writes them The migration decided both questions differently from the code that owns them. It read the default agent with grep -qxF, while omarchy-default-agent takes the first line through read, so a padded " gemini " that the launcher still resolves was left naming an agent the launcher no longer supports. The wrapper it deletes was matched anywhere in the file, so a hand-written one that only mentions the installer's line in a comment went with Omarchy's own. Reading it the launcher's way and anchoring the match settles both against whoever wrote the file. The skills loop guards its glob the way migrations/1786539345.sh does, so an empty source cannot leave a symlink named "*" behind a migration already marked complete. Co-Authored-By: Codex XHigh <[email protected]> * List Antigravity among the skill directories The manual named Claude Code, Codex, Pi and the generic location; provisioning now links ~/.gemini/config/skills too. Co-Authored-By: Codex XHigh <[email protected]> --------- Co-authored-by: Copilot Autofix powered by AI <[email protected]> Co-authored-by: David Heinemeier Hansson <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Co-authored-by: Omabot <[email protected]>
* Replace Gemini coding agent with Antigravity * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <[email protected]> * Remove the dead Gemini mise wrapper in the Antigravity migration Remove Preinstalls no longer lists gemini, so the wrapper Omarchy created would have stayed in ~/.local/bin with nothing left to clean it up. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Install Antigravity when it is the default a Gemini user is migrated onto The opt-out check skipped the install but the rewrite ran anyway, so anyone who had removed the preinstalls was left with a default agent naming a command that is not there. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Fix Antigravity skill provisioning and Gemini wrapper migration - Wires Omarchy's default skills into Antigravity by linking them to ~/.gemini/config/skills/ in bin/omarchy-provision-user and migrations/1786719479.sh. - Fixes the Gemini wrapper migration in migrations/1786719479.sh to recognize and remove wrappers containing either `mise use -g "gemini"` or `mise use -g --quiet "gemini"`, while leaving hand-written wrappers intact. - Adds regression tests for both skill provisioning and wrapper removal in test/shell.d/default-agent-test.sh and test/shell.d/provision-user-test.sh. * Stop the provisioning test from retheming the session it runs in The test ran the real omarchy-provision-user, which sources install/user/all.sh and so reached omarchy-theme-set: hyprctl reload against the live compositor, gsettings against the live desktop, and a global Node install, none of which the skill symlinks it asserts need. Its mocks for omarchy-done and omarchy-refresh-applications were shadowed anyway, because provisioning prepends $OMARCHY_PATH/bin ahead of them, so stubbing the install suite at its own path is what a mock cannot do here. The exit status is checked rather than discarded: the assertion held even when provisioning died outright, because the symlinks are made twenty lines before the suite runs. * Match the Gemini default and wrapper the way Omarchy writes them The migration decided both questions differently from the code that owns them. It read the default agent with grep -qxF, while omarchy-default-agent takes the first line through read, so a padded " gemini " that the launcher still resolves was left naming an agent the launcher no longer supports. The wrapper it deletes was matched anywhere in the file, so a hand-written one that only mentions the installer's line in a comment went with Omarchy's own. Reading it the launcher's way and anchoring the match settles both against whoever wrote the file. The skills loop guards its glob the way migrations/1786539345.sh does, so an empty source cannot leave a symlink named "*" behind a migration already marked complete. Co-Authored-By: Codex XHigh <[email protected]> * List Antigravity among the skill directories The manual named Claude Code, Codex, Pi and the generic location; provisioning now links ~/.gemini/config/skills too. Co-Authored-By: Codex XHigh <[email protected]> --------- Co-authored-by: Copilot Autofix powered by AI <[email protected]> Co-authored-by: David Heinemeier Hansson <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Co-authored-by: Omabot <[email protected]>
* Replace Gemini coding agent with Antigravity * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <[email protected]> * Remove the dead Gemini mise wrapper in the Antigravity migration Remove Preinstalls no longer lists gemini, so the wrapper Omarchy created would have stayed in ~/.local/bin with nothing left to clean it up. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Install Antigravity when it is the default a Gemini user is migrated onto The opt-out check skipped the install but the rewrite ran anyway, so anyone who had removed the preinstalls was left with a default agent naming a command that is not there. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Fix Antigravity skill provisioning and Gemini wrapper migration - Wires Omarchy's default skills into Antigravity by linking them to ~/.gemini/config/skills/ in bin/omarchy-provision-user and migrations/1786719479.sh. - Fixes the Gemini wrapper migration in migrations/1786719479.sh to recognize and remove wrappers containing either `mise use -g "gemini"` or `mise use -g --quiet "gemini"`, while leaving hand-written wrappers intact. - Adds regression tests for both skill provisioning and wrapper removal in test/shell.d/default-agent-test.sh and test/shell.d/provision-user-test.sh. * Stop the provisioning test from retheming the session it runs in The test ran the real omarchy-provision-user, which sources install/user/all.sh and so reached omarchy-theme-set: hyprctl reload against the live compositor, gsettings against the live desktop, and a global Node install, none of which the skill symlinks it asserts need. Its mocks for omarchy-done and omarchy-refresh-applications were shadowed anyway, because provisioning prepends $OMARCHY_PATH/bin ahead of them, so stubbing the install suite at its own path is what a mock cannot do here. The exit status is checked rather than discarded: the assertion held even when provisioning died outright, because the symlinks are made twenty lines before the suite runs. * Match the Gemini default and wrapper the way Omarchy writes them The migration decided both questions differently from the code that owns them. It read the default agent with grep -qxF, while omarchy-default-agent takes the first line through read, so a padded " gemini " that the launcher still resolves was left naming an agent the launcher no longer supports. The wrapper it deletes was matched anywhere in the file, so a hand-written one that only mentions the installer's line in a comment went with Omarchy's own. Reading it the launcher's way and anchoring the match settles both against whoever wrote the file. The skills loop guards its glob the way migrations/1786539345.sh does, so an empty source cannot leave a symlink named "*" behind a migration already marked complete. Co-Authored-By: Codex XHigh <[email protected]> * List Antigravity among the skill directories The manual named Claude Code, Codex, Pi and the generic location; provisioning now links ~/.gemini/config/skills too. Co-Authored-By: Codex XHigh <[email protected]> --------- Co-authored-by: Copilot Autofix powered by AI <[email protected]> Co-authored-by: David Heinemeier Hansson <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Co-authored-by: Omabot <[email protected]>
|
I know this is merged to 4.0.4 branch, but it still does not fix this issue for me. agy is still not a valid agent. |
Omarchy 4.5 (omacom/omarchy#6900) adds Antigravity as a built-in default agent saved as "agy". Map "agy" to the Antigravity provider in the panel, and have the plugin's launcher open agy for that id only while Omarchy's own launcher has no entry for it, so on 4.5 Omarchy's behaviour applies.
Google stopped serving Gemini CLI's Sign in with Google to individual accounts on June 18, 2026. A port of omacom/omarchy ed7bae4 (omacom#6900): Setup > Defaults > Agent installs antigravity-cli as agy, provisioning links the skills into ~/.gemini/config/skills, and migration 1793225995 moves a Gemini default to agy and removes the generated gemini stub. Migration 1793225327 now covers OpenCode only.
Summary
Replace the obsolete Gemini coding-agent integration with Google Antigravity CLI.
agyCLI through misegeminiandgemini-clias compatibility aliasesFixes #6889
Migration
Adds
migrations/1786719479.sh.For users who have not removed the preinstalled tools, the migration creates the
agylazy stub when Antigravity is not already available.If the stored default agent is exactly
gemini, it is changed toagy.Other defaults are left untouched.
The migration does not uninstall Gemini or delete its configuration or
credentials, and it is safe to run repeatedly.
Testing
Automated:
bash test/shell.d/default-agent-test.shbash test/shell.d/menu-test.sh./test/cligit diff --check./test/shellrunAll focused tests passed.
The broader shell suite also ran. The changed-area tests passed. Four unrelated local/baseline failures remained:
bar-icon-geometry-test.sh: existing 0.59375 px subpixel icon-centering mismatchconfig-test.sh,snapper-test.sh, andunowned-system-paths-test.sh: require the separateomarchy-pkgscheckout, which was not available locallyManual testing on a dev-linked Omarchy checkout confirmed:
agyresolves to and launches the actual Antigravity CLIagy --helpshows the correct Antigravity CLI