Skip to content

feat: add Auggie (Augment Code) as first-class RTK agent#1829

Open
augmentmoogi wants to merge 6 commits into
rtk-ai:developfrom
augmentmoogi:add-auggie-agent-support
Open

feat: add Auggie (Augment Code) as first-class RTK agent#1829
augmentmoogi wants to merge 6 commits into
rtk-ai:developfrom
augmentmoogi:add-auggie-agent-support

Conversation

@augmentmoogi
Copy link
Copy Markdown

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 enum
  • rtk 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.json with matcher launch-process
  • rtk init --agent auggie --uninstall — cleanly removes the hook
  • hooks/auggie/ — hook script and README
  • Documentation — updated hooks/README.md, top-level README.md, supported-agents.md, src/hooks/README.md
  • 15 unit tests — payload processing, install/uninstall, idempotency, JSON structure validation

How 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-process tool call, RTK intercepts the payload, rewrites supported commands (e.g. git statusrtk git status), and returns the rewrite via hookSpecificOutput.updatedInput.

Augment updatedInput status

Augment's PreToolUse hook system currently supports permissionDecision: "deny" but updatedInput is 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 ships updatedInput support 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

  • All 1744 tests pass (cargo fmt && cargo clippy && cargo test)
  • Manual verification: hook payload processing confirmed working with real Augment PreToolUse payloads
  • No new clippy warnings introduced

Files changed (10)

File Change
src/main.rs Added AgentTarget::Auggie, HookCommands::Auggie, routing
src/hooks/hook_cmd.rs run_auggie + 8 tests
src/hooks/init.rs Install/show/uninstall + 7 tests
src/hooks/constants.rs AUGGIE_HOOK_COMMAND, AUGMENT_DIR
hooks/auggie/rtk-rewrite.sh Hook script
hooks/auggie/README.md Hook documentation
hooks/README.md Added Auggie entry
README.md Added to Supported Agents table
docs/guide/getting-started/supported-agents.md Added Auggie row
src/hooks/README.md Added to mode table

Pull Request opened by Augment Code with guidance from the PR author

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 11, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 3 committers have signed the CLA.

✅ augmentmoogi
❌ github-actions[bot]
❌ rtk-release-bot[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@rtk-release-bot rtk-release-bot Bot added the wrong-base PR targets master instead of develop label May 11, 2026
@rtk-release-bot
Copy link
Copy Markdown

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.

@augmentmoogi augmentmoogi changed the base branch from master to develop May 11, 2026 06:23
@augmentmoogi augmentmoogi force-pushed the add-auggie-agent-support branch from 8abe790 to 48593ba Compare May 11, 2026 06:25
github-actions Bot and others added 6 commits May 11, 2026 11:31
- 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
@augmentmoogi augmentmoogi force-pushed the add-auggie-agent-support branch from 48593ba to caf4a23 Compare May 11, 2026 18:33
@augmentmoogi augmentmoogi marked this pull request as ready for review May 11, 2026 18:35
@aeppling aeppling self-assigned this May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wrong-base PR targets master instead of develop

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants