feat: add Auggie (Augment Code) as first-class RTK agent#1829
Open
augmentmoogi wants to merge 6 commits into
Open
feat: add Auggie (Augment Code) as first-class RTK agent#1829augmentmoogi wants to merge 6 commits into
augmentmoogi wants to merge 6 commits into
Conversation
|
|
|
Automatic message from CI checks : It seems like this branche is targeting the wrong branch, any contribution should target develop branch. See CONTRIBUTING.md for details. |
8abe790 to
48593ba
Compare
- Add AgentTarget::Auggie and HookCommands::Auggie - Implement rtk hook auggie (reuses Claude payload processor) - Implement rtk init --agent auggie (install/show/uninstall) - Patch ~/.augment/settings.json with PreToolUse hook (matcher: launch-process) - Add hooks/auggie/ directory with rtk-rewrite.sh and README - Update documentation in 4 files (README, supported-agents, hooks READMEs) - Add 15 unit tests for payload processing and install/uninstall idempotency
48593ba to
caf4a23
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds Auggie (Augment Code) as a first-class RTK agent, matching the existing Claude, Cursor, Gemini, and Copilot integrations.
What this PR does
AgentTarget::Auggie— extends the agent enumrtk hook auggie— new subcommand that processes PreToolUse payloads (reuses Claude's payload processor since the JSON schema matches:tool_input.command)rtk init --agent auggie— installs a PreToolUse hook into~/.augment/settings.jsonwith matcherlaunch-processrtk init --agent auggie --uninstall— cleanly removes the hookhooks/auggie/— hook script and READMEHow it works
The hook registers in
~/.augment/settings.json:{ "hooks": { "PreToolUse": [{ "matcher": "launch-process", "hooks": [{ "type": "command", "command": "rtk hook auggie" }] }] } }When Augment fires a
launch-processtool call, RTK intercepts the payload, rewrites supported commands (e.g.git status→rtk git status), and returns the rewrite viahookSpecificOutput.updatedInput.Augment
updatedInputstatusAugment's PreToolUse hook system currently supports
permissionDecision: "deny"butupdatedInputis not yet implemented on Augment's side (docs reference). This means the RTK integration is fully ready and correct, but command rewriting will activate once Augment shipsupdatedInputsupport in a future release. No changes will be needed on RTK's side — it will just start working.I'm coordinating with the Augment team and will update them once this is in a stable RTK release so they can update their docs accordingly.
Testing
cargo fmt && cargo clippy && cargo test)Files changed (10)
src/main.rsAgentTarget::Auggie,HookCommands::Auggie, routingsrc/hooks/hook_cmd.rsrun_auggie+ 8 testssrc/hooks/init.rssrc/hooks/constants.rsAUGGIE_HOOK_COMMAND,AUGMENT_DIRhooks/auggie/rtk-rewrite.shhooks/auggie/README.mdhooks/README.mdREADME.mddocs/guide/getting-started/supported-agents.mdsrc/hooks/README.mdPull Request opened by Augment Code with guidance from the PR author