-
Notifications
You must be signed in to change notification settings - Fork 61
feat: add Auggie CLI adapter #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThis PR introduces support for the Auggie AI tool by adding a new Bash adapter script, updating configuration files and documentation to expose auggie as an available AI tool option alongside existing tools like claude, copilot, and cursor. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
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.
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 `@completions/_git-gtr`:
- Line 94: The AI tool completion lists are missing the new "auggie" adapter:
update the _arguments line in both completions/gtr.bash and completions/gtr.fish
to include "auggie" in the tool list (the same place as other tools in the
`_arguments '--ai[AI tool to use]:tool:(...)'` entry) so that the completions
match the updated _git-gtr adapter set.
|
I wanted to check in and see if I needed to make an issue to go along with the PR or if there is anything else can I do to be helpful. |
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.