Add Google's Antigravity support#121
Conversation
Co-authored-by: ivanviragine <9950727+ivanviragine@users.noreply.github.com>
Co-authored-by: ivanviragine <9950727+ivanviragine@users.noreply.github.com>
Co-authored-by: ivanviragine <9950727+ivanviragine@users.noreply.github.com>
…ravity Add Google Antigravity editor adapter
…AUDE.md Co-authored-by: ivanviragine <9950727+ivanviragine@users.noreply.github.com>
…uidelines Fix alphabetical ordering of antigravity editor across help text and docs
WalkthroughThis change adds support for a new editor called "Antigravity" (command: agy) throughout the git-gtr tool. The editor is integrated into the adapter registry, documented in configuration guides, added to shell completion files, and referenced in help text. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@lib/adapters.sh`:
- Line 20: The registry entry string in lib/adapters.sh currently tells users to
install agy from "https://antigravity.google" which is incorrect; update the
error message for the "antigravity|agy|standard|Antigravity 'agy' command not
found..." entry to instruct users to install the `agy` CLI from within the
Antigravity application (e.g., via Antigravity's onboarding or Settings) rather
than pointing to an external URL, and keep the rest of the registry entry format
and placement unchanged.
| # | ||
| # Loading: file override (adapters/editor/<name>.sh) → registry → generic PATH fallback | ||
| _EDITOR_REGISTRY=" | ||
| antigravity|agy|standard|Antigravity 'agy' command not found. Install from https://antigravity.google|workspace |
There was a problem hiding this comment.
🧩 Analysis chain
🌐 Web query:
Antigravity agy CLI Google editor
💡 Result:
agy is the command‑line launcher for Google Antigravity (the Gemini-powered code editor/IDE). You install it from inside Antigravity’s onboarding/settings (“Command Line: Install the command line tool to open Antigravity with agy”). [1]
Common usage
- Open the current folder in Antigravity:
agy .[2]
- Open a specific folder:
agy /path/to/project(oragy nameofyourprojectfolder) [2]
If agy isn’t found (Windows)
Ensure Antigravity’s bin folder is on your PATH (or create/rename a launcher to agy in that folder). One reported location is:
C:\Users\<You>\AppData\Local\Programs\Antigravity\bin[2]
WSL note (if you’re trying agy . from Ubuntu/WSL)
There are reported packaging issues where agy doesn’t work out-of-the-box in WSL (missing launcher/scripts / wrong WSL extension id), requiring manual fixes. [3]
Sources: Google Codelabs Antigravity getting-started guide [1], user reports on Reddit [2] and Google AI Developers Forum [3].
Install URL in error message is incorrect; users install agy from within Antigravity's settings, not from https://antigravity.google.
The registry entry format is correct and alphabetically placed, but the error message URL does not reflect the actual installation method. According to Google's documentation, users install the agy CLI tool from within Antigravity's onboarding/settings (not from an external website). Update the error message to guide users correctly.
🤖 Prompt for AI Agents
In `@lib/adapters.sh` at line 20, The registry entry string in lib/adapters.sh
currently tells users to install agy from "https://antigravity.google" which is
incorrect; update the error message for the
"antigravity|agy|standard|Antigravity 'agy' command not found..." entry to
instruct users to install the `agy` CLI from within the Antigravity application
(e.g., via Antigravity's onboarding or Settings) rather than pointing to an
external URL, and keep the rest of the registry entry format and placement
unchanged.
Pull Request
Description
Add Google Antigravity as a built-in editor adapter. Antigravity uses the
agyCLI command, is classified as astandard(GUI) editor type, and supports theworkspaceflag for.code-workspacefile detection — similar to VS Code and Cursor.Also fixes a pre-existing bug in
scripts/generate-completions.shwhere thegtr.ui.colorconfig key was missing its fish completion description, causing it to fall through to the default$keyecho instead of a human-readable label.Motivation
Antigravity is a workspace-aware GUI editor that integrates well with
git gtr's worktree workflow. Adding it as a built-in adapter lets users configure it withgit gtr config set gtr.editor.default antigravityand have it work out of the box with workspace file support, consistent help text, and shell completions.The fish completion fix ensures
gtr.ui.colordisplays the correct description (Color output mode (auto, always, never)) instead of the raw key name when tab-completing config keys.Type of Change
Testing
Manual Testing Checklist
Tested on:
Core functionality tested:
git gtr new <branch>- Create worktreegit gtr go <branch>- Navigate to worktreegit gtr editor <branch>- Open in editor (if applicable)git gtr ai <branch>- Start AI tool (if applicable)git gtr rm <branch>- Remove worktreegit gtr list- List worktreesgit gtr config- Configuration commands (if applicable)git gtr adapter,git gtr help editorTest Steps
git gtr adapterand verifyantigravityappears in the editor listgit gtr help editorand verifyantigravityis listed among available editors./scripts/generate-completions.sh --checkand verify completions are in syncgtr.ui.colornow shows "Color output mode (auto, always, never)" descriptionExpected behavior: Antigravity appears as a built-in editor option in all help, adapter, completion, and configuration surfaces. Fish completion for
gtr.ui.colorshows the correct description.Actual behavior: Matches expected behavior.
Breaking Changes
Checklist
Before submitting this PR, please check:
git gtr(production) and./bin/gtr(development)Additional Context
Files changed:
lib/adapters.sh— Addedantigravityentry to_EDITOR_REGISTRY(command:agy, type:standard, flags:workspace)lib/commands/help.sh— Addedantigravityto editor option lists in_help_editorand_help_fullREADME.md— Addedantigravityto editor referencesdocs/configuration.md— Addedantigravityto editor configuration documentationcompletions/gtr.bash,completions/_git-gtr,completions/git-gtr.fish— Regenerated viascripts/generate-completions.shscripts/generate-completions.sh— Added missinggtr.ui.colorcase to fish completion description generatorLicense Acknowledgment
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache License 2.0.
Summary by CodeRabbit
New Features
Documentation