Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ Built-ins:
| `kiro` | native (`kiro-cli acp`) | [Kiro CLI](https://kiro.dev) |
| `opencode` | `npx -y opencode-ai acp` | [OpenCode](https://opencode.ai) |
| `qwen` | native (`qwen --acp`) | [Qwen Code](https://github.com/QwenLM/qwen-code) |
| `trae` | native (`traecli acp serve`) | [Trae CLI](https://docs.trae.cn/cli) |

`factory-droid` and `factorydroid` also resolve to the built-in `droid` adapter.

Expand Down
2 changes: 2 additions & 0 deletions agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Built-in agents:
- `kiro -> kiro-cli acp`
- `opencode -> npx -y opencode-ai acp`
- `qwen -> qwen --acp`
- `trae -> traecli acp serve`

Harness-specific docs in this directory:

Expand All @@ -30,3 +31,4 @@ Harness-specific docs in this directory:
- [Kiro](Kiro.md): built-in `kiro -> kiro-cli acp`
- [OpenCode](OpenCode.md): built-in `opencode -> npx -y opencode-ai acp`
- [Qwen](Qwen.md): built-in `qwen -> qwen --acp`
- [Trae](Trae.md): built-in `trae -> traecli acp serve`
5 changes: 5 additions & 0 deletions agents/Trae.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Trae

- Built-in name: `trae`
- Default command: `traecli acp serve`
- Upstream: https://docs.trae.cn/cli
6 changes: 4 additions & 2 deletions skills/acpx/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ Friendly agent names resolve to commands:
- `cursor` -> `cursor-agent acp`
- `copilot` -> `copilot --acp --stdio`
- `droid` -> `droid exec --output-format acp` (`factory-droid` and `factorydroid` also resolve to `droid`)
- `iflow` -> `iflow --experimental-acp`
- `kilocode` -> `npx -y @kilocode/cli acp`
- `kimi` -> `kimi acp`
- `opencode` -> `npx -y opencode-ai acp`
- `kiro` -> `kiro-cli acp`
- `kilocode` -> `npx -y @kilocode/cli acp`
- `opencode` -> `npx -y opencode-ai acp`
- `qwen` -> `qwen --acp`
- `trae` -> `traecli acp serve`

Rules:

Expand Down
1 change: 1 addition & 0 deletions src/agent-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const AGENT_REGISTRY: Record<string, string> = {
kiro: "kiro-cli acp",
opencode: "npx -y opencode-ai acp",
qwen: "qwen --acp",
trae: "traecli acp serve",
};

const AGENT_ALIASES: Record<string, string> = {
Expand Down
6 changes: 6 additions & 0 deletions test/agent-registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ test("resolveAgentCommand prefers explicit alias overrides over built-in alias m
);
});

test("trae built-in uses the standard traecli executable", () => {
assert.equal(AGENT_REGISTRY.trae, "traecli acp serve");
assert.equal(resolveAgentCommand("trae"), "traecli acp serve");
});

test("listBuiltInAgents preserves the required example prefix and alphabetical tail", () => {
const agents = listBuiltInAgents();
assert.deepEqual(agents, Object.keys(AGENT_REGISTRY));
Expand All @@ -52,6 +57,7 @@ test("listBuiltInAgents preserves the required example prefix and alphabetical t
"kiro",
"opencode",
"qwen",
"trae",
]);
});

Expand Down