Skip to content

feat(runtime): add CodeBuddy CLI agent#63

Open
wanshaoyuan wants to merge 1 commit into
nexu-io:mainfrom
wanshaoyuan:support-codebuddy_cli
Open

feat(runtime): add CodeBuddy CLI agent#63
wanshaoyuan wants to merge 1 commit into
nexu-io:mainfrom
wanshaoyuan:support-codebuddy_cli

Conversation

@wanshaoyuan

Copy link
Copy Markdown

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.tsAgentDef (id: codebuddy, streamFormat: plain, promptViaStdin: true).
  • Headless flags -p --dangerously-skip-permissions: the skip-permissions flag is required by the CodeBuddy CLI Reference when -p/--print needs 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 in AGENT_DEFS.
  • Studio: bundled brand icon + AGENT_LOGOS mapping.
  • Docs: README / README.zh-CN agent lists + badge (14 → 15).
  • Tests: 2 node:test cases (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 codebuddy is on PATH
```

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).
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.

1 participant