Skip to content

Add Google's Antigravity support#121

Open
ivanviragine wants to merge 8 commits intocoderabbitai:mainfrom
ivanviragine:main
Open

Add Google's Antigravity support#121
ivanviragine wants to merge 8 commits intocoderabbitai:mainfrom
ivanviragine:main

Conversation

@ivanviragine
Copy link

@ivanviragine ivanviragine commented Feb 12, 2026

Pull Request

Description

Add Google Antigravity as a built-in editor adapter. Antigravity uses the agy CLI command, is classified as a standard (GUI) editor type, and supports the workspace flag for .code-workspace file detection — similar to VS Code and Cursor.

Also fixes a pre-existing bug in scripts/generate-completions.sh where the gtr.ui.color config key was missing its fish completion description, causing it to fall through to the default $key echo 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 with git gtr config set gtr.editor.default antigravity and have it work out of the box with workspace file support, consistent help text, and shell completions.

The fish completion fix ensures gtr.ui.color displays the correct description (Color output mode (auto, always, never)) instead of the raw key name when tab-completing config keys.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring (no functional changes)
  • Other (please describe):

Testing

Manual Testing Checklist

Tested on:

  • macOS
  • Linux (specify distro: ______)
  • Windows (Git Bash)

Core functionality tested:

  • git gtr new <branch> - Create worktree
  • git gtr go <branch> - Navigate to worktree
  • git gtr editor <branch> - Open in editor (if applicable)
  • git gtr ai <branch> - Start AI tool (if applicable)
  • git gtr rm <branch> - Remove worktree
  • git gtr list - List worktrees
  • git gtr config - Configuration commands (if applicable)
  • Other commands affected by this change: git gtr adapter, git gtr help editor

Test Steps

  1. Run existing BATS test suite: all 236/236 tests pass with no regressions
  2. Run git gtr adapter and verify antigravity appears in the editor list
  3. Run git gtr help editor and verify antigravity is listed among available editors
  4. Run ./scripts/generate-completions.sh --check and verify completions are in sync
  5. Verify fish completion for gtr.ui.color now shows "Color output mode (auto, always, never)" description

Expected behavior: Antigravity appears as a built-in editor option in all help, adapter, completion, and configuration surfaces. Fish completion for gtr.ui.color shows the correct description.

Actual behavior: Matches expected behavior.

Breaking Changes

  • This PR introduces breaking changes
  • I have discussed this in an issue first
  • Migration guide is included in documentation

Checklist

Before submitting this PR, please check:

  • I have read CONTRIBUTING.md
  • My code follows the project's style guidelines
  • I have performed manual testing on at least one platform
  • I have updated documentation (README.md, CLAUDE.md, etc.) if needed
  • My changes work on multiple platforms (or I've noted platform-specific behavior)
  • I have added/updated shell completions (if adding new commands or flags)
  • I have tested with both git gtr (production) and ./bin/gtr (development)
  • No new external dependencies are introduced (Bash + git only)
  • All existing functionality still works

Additional Context

Files changed:

  • lib/adapters.sh — Added antigravity entry to _EDITOR_REGISTRY (command: agy, type: standard, flags: workspace)
  • lib/commands/help.sh — Added antigravity to editor option lists in _help_editor and _help_full
  • README.md — Added antigravity to editor references
  • docs/configuration.md — Added antigravity to editor configuration documentation
  • completions/gtr.bash, completions/_git-gtr, completions/git-gtr.fish — Regenerated via scripts/generate-completions.sh
  • scripts/generate-completions.sh — Added missing gtr.ui.color case to fish completion description generator

License 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

    • Antigravity editor is now available as a supported editor option for workspace handling and configuration management
    • Added gtr.ui.color configuration option for controlling color output modes (auto, always, never)
  • Documentation

    • Updated help text, configuration documentation, and all shell completion scripts to recognize and suggest Antigravity
    • Added detailed Antigravity setup instructions with workspace file support information

Copilot AI and others added 8 commits February 12, 2026 14:08
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
@coderabbitai
Copy link

coderabbitai bot commented Feb 12, 2026

Walkthrough

This 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

Cohort / File(s) Summary
Editor Registry
lib/adapters.sh
Registers antigravity as a new editor adapter with command agy, type standard, and workspace support.
Documentation
CLAUDE.md, README.md, docs/configuration.md
Adds Antigravity to editor lists and includes installation/setup details alongside VS Code and Cursor references.
Help & User-Facing Text
lib/commands/help.sh
Updates help output to list antigravity as an available editor and includes it in configuration option descriptions.
Shell Completions
completions/_git-gtr, completions/git-gtr.fish, completions/gtr.bash
Extends editor option completions to include antigravity for bash, fish, and zsh shells.
Completion Configuration
scripts/generate-completions.sh
Adds gtr.ui.color configuration key to Fish completion generation.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 A new editor bounds into view,
Antigravity joining the crew,
With adapters and scripts all in place,
It floats through completion with grace!

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 71.43% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add Google's Antigravity support' directly and accurately describes the main change—adding a new editor adapter (Antigravity) to the git-worktree-runner project.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

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
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 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 (or agy 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.

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