Skip to content

Replace Gemini coding agent with Antigravity - #6900

Merged
dhh merged 9 commits into
omacom:quattrofrom
sanjyay:fix/gemini-antigravity
Aug 20, 2026
Merged

dhh merged 9 commits into
omacom:quattrofrom
sanjyay:fix/gemini-antigravity

Conversation

@sanjyay

@sanjyay sanjyay commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Replace the obsolete Gemini coding-agent integration with Google Antigravity CLI.

  • Show Antigravity instead of Gemini in the default agent menu
  • Install and launch the official agy CLI through mise
  • Use Antigravity's supported permission and interactive-prompt flags
  • Preserve gemini and gemini-cli as compatibility aliases
  • Migrate existing users whose selected default is Gemini
  • Preserve existing Gemini configuration, credentials, packages, and unrelated agent settings

Fixes #6889

Migration

Adds migrations/1786719479.sh.

For users who have not removed the preinstalled tools, the migration creates the
agy lazy stub when Antigravity is not already available.

If the stored default agent is exactly gemini, it is changed to agy.
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.sh
  • bash test/shell.d/menu-test.sh
  • ./test/cli
  • Shell syntax validation for all changed Bash scripts and the migration
  • git diff --check
  • Broader ./test/shell run

All 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 mismatch
  • config-test.sh, snapper-test.sh, and unowned-system-paths-test.sh: require the separate omarchy-pkgs checkout, which was not available locally

Manual testing on a dev-linked Omarchy checkout confirmed:

  • Antigravity appears correctly in the Omarchy agent menu
  • The visible Gemini entry is replaced
  • Selecting Antigravity works
  • agy resolves to and launches the actual Antigravity CLI
  • agy --help shows the correct Antigravity CLI
  • Installation works
  • Authentication and launch work
  • Prompt handling works
  • Re-selecting Antigravity does not cause an unnecessary reinstall
  • Other agent entries are unaffected
  • No regressions were found

Copilot AI balanced review requested due to automatic review settings August 14, 2026 21:28

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

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 agy as a supported/default coding agent and remove “Gemini” from menus.
  • Introduce a migration to transition existing “Gemini” defaults to agy and optionally install antigravity-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.

Comment thread migrations/1786719479.sh Resolved
Comment thread migrations/1786719479.sh Resolved
Comment thread migrations/1786719479.sh Resolved
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot AI review requested due to automatic review settings August 14, 2026 21:40

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 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-cli for any user who hasn't opted out of preinstalls (and is missing agy), 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 contains gemini, or an existing gemini stub/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_file in the -f test for consistency and correctness when paths contain spaces/shell metacharacters (the variable is already quoted in the grep call).
if [[ -f $agent_file ]] && grep -qxF gemini "$agent_file"; then

test/shell.d/default-agent-test.sh:153

  • This assertion relies on agy already 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 an agy wrapper exists before sourcing the migration, or reset prior side effects and then set up agy deterministically).
: >"$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]>
Copilot AI review requested due to automatic review settings August 15, 2026 10:09

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 6 out of 9 changed files in this pull request and generated no new comments.

…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]>
Copilot AI review requested due to automatic review settings August 15, 2026 10:15

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 6 out of 9 changed files in this pull request and generated no new comments.

@matheusdmlopes

Copy link
Copy Markdown

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.

@DSpeckhals

Copy link
Copy Markdown

One thing we should include in this PR is wiring up Omarchy's default skills for Antigravity (agy).

While Claude uses ~/.claude/skills/, Codex uses ~/.codex/skills/, and Pi uses ~/.pi/agent/skills/, Antigravity looks for global user skills in ~/.gemini/config/skills/. Without this directory wired up, agy does not auto-load the omarchy or diagnose-crash skills.

I tested symlinking Omarchy's skills to ~/.gemini/config/skills/, and agy immediately picks up and auto-loads both skills.

We should update:

  1. bin/omarchy-provision-user to include ~/.gemini/config/skills:
-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
  1. migrations/1786719479.sh to link the skills for existing users being migrated:
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

@matheusdmlopes

Copy link
Copy Markdown

I had the same issue and resolved by the same way.

One thing we should include in this PR is wiring up Omarchy's default skills for Antigravity (agy).

While Claude uses ~/.claude/skills/, Codex uses ~/.codex/skills/, and Pi uses ~/.pi/agent/skills/, Antigravity looks for global user skills in ~/.gemini/config/skills/. Without this directory wired up, agy does not auto-load the omarchy or diagnose-crash skills.

I tested symlinking Omarchy's skills to ~/.gemini/config/skills/, and agy immediately picks up and auto-loads both skills.

We should update:

  1. bin/omarchy-provision-user to include ~/.gemini/config/skills:
-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
  1. migrations/1786719479.sh to link the skills for existing users being migrated:
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

Copilot AI review requested due to automatic review settings August 20, 2026 07:48

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 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-install now writes mise use -g --quiet "gemini" (bin/omarchy-mise-install:25), so the migration leaves Omarchy's current Gemini wrapper behind and the new assertion at test/shell.d/default-agent-test.sh:144 fails. 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.
Copilot AI review requested due to automatic review settings August 20, 2026 08:27

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 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 check and the final omarchy-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 only check report “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 generated exec line 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

omarchybot and others added 3 commits August 20, 2026 08:19
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]>
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed this and pushed three commits to the branch.

The core checks out. antigravity-cli and agy are both real entries in mise's registry (aqua:google-antigravity/antigravity-cli), the aqua package ships a binary named agy, and --dangerously-skip-permissions and --prompt-interactive are both real flags — neither is documented anywhere, so I read them out of the 1.1.15 release binary rather than take the names on trust. ~/.gemini/config/ is genuinely Antigravity's config root, and Remove/Install Preinstalls round-trips agy correctly, since omarchy-refresh-applications restores stubs by running install/user/mise.sh.

Three things I changed:

The provisioning test ran the real installer. test/shell.d/provision-user-test.sh executed omarchy-provision-user, which sources install/user/all.sh and so reached omarchy-theme-set: hyprctl reload against the live compositor, gsettings set org.gnome.desktop.interface …, and mise use -g node@latest. Running ./test/shell would retheme the machine it ran on. Its mocks for omarchy-done and omarchy-refresh-applications were shadowed anyway, because provisioning prepends $OMARCHY_PATH/bin ahead of the mock directory at bin/omarchy-provision-user:67 — so the install suite is now stubbed at its own path, which is the one thing a mock cannot do here. The test also never checked the exit status, and the symlinks it asserts are created twenty lines before the suite runs, so it printed ok with the provisioner exiting 1. That is checked now.

The migration read the default agent differently from the launcher. It used grep -qxF gemini, while omarchy-default-agent takes the first line through read, which strips surrounding whitespace. A file holding gemini resolves as gemini for the launcher but was missed by the migration, leaving that user with a default bin/omarchy-agent no longer supports. It now reads the file the same way the launcher does.

The wrapper-ownership check matched anywhere in the file. A hand-written ~/.local/bin/gemini that merely mentions mise use -g --quiet "gemini" in a comment was deleted along with Omarchy's own, so "a hand-written one is left alone" was weaker than it read. Anchored to ^mise use -g, and both existing fixtures still match. The skills loop also guards its glob now, the way migrations/1786539345.sh does, so an empty source cannot leave a symlink named * behind a migration already marked complete — and the manual's list of skill directories gained the Antigravity one.

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 ~/.local/bin/gemini for every user, not only the ones being moved. The precedent it follows, migrations/1785846769.sh, removes the orphaned omp wrapper only in the opted-out branch, and that stub had already been broken by a package rename — this one still works. Google refuses individual-account sign-in, not API-key or Vertex use, so "preserves existing Gemini configuration, credentials, packages" in the description and a migration that takes the launcher off everyone's PATH are pulling in slightly different directions. Gating the removal on the stored default having actually been gemini is a one-line change if that is the intent.

The three Copilot comments need no action. gemini-cli can never reach the agent file, because omarchy-default-agent normalizes it to gemini before writing. Migrations run as bash -euo pipefail "$file" in their own process rather than being sourced, so there is no caller scope for agent_file to clobber. And unquoted $HOME inside [[ -f ]] neither word-splits nor globs, and matches the style used throughout bin/.

@dhh
dhh merged commit ed7bae4 into omacom:quattro Aug 20, 2026
sgruendel pushed a commit to sgruendel/omarchy that referenced this pull request Aug 22, 2026
* 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]>
jnadeau207-collab pushed a commit to jnadeau207-collab/omarchy-7-ultimate that referenced this pull request Aug 26, 2026
* 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]>
nick1udwig pushed a commit to nick1udwig/omarchy that referenced this pull request Sep 9, 2026
* 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]>
@WilsonBr

Copy link
Copy Markdown

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.
My default agent is gemini, but the default harness is still gemini cli. If I try to set agy as default agent using omarchy default agent agy a get an error message stating agy is not a valid option.
I am running omarchy 4.0.4 (stable channel).

@emirb emirb added this to the 4.5 milestone Oct 17, 2026
joaovinicius pushed a commit to devmercenario/omarchy-antigravity that referenced this pull request Oct 28, 2026
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.
santisbon pushed a commit to santisbon/omarchy that referenced this pull request Oct 29, 2026
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.
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.

Coding Agent out of Date - Gemini --> Antigravity

8 participants