feat: add TRAE CLI (traecli) as an opt-in built-in agent - #97
Merged
Merged
Conversation
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
force-pushed
the
feat/traecli-agent
branch
from
September 23, 2026 05:41
abab557 to
ef7a153
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.
Closes #96.
What
TraeCode CLI 2.0 (
traecli) becomes a built-in agent namedtrae, 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.traecli exec --sandbox read-only --skip-git-repo-check -- <prompt>traecli exec --sandbox workspace-write --skip-git-repo-check -- <prompt>sandbox: reviews are read-only at the CLI level.--, so a prompt starting with-is never parsed as a flag.report: "whole":execprints the final message to stdout.execoutput does not name a session id, so replies start fresh with the finding context.Verification
traecli0.206.1 installed from the official v2 release manifest (SHA-256 checked); every flag above confirmed intraecli 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 newtraecase intest/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.traecli(not logged in):jury agentsshowsok trae;jury review --jury traereports 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
traecliis logged in.Notes
install_v2.shis served only inside mainland China.docs/configuration.mddocuments the fallback: fetch the binary from the official manifest (lf-cdn.trae.com.cn/.../trae-cli/v2/latest.json) and check itssha256.🤖 Generated with Claude Code