feat(runtime): add CodeBuddy CLI agent#63
Open
wanshaoyuan wants to merge 1 commit into
Open
Conversation
Add Tencent CodeBuddy CLI (npm @tencent-ai/codebuddy-code) as a new agent backend. CodeBuddy Code is a terminal AI coding agent in the claude-code family, so it reuses the same single-shot headless contract. - defs/codebuddy.ts: AgentDef (id `codebuddy`, plain stream, prompt via stdin). Headless flags `-p --dangerously-skip-permissions` per the CodeBuddy CLI Reference — the skip-permissions flag is required when `-p` needs tool access, otherwise the run blocks on an interactive permission prompt the studio cannot answer. - registry.ts: register codebuddyCli in AGENT_DEFS. - studio: bundle brand icon + AGENT_LOGOS mapping. - docs: list CodeBuddy CLI in README / README.zh-CN; bump agent count 14 -> 15. - test: unit tests for registration + headless flags (node:test, 2 cases).
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.
What
Adds Tencent CodeBuddy CLI (
@tencent-ai/codebuddy-code) as a new agent backend, bringing the supported count to 15.Why
CodeBuddy Code is a terminal AI coding agent in the claude-code family. It exposes the same single-shot headless contract html-video already relies on, so wiring it in is a self-contained
packages/runtime/change (per the "Add a New Agent Runtime" guide, following Trae CLI #12 / Qoder #44).Changes
defs/codebuddy.ts—AgentDef(id: codebuddy,streamFormat: plain,promptViaStdin: true).-p --dangerously-skip-permissions: the skip-permissions flag is required by the CodeBuddy CLI Reference when-p/--printneeds tool access, otherwise the run blocks on an interactive permission prompt the studio can't answer. Prompt goes via stdin (claude-code convention) — no-placeholder needed.registry.ts— register inAGENT_DEFS.AGENT_LOGOSmapping.node:testcases (registration + headless flags).How to verify
```bash
pnpm --filter @html-video/runtime build
node --test packages/runtime/test/codebuddy.test.mjs # 2 pass
node packages/cli/dist/bin.js doctor # CodeBuddy CLI appears if
codebuddyis on PATH```