Skip to content

feat: add TRAE CLI (traecli) as an opt-in built-in agent - #97

Merged
zzxwill merged 1 commit into
masterfrom
feat/traecli-agent
Sep 23, 2026
Merged

zzxwill merged 1 commit into
masterfrom
feat/traecli-agent

Conversation

@zzxwill

@zzxwill zzxwill commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

Closes #96.

What

TraeCode CLI 2.0 (traecli) becomes a built-in agent named trae, usable as the main agent (--judge trae, jury agents judge trae) or as a reviewer (--jury trae / --reviewer trae). It ships opt-in, like the other recent agents, so a default install needs no extra CLI.

Role Invocation
Reviewer traecli exec --sandbox read-only --skip-git-repo-check -- <prompt>
Judge traecli exec --sandbox workspace-write --skip-git-repo-check -- <prompt>
  • Sandbox level sandbox: reviews are read-only at the CLI level.
  • The prompt follows --, so a prompt starting with - is never parsed as a flag.
  • report: "whole": exec prints the final message to stdout.
  • No resume: exec output does not name a session id, so replies start fresh with the finding context.

Verification

  • traecli 0.206.1 installed from the official v2 release manifest (SHA-256 checked); every flag above confirmed in traecli exec --help. An unknown flag is rejected by the CLI, while both role argvs, including a ---leading prompt, parse and reach authentication.
  • npm test: 174/174 pass, including a new trae case in test/new-agents.test.js (literal argv for both roles, selection, jury agents judge, failure/timeout/missing binary).
  • npm run test:package: installed-package checks pass.
  • Packed build + real traecli (not logged in): jury agents shows ok trae; jury review --jury trae reports the auth error, marks the reviewer failed and exits 1, so an unauthenticated run never approves.

Not yet verified: a logged-in review end to end (needs a TRAE Enterprise account). An RC will be published for testing on a machine where traecli is logged in.

Notes

  • install_v2.sh is served only inside mainland China. docs/configuration.md documents the fallback: fetch the binary from the official manifest (lf-cdn.trae.com.cn/.../trae-cli/v2/latest.json) and check its sha256.
  • TraeCode CLI requires a TRAE Enterprise flagship plan.

🤖 Generated with Claude Code

Closes #96. TraeCode CLI 2.0 can now be the main agent (--judge trae)
or a reviewer (--jury trae). Reviews run `traecli exec --sandbox
read-only`; the judge uses `--sandbox workspace-write`. The prompt
follows `--` so a prompt beginning with `-` is never parsed as a flag.

Flags verified against traecli 0.206.1 `exec --help`. Replies start
fresh rather than resuming, since exec output does not name a session id.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@zzxwill
zzxwill merged commit e7f7f03 into master Sep 23, 2026
8 checks passed
@zzxwill
zzxwill deleted the feat/traecli-agent branch September 23, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support traecli

1 participant