Skip to content

feat(hook): add TRAE IDE agent support - #1447

Closed
WalissonRodrigo wants to merge 14 commits into
rtk-ai:developfrom
WalissonRodrigo:feat/trae-agent-support
Closed

WalissonRodrigo wants to merge 14 commits into
rtk-ai:developfrom
WalissonRodrigo:feat/trae-agent-support

Conversation

@WalissonRodrigo

Copy link
Copy Markdown

Summary

Add ByteDance TRAE as a new rules-based agent integration in RTK. TRAE reads markdown rules from .trae/rules/\ (project-scoped), following the same pattern as Antigravity and Kilo Code.

Changes

New Files

  • \hooks/trae/rules.md\ — RTK usage instructions for TRAE agent
  • \hooks/trae/README.md\ — Hook documentation

Modified Files

  • \src/main.rs\ — Added \Trae\ variant to \AgentTarget\ enum + routing in Init handler
  • \src/hooks/init.rs\ — Added \TRAE_RULES\ constant,
    un_trae_mode(),
    un_trae_mode_at()\ + 2 unit tests
  • \hooks/README.md\ — Added TRAE to scope, directory structure, supported agents table
  • \README.md\ — Added TRAE to Quick Start and Supported AI Tools table (13 agents)

Usage

\�ash
rtk init --agent trae # Installs .trae/rules/rtk-rules.md in current project
\

Integration Tier

Rules file (prompt-level guidance) — low maintenance, no code to break. TRAE reads .trae/rules/\ markdown files as context for its AI agent.

Testing

Check Result
\cargo fmt --all --check\ ✅ Passed
\cargo clippy --all-targets\ ✅ Passed (0 errors)
\cargo test trae\ ✅ 2/2 passed
\ est_trae_mode_creates_rules_file\ ✅ Verifies .trae/rules/rtk-rules.md is created
\ est_trae_mode_is_idempotent\ ✅ Second run does not overwrite

Checklist

  • Unit tests added
  • Documentation updated (hooks/README.md, README.md)
  • \cargo fmt --all --check && cargo clippy --all-targets && cargo test\ passes
  • Follows existing agent integration patterns (Antigravity, Kilo Code)
  • Conventional commit format used

@CLAassistant

CLAassistant commented Apr 22, 2026 •

Copy link
Copy Markdown

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.
2 out of 3 committers have signed the CLA.

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

github-actions Bot and others added 4 commits April 22, 2026 01:07
Add ByteDance TRAE as a new rules-based agent integration. TRAE reads markdown rules from .trae/rules/ (project-scoped), same pattern as Antigravity and Kilo Code.

- hooks/trae/rules.md: RTK usage instructions for TRAE agent
- hooks/trae/README.md: hook documentation
- AgentTarget::Trae enum variant in main.rs
- run_trae_mode() in init.rs with .trae/rules/rtk-rules.md install
- Unit tests: creation and idempotency
- Updated hooks/README.md and README.md with TRAE entries
@WalissonRodrigo
WalissonRodrigo force-pushed the feat/trae-agent-support branch from c8072b7 to 5561075 Compare April 22, 2026 04:08
@KuSh

KuSh commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Closing as a duplicate of #3008, which adds Trae support through a native PreToolUse hook with install, uninstall and test coverage, and keeps its diff to the feature. Thanks for the work here. Review and comments are welcome on #3008.

@KuSh KuSh closed this Sep 6, 2026
@KuSh KuSh added the duplicate This issue or pull request already exists label Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants