Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
FULL DISCLOSURE: I did this development using Auggie CLI. I have review everything manually as well and am using this locally for my development. But I would treat it as AI-generated code, and not human-generated code.
Description
Adds support for Auggie CLI (Augment Code's agentic terminal tool) as a new AI adapter in git gtr. Users can now launch Auggie in worktrees using
git gtr ai <branch> --ai auggieor set it as the default AI tool withgit gtr config set gtr.ai.default auggie.Motivation
Auggie CLI is Augment Code's context-aware agentic CLI tool for automation and development workflows. Adding native support for Auggie enables teams using git gtr to seamlessly integrate Auggie into their worktree-based development workflow, allowing parallel AI-assisted development across multiple branches.
This complements the existing AI tool adapters (Aider, Claude Code, Codex, Continue, Copilot, Cursor, Gemini, OpenCode) and provides first-class support for Augment's CLI offering.
Fixes # (issue)
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 (Auggie adapter)git gtr rm <branch>- Remove worktreegit gtr list- List worktreesgit gtr config- Configuration commands (set gtr.ai.default auggie)git gtr adapter(lists Auggie),git gtr doctor(checks Auggie availability)Test Steps
npm install -g @augmentcode/auggiewhich auggie(should show path to auggie binary)git gtr config set gtr.ai.default auggiegit gtr new test-auggiegit gtr ai test-auggiegit gtr ai test-auggie --ai auggiegit gtr adapter(should list auggie as available)git gtr doctor(should show auggie status)Expected behavior:
git gtr adapteroutputActual behavior:
./bin/gtr)./bin/gtr config set gtr.ai.default auggie)./bin/gtr adaptershows auggie as[ready])./bin/gtr helpshows auggie in AI tools list)./bin/gtr doctorshows "AI tool: auggie (found)")./bin/gtr ai test-branch --ai auggie./bin/gtr ai test-branch(when auggie is default)Breaking Changes
No breaking changes. This is a purely additive feature that adds a new AI adapter without modifying existing functionality.
Checklist
Before submitting this PR, please check:
set -e, quoted variables,snake_case, 2-space indentation)command -vfor detection and standard bash constructs), so it should work cross-platform, but this needs verification on Linux and Windows (Git Bash).completions/_git-gtr(zsh). Bash and Fish completions don't have AI tool name completions (they only complete commands and branch names).git gtr(production) and./bin/gtr(development)npm install -g @augmentcode/auggie), same pattern as other AI adaptersAdditional Context
Files Changed
New files:
adapters/ai/auggie.sh- Auggie CLI adapter implementationModified files:
bin/gtr- Updated help text and adapter loading to include auggieREADME.md- Added auggie to AI tools listdocs/configuration.md- Added auggie to supported AI tools tablecompletions/_git-gtr- Added auggie to zsh completionsAdapter Implementation
The Auggie adapter follows the standard AI adapter contract:
ai_can_start()- Checks ifauggiecommand is availableai_start(path, args...)- Launches Auggie in the specified worktree directoryInstallation instructions and documentation link are provided in error messages when auggie is not found.
External Dependency
Note: While git gtr itself has no new dependencies, users who want to use the Auggie adapter must install Auggie CLI separately:
This follows the same pattern as other AI tool adapters (aider, claude, etc.) which require separate installation of the respective tools.
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
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.