qwen-audio-agent 0.9.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CONTRIBUTING.md CHANGED
@@ -51,8 +51,13 @@ npm run version:major # 0.5.0 → 1.0.0,不兼容或稳定版
51
51
  npm run version:set -- 0.6.0-beta.1 # 指定预发布版本
52
52
  ```
53
53
 
54
- 更新版本后必须同步维护 `CHANGELOG.md` 并运行 `npm run release:check`。版本标签必须
55
- 与根 `package.json` 完全一致,例如 `v0.5.0`。标签触发发布工作流:
56
- 先运行完整检查,再以 npm provenance 发布公共包,随后构建、签名、公证 macOS
57
- DMG 并创建 GitHub Release。仓库维护者需预先配置 `NPM_TOKEN`、Apple Developer
58
- 签名证书和公证凭据。
54
+ 更新版本后必须同步维护 `CHANGELOG.md` 并运行 `npm run release:check`。发布改动
55
+ 应从专用分支提交,例如 `release/0.11.0` 或 `codex/release-0.11.0`。Release PR
56
+ 合并到 `main` 后,工作流会确认版本确实发生变化、版本对应的 Changelog 存在且
57
+ 完整检查通过,然后自动创建 `v0.11.0` 标签、以 npm provenance 发布公共包,
58
+ 并创建 GitHub Release。启用 macOS 正式发布时,还会构建、签名、公证并上传 DMG。
59
+
60
+ 普通 PR 合并或未改变版本号的 `main` 更新不会触发发布。若发布在创建标签、上传
61
+ npm 或生成 Release 之间中断,可从 GitHub Actions 手动运行 Release 工作流,并
62
+ 输入当前 `package.json` 中的版本继续;已经完成的阶段会被安全复用。仓库维护者
63
+ 需预先配置 `NPM_TOKEN`,以及可选的 Apple Developer 签名证书和公证凭据。
package/PRIVACY.md CHANGED
@@ -9,9 +9,9 @@ qwen-audio-agent 是本地运行的语音前台,不包含内置遥测、广告
9
9
  DashScope 的 Qwen Audio Realtime 服务。若用户配置其他兼容服务,则数据发送到
10
10
  该服务。
11
11
  - 委派任务、必要的对话上下文和任务结果会发送给用户选择的后台 Agent,例如
12
- OpenCode、OpenClaw、Qoder、Hermes、CodeBuddy、Codex 或用户配置的其他 ACP
13
- Agent。后台 Agent 还可能按照用户配置调用模型、工具、MCP 服务或访问项目文件;
14
- 这些服务各自的隐私政策同样适用。
12
+ OpenCode、OpenClaw、Qoder、Hermes、CodeBuddy、Codex、Claude Code 或用户配置的
13
+ 其他 ACP Agent。后台 Agent 还可能按照用户配置调用模型、工具、MCP 服务或访问
14
+ 项目文件;这些服务各自的隐私政策同样适用。
15
15
  - Markdown 中的远程图片、音频和视频默认不会自动加载。用户点击加载或打开链接
16
16
  后,目标站点可能获知用户的 IP 地址和浏览器信息。
17
17
 
package/README.md CHANGED
@@ -7,19 +7,21 @@
7
7
  [![node](https://img.shields.io/badge/node-%E2%89%A522.22.2-brightgreen)](https://nodejs.org/)
8
8
  [![license](https://img.shields.io/github/license/QwenAudio/qwen-audio-agent)](LICENSE)
9
9
 
10
- ## 我们不是这样和人交流的。
10
+ ## Agent,始终在场
11
11
 
12
- 没有人说完一句话,然后站在那里等待一分钟。
12
+ 真正的交流,不该在说完一句话后,就陷入漫长的等待。
13
13
 
14
- 没有人会因为对方去查资料,就停止整个聊天。
14
+ 也不该因为 Agent 正在查资料、调用工具或处理任务,整场对话就此暂停。
15
15
 
16
- 真正的交流,是连续的。
16
+ 交流应该是连续的。
17
17
 
18
- 而 Agent,也应该如此。
18
+ Agent 也应该始终在场。
19
19
 
20
- 所以,我们做了 **qwen-audio-agent**。
20
+ 所以,我们做了 **qwen-audio-agent**——让 Agent 持续交流、持续工作、持续在场的实时语音运行时。
21
21
 
22
- 一个让 Agent 持续交流、持续工作、持续在场的实时语音运行时。
22
+ 无论是聊天、思考,还是处理任务,Agent 都始终在这场对话里。它会倾听,会回应,也会在任务完成时自然地告诉你:
23
+
24
+ “已经好了。”
23
25
 
24
26
  ## 核心特色
25
27
 
@@ -37,7 +39,7 @@
37
39
  能直接回答的问题会立即回答;需要工具或持续处理时,任务会交给后台 Agent。
38
40
  整个过程中,用户面对的始终是同一个助理。
39
41
 
40
- <details>
42
+ <details open>
41
43
  <summary>查看详细架构</summary>
42
44
 
43
45
  ![qwen-audio-agent 接入参考架构](docs/qwen-audio-agent-three-layer-architecture.png)
@@ -48,17 +50,18 @@
48
50
 
49
51
  ## Agent 支持
50
52
 
51
- | 后台 Agent | 状态 | 主要能力 | 推荐指数 |
53
+ | 后台 Agent | 接入方式 | 接入准备 | 推荐指数 |
52
54
  | --- | --- | --- | --- |
53
- | OpenCode | 已支持 | 工具与代码任务、项目 Session、进度查询与取消 | ★★★★★ |
54
- | OpenClaw | 已支持 | Agent、工具、任务执行与权限控制 | ★★★★★ |
55
- | Qoder | 已支持 | 原生 CLI Session、新建或继续项目、任务委派与取消 | ★★★★★ |
56
- | Hermes | 已支持 | 原生 ACP、工具调用、项目 Session 与任务执行 | ★★★★☆ |
57
- | CodeBuddy | 已支持 | 原生 ACP、自定义模型、项目 Session 与权限控制 | ★★★★☆ |
58
- | Codex | 已支持 | Codex ACP、代码任务、项目 Session 与权限控制 | ★★★★☆ |
55
+ | OpenCode | 原生 ACP | 可自动安装 | ★★★★★ |
56
+ | OpenClaw | 内置 ACP 桥接 | 可自动安装 | ★★★★★ |
57
+ | Qoder | 原生 ACP | 需要用户安装和认证 | ★★★★★ |
58
+ | Hermes | 原生 ACP | 需要用户安装和配置模型 | ★★★★☆ |
59
+ | CodeBuddy | 原生 ACP | 需要用户安装和认证 | ★★★★☆ |
60
+ | Codex | 外部 ACP 适配 | 可自动安装 | ★★★★☆ |
61
+ | Claude Code | 外部 ACP 适配 | 可自动安装,需要用户认证 | ★★★★☆ |
59
62
 
60
63
  推荐指数综合反映当前集成完整度、兼容性和实际验证程度:五星表示已经过充分测试的
61
- 推荐集成,四星表示正在开发或尚未完成同等范围验证。是否当前可用以状态栏为准。
64
+ 推荐集成,四星表示正在开发或尚未完成同等范围验证。
62
65
  详细配置和能力边界见[配置说明](docs/configuration.md)。
63
66
 
64
67
  ## 安装
@@ -101,6 +104,8 @@ npm install -g git+https://github.com/QwenAudio/qwen-audio-agent.git
101
104
 
102
105
  ## 获取 DashScope API Key
103
106
 
107
+ 阿里云百炼为 Qwen Audio 3.0 Realtime 提供免费体验额度,创建 API Key 后即可免费开始使用 qwen-audio-agent。
108
+
104
109
  1. 登录阿里云;如果尚未开通,请先按提示开通阿里云百炼。
105
110
  2. 打开百炼控制台的 [API Key 页面](https://bailian.console.aliyun.com/?tab=model#/api-key),
106
111
  单击**创建 API Key**。
@@ -215,11 +220,11 @@ AGENT_PROTOCOL=qoder
215
220
  QODER_MODEL=auto
216
221
  ```
217
222
 
218
- Hermes、CodeBuddy 和 Codex 也可直接选择:
223
+ Hermes、CodeBuddy、Codex 和 Claude Code 也可直接选择:
219
224
 
220
225
  ```dotenv
221
226
  AGENT_PROTOCOL=hermes
222
- # 或 codebuddy、codex
227
+ # 或 codebuddy、codex、claude
223
228
  ```
224
229
 
225
230
  使用其他支持 ACP stdio 的 Agent:
package/README_EN.md CHANGED
@@ -7,22 +7,25 @@
7
7
  [![node](https://img.shields.io/badge/node-%E2%89%A522.22.2-brightgreen)](https://nodejs.org/)
8
8
  [![license](https://img.shields.io/github/license/QwenAudio/qwen-audio-agent)](LICENSE)
9
9
 
10
- ## Say it. Don't prompt it.
10
+ ## Agent Presence
11
11
 
12
- No one says one thing, then stands there waiting for a minute.
12
+ Real conversation should not leave you waiting after a single sentence.
13
13
 
14
- No one stops an entire conversation because someone needs to look something
15
- up.
14
+ Nor should it grind to a halt just because the Agent is looking something up,
15
+ calling a tool, or working on a task.
16
16
 
17
- Real conversation is continuous.
17
+ Conversation should keep flowing.
18
18
 
19
- Agents should be too.
19
+ An Agent should always be present.
20
20
 
21
- That is why we built **qwen-audio-agent**.
21
+ That is why we built **qwen-audio-agent**—a realtime voice runtime that keeps
22
+ Agents talking, working, and present.
22
23
 
23
- A realtime voice runtime that keeps Agents talking, working, and present.
24
+ Whether chatting with you, thinking through a problem, or working on a task,
25
+ your Agent remains in the conversation. It listens, responds, and when the
26
+ task is complete, naturally tells you:
24
27
 
25
- *Real-time Voice Runtime for AI Agents*
28
+ “It’s ready.”
26
29
 
27
30
  ## Core Features
28
31
 
@@ -46,7 +49,7 @@ that needs tools or sustained processing is delegated to a backend Agent.
46
49
  Throughout the entire interaction, you are always talking to the same
47
50
  assistant.
48
51
 
49
- <details>
52
+ <details open>
50
53
  <summary>View the detailed architecture</summary>
51
54
 
52
55
  ![qwen-audio-agent integration reference architecture](docs/qwen-audio-agent-three-layer-architecture-en.png)
@@ -58,21 +61,22 @@ module walkthrough.
58
61
 
59
62
  ## Agent Support
60
63
 
61
- | Backend Agent | Status | Main capabilities | Rating |
64
+ | Backend Agent | Integration | Setup | Rating |
62
65
  | --- | --- | --- | --- |
63
- | OpenCode | Supported | Tools and coding tasks, project Sessions, progress queries, and cancellation | ★★★★★ |
64
- | OpenClaw | Supported | Agents, tools, task execution, and permission control | ★★★★★ |
65
- | Qoder | Supported | Native CLI Sessions, starting or continuing projects, task delegation, and cancellation | ★★★★★ |
66
- | Hermes | Supported | Native ACP, tool calls, project Sessions, and task execution | ★★★★☆ |
67
- | CodeBuddy | Supported | Native ACP, custom models, project Sessions, and permission control | ★★★★☆ |
68
- | Codex | Supported | Codex ACP, coding tasks, project Sessions, and permission control | ★★★★☆ |
66
+ | OpenCode | Native ACP | Automatic installation supported | ★★★★★ |
67
+ | OpenClaw | Built-in ACP Bridge | Automatic installation supported | ★★★★★ |
68
+ | Qoder | Native ACP | Requires user installation and authentication | ★★★★★ |
69
+ | Hermes | Native ACP | Requires user installation and model configuration | ★★★★☆ |
70
+ | CodeBuddy | Native ACP | Requires user installation and authentication | ★★★★☆ |
71
+ | Codex | External ACP Adapter | Automatic installation supported | ★★★★☆ |
72
+ | Claude Code | External ACP Adapter | Automatic installation supported; user authentication required | ★★★★☆ |
69
73
 
70
74
  Ratings reflect the current integration completeness, compatibility, and
71
75
  extent of real-world validation. Five stars identify recommended integrations
72
76
  that have been thoroughly tested; four stars identify integrations still in
73
- development or not yet validated to the same extent. Refer to the status column
74
- for current availability. See the [configuration guide](docs/configuration.md)
75
- for detailed setup and capability boundaries.
77
+ development or not yet validated to the same extent. See the
78
+ [configuration guide](docs/configuration.md) for detailed setup and capability
79
+ boundaries.
76
80
 
77
81
  ## Installation
78
82
 
@@ -115,6 +119,9 @@ npm install -g git+https://github.com/QwenAudio/qwen-audio-agent.git
115
119
 
116
120
  ## Get a DashScope API Key
117
121
 
122
+ Alibaba Cloud Model Studio offers free trial credits for Qwen Audio 3.0
123
+ Realtime. Create an API Key to start using qwen-audio-agent for free.
124
+
118
125
  1. Sign in to Alibaba Cloud. If Model Studio is not yet activated, follow the
119
126
  prompt to activate it.
120
127
  2. Open the Model Studio
@@ -240,11 +247,11 @@ AGENT_PROTOCOL=qoder
240
247
  QODER_MODEL=auto
241
248
  ```
242
249
 
243
- Hermes, CodeBuddy, and Codex can also be selected directly:
250
+ Hermes, CodeBuddy, Codex, and Claude Code can also be selected directly:
244
251
 
245
252
  ```dotenv
246
253
  AGENT_PROTOCOL=hermes
247
- # Or codebuddy or codex
254
+ # Or codebuddy, codex, or claude
248
255
  ```
249
256
 
250
257
  Use another Agent that supports ACP over stdio:
@@ -17,6 +17,7 @@ qwen-audio-agent 使用并分发若干开源组件。项目自身使用 Apache L
17
17
  | electron-builder | MIT | https://github.com/electron-userland/electron-builder |
18
18
  | Agent Client Protocol TypeScript SDK | Apache-2.0 | https://github.com/agentclientprotocol/typescript-sdk |
19
19
  | Codex ACP adapter | Apache-2.0 | https://github.com/agentclientprotocol/codex-acp |
20
+ | Claude Code ACP adapter | Apache-2.0 | https://github.com/zed-industries/claude-code-acp |
20
21
  | Model Context Protocol TypeScript SDK | MIT | https://github.com/modelcontextprotocol/typescript-sdk |
21
22
  | Zod | MIT | https://github.com/colinhacks/zod |
22
23
  | concurrently | MIT | https://github.com/open-cli-tools/concurrently |
package/cli/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qwen-audio-agent/cli",
3
3
  "private": true,
4
- "version": "0.9.1",
4
+ "version": "0.10.0",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "qwenaudio": "./bin/qwenaudio.mjs"
@@ -211,7 +211,7 @@ export function helpText() {
211
211
  '',
212
212
  'Gateway 选项:',
213
213
  ' --url URL Gateway 地址(默认 http://127.0.0.1:3101)',
214
- ' --backend NAME 必填:openclaw、opencode、qoder、hermes、codebuddy、codex 或 acp(也可在 config.env 设置 AGENT_PROTOCOL)',
214
+ ' --backend NAME 必填:openclaw、opencode、qoder、hermes、codebuddy、codex、claude 或 acp(也可在 config.env 设置 AGENT_PROTOCOL)',
215
215
  ' --attach-openclaw 连接用户已启动的 OpenClaw Gateway',
216
216
  ' --backend-permission-mode MODE native(默认)或 full(最高权限)',
217
217
  ' --backend-url URL 后台 Server 地址',
@@ -0,0 +1,16 @@
1
+ # qwen-audio-agent Claude Code Coordinator Workspace
2
+
3
+ This workspace belongs to the persistent qwen-audio-agent coordinator Session.
4
+
5
+ - Treat each qwen-audio-agent request envelope as the current voice request.
6
+ - Use the qwen_audio_agent Session tools to list, start, or continue native
7
+ Claude Code project Sessions.
8
+ - Send natural user task text to project Sessions. Never copy transport
9
+ envelopes, work IDs, or internal routing instructions into project history.
10
+ - Preserve the requested action level. An implementation, fix, or "continue
11
+ working" request must remain an execution request; do not turn it into a
12
+ read-only review or wait for confirmation unless the user asked for planning
13
+ or an indispensable choice is missing.
14
+ - Continue an existing Session when the user refers to prior Claude Code work.
15
+ - Only work in this coordinator workspace when no project Session is needed.
16
+ - Never expose Session IDs, delegation IDs, or internal routing metadata.
@@ -198,7 +198,35 @@ CODEX_MODEL=qwen3.7-max
198
198
  CODEX_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
199
199
  ```
200
200
 
201
- Hermes、CodeBuddy 和 Codex 均由 Gateway 直接管理 ACP 子进程,不接受
201
+ ### Claude Code
202
+
203
+ Claude Code 通过 Zed 维护的
204
+ [@zed-industries/claude-code-acp](https://github.com/zed-industries/claude-code-acp)
205
+ 接入。启动脚本优先使用已经安装的 `claude-code-acp`,否则通过 `npx` 使用固定
206
+ 版本;无需单独安装 ACP 适配器。
207
+
208
+ ```dotenv
209
+ AGENT_PROTOCOL=claude
210
+ QWEN_AUDIO_AGENT_BACKEND_PERMISSION_MODE=native
211
+ ```
212
+
213
+ 模型和凭据由 Claude Code 自己管理,不受
214
+ `QWEN_AUDIO_AGENT_BACKEND_MODEL` 影响。默认复用 `~/.claude` 中已有的登录状态;
215
+ 也可以设置 `ANTHROPIC_API_KEY`。高级配置:
216
+
217
+ ```dotenv
218
+ CLAUDE_CODE_ACP_BIN=
219
+ CLAUDE_CODE_ACP_PACKAGE=@zed-industries/claude-code-acp@0.16.2
220
+ CLAUDE_CODE_ACP_RUNTIME=auto
221
+ CLAUDE_WORKSPACE=
222
+ CLAUDE_CODE_EXECUTABLE=
223
+ CLAUDE_CONFIG_DIR=
224
+ ```
225
+
226
+ 设置 `CLAUDE_CONFIG_DIR` 会改用独立配置目录,需要在该目录中单独完成认证。
227
+ `CLAUDE_CODE_EXECUTABLE` 只用于覆盖适配器默认使用的 Claude Code 可执行文件。
228
+
229
+ Hermes、CodeBuddy、Codex 和 Claude Code 均由 Gateway 直接管理 ACP 子进程,不接受
202
230
  `--backend-url`。
203
231
 
204
232
  ## 后台权限模式
@@ -208,8 +236,8 @@ Hermes、CodeBuddy 和 Codex 均由 Gateway 直接管理 ACP 子进程,不接
208
236
  - `native`(默认):权限由后台 Agent 自己判断和询问,Gateway 只负责原样转发。
209
237
  - `full`:启动时明确授予最高权限,后台可直接执行命令、读写文件,不再逐次确认。
210
238
 
211
- `full` 当前支持 OpenCode、Qoder、Hermes、CodeBuddy 和
212
- Codex。Gateway 会自动批准这些 ACP 后台发起的权限请求;此外 Qoder 和 CodeBuddy
239
+ `full` 当前支持 OpenCode、Qoder、Hermes、CodeBuddy、Codex 和
240
+ Claude Code。Gateway 会自动批准这些 ACP 后台发起的权限请求;此外 Qoder 和 CodeBuddy
213
241
  CLI 会使用 `--dangerously-skip-permissions`,OpenCode 会在受管进程的内联配置中为
214
242
  协调 Agent 和任务 Agent 设置 `permission: "allow"`,Codex 会使用
215
243
  `agent-full-access` 模式。
@@ -326,8 +354,8 @@ OpenCode ACP 接入当前要求 OpenCode `1.18.0` 或更高版本。`auto` 模
326
354
 
327
355
  qwen-audio-agent 启动的 OpenCode 默认继承用户原有的全局配置(通常是
328
356
  `~/.config/opencode/opencode.json`),因此已经安装的 MCP、Skill、权限、模型和
329
- 插件可以继续使用;qwen-audio-agent 的协调 Agent 配置以附加形式加载,第三层
330
- Session 工具则由 Gateway 通过 ACP 动态提供。
357
+ 插件可以继续使用。协调规则和第三层 Session 工具由 Gateway 在每轮请求中通过
358
+ ACP 动态提供,不会额外安装或覆盖 OpenCode Agent。
331
359
 
332
360
  如果用户配置或第三方插件与 qwen-audio-agent 冲突,可以临时启用隔离模式排查:
333
361
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qwen-audio-agent",
3
- "version": "0.9.1",
3
+ "version": "0.10.0",
4
4
  "description": "A realtime voice frontend for mainstream AI agents.",
5
5
  "author": "qwen-audio-agent contributors",
6
6
  "license": "Apache-2.0",
@@ -19,7 +19,8 @@
19
19
  "agent",
20
20
  "opencode",
21
21
  "openclaw",
22
- "qoder"
22
+ "qoder",
23
+ "claude-code"
23
24
  ],
24
25
  "type": "module",
25
26
  "bin": {
@@ -36,8 +37,8 @@
36
37
  "config/codebuddy/workspace/AGENTS.md",
37
38
  "config/codebuddy/workspace/.codebuddy/models.json",
38
39
  "config/codex/workspace/AGENTS.md",
40
+ "config/claude/workspace/AGENTS.md",
39
41
  "config/acp/workspace/AGENTS.md",
40
- "config/opencode/agents/",
41
42
  "config/opencode/workspace/AGENTS.md",
42
43
  "config/qoder/workspace/AGENTS.md",
43
44
  "docs/architecture.md",
@@ -0,0 +1,59 @@
1
+ #!/bin/sh
2
+ set -eu
3
+
4
+ QWEN_AUDIO_AGENT_ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
5
+ CLAUDE_CODE_ACP_RUNTIME=${CLAUDE_CODE_ACP_RUNTIME:-auto}
6
+ CLAUDE_CODE_ACP_PACKAGE=${CLAUDE_CODE_ACP_PACKAGE:-@zed-industries/claude-code-acp@0.16.2}
7
+
8
+ if [ "${QWEN_AUDIO_AGENT_ENV_LOADED:-}" != "1" ]; then
9
+ if [ -f "$QWEN_AUDIO_AGENT_ROOT/.env.local" ]; then
10
+ set -a
11
+ . "$QWEN_AUDIO_AGENT_ROOT/.env.local"
12
+ set +a
13
+ elif [ -f "$QWEN_AUDIO_AGENT_ROOT/.env" ]; then
14
+ set -a
15
+ . "$QWEN_AUDIO_AGENT_ROOT/.env"
16
+ set +a
17
+ fi
18
+ export QWEN_AUDIO_AGENT_ENV_LOADED=1
19
+ fi
20
+
21
+ if [ -z "${ANTHROPIC_API_KEY:-}" ] && [ -n "${CLAUDE_API_KEY:-}" ]; then
22
+ export ANTHROPIC_API_KEY="$CLAUDE_API_KEY"
23
+ fi
24
+
25
+ run_binary() {
26
+ exec "$CLAUDE_CODE_ACP_BIN" "$@"
27
+ }
28
+
29
+ run_package() {
30
+ if ! command -v npx >/dev/null 2>&1; then
31
+ echo "claude-code-acp package mode requires npx." >&2
32
+ exit 1
33
+ fi
34
+ exec npx -y "$CLAUDE_CODE_ACP_PACKAGE" "$@"
35
+ }
36
+
37
+ case "$CLAUDE_CODE_ACP_RUNTIME" in
38
+ binary)
39
+ CLAUDE_CODE_ACP_BIN=${CLAUDE_CODE_ACP_BIN:-claude-code-acp}
40
+ run_binary "$@"
41
+ ;;
42
+ package)
43
+ run_package "$@"
44
+ ;;
45
+ auto)
46
+ if [ -n "${CLAUDE_CODE_ACP_BIN:-}" ]; then
47
+ run_binary "$@"
48
+ elif command -v claude-code-acp >/dev/null 2>&1; then
49
+ CLAUDE_CODE_ACP_BIN=$(command -v claude-code-acp)
50
+ run_binary "$@"
51
+ else
52
+ run_package "$@"
53
+ fi
54
+ ;;
55
+ *)
56
+ echo "Unsupported CLAUDE_CODE_ACP_RUNTIME: $CLAUDE_CODE_ACP_RUNTIME" >&2
57
+ exit 1
58
+ ;;
59
+ esac
@@ -28,9 +28,7 @@ if [ "${QWEN_AUDIO_AGENT_ENV_LOADED:-}" != "1" ]; then
28
28
  export QWEN_AUDIO_AGENT_ENV_LOADED=1
29
29
  fi
30
30
 
31
- export OPENCODE_CONFIG_DIR=${OPENCODE_CONFIG_DIR:-"$QWEN_AUDIO_AGENT_ROOT/config/opencode"}
32
- # OpenCode merges this qwen-audio-agent overlay with the user's normal global config,
33
- # preserving their MCP servers, skills, permissions and plugins. Isolation is
31
+ # Preserve the user's native OpenCode configuration. Isolation remains
34
32
  # available as an explicit troubleshooting option for conflicting user config.
35
33
  if [ -n "${QWEN_AUDIO_AGENT_OPENCODE_XDG_CONFIG_HOME:-}" ]; then
36
34
  export XDG_CONFIG_HOME="$QWEN_AUDIO_AGENT_OPENCODE_XDG_CONFIG_HOME"
@@ -85,6 +85,11 @@ if (!readFileSync('scripts/codex-acp', 'utf8').includes(
85
85
  )) {
86
86
  throw new Error('Codex ACP fallback package is not pinned')
87
87
  }
88
+ if (!readFileSync('scripts/claude-code-acp', 'utf8').includes(
89
+ '@zed-industries/claude-code-acp@0.16.2',
90
+ )) {
91
+ throw new Error('Claude Code ACP fallback package is not pinned')
92
+ }
88
93
  if (
89
94
  manifest.devDependencies?.['electron-builder'] !== '26.15.7'
90
95
  || manifest.overrides?.['@electron/asar'] !== '4.2.1'
@@ -0,0 +1,108 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { appendFileSync, readFileSync } from 'node:fs'
4
+ import { execFileSync } from 'node:child_process'
5
+ import { dirname, resolve } from 'node:path'
6
+ import { fileURLToPath, pathToFileURL } from 'node:url'
7
+ import { isValidVersion } from './set-version.mjs'
8
+
9
+ const SCRIPT_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..')
10
+
11
+ function changelogHasVersion(changelog, version) {
12
+ return String(changelog)
13
+ .split(/\r?\n/)
14
+ .some(line => line.trim() === `## ${version}`)
15
+ }
16
+
17
+ export function createReleasePlan({
18
+ currentVersion,
19
+ previousVersion = '',
20
+ requestedVersion = '',
21
+ changelog = '',
22
+ }) {
23
+ if (!isValidVersion(currentVersion)) {
24
+ throw new Error(`当前发布版本无效:${currentVersion}`)
25
+ }
26
+ if (requestedVersion && requestedVersion !== currentVersion) {
27
+ throw new Error(
28
+ `手动请求版本 ${requestedVersion} 与 package.json ${currentVersion} 不一致`,
29
+ )
30
+ }
31
+ if (previousVersion && !isValidVersion(previousVersion)) {
32
+ throw new Error(`合并前版本无效:${previousVersion}`)
33
+ }
34
+
35
+ const release = Boolean(requestedVersion)
36
+ || Boolean(previousVersion && previousVersion !== currentVersion)
37
+ if (release && !changelogHasVersion(changelog, currentVersion)) {
38
+ throw new Error(`CHANGELOG.md 缺少 ## ${currentVersion}`)
39
+ }
40
+
41
+ return {
42
+ release,
43
+ version: currentVersion,
44
+ tag: `v${currentVersion}`,
45
+ previousVersion,
46
+ manual: Boolean(requestedVersion),
47
+ }
48
+ }
49
+
50
+ function versionAtRevision(root, revision) {
51
+ if (!revision || /^0+$/.test(revision)) return ''
52
+ const content = execFileSync(
53
+ 'git',
54
+ ['show', `${revision}:package.json`],
55
+ { cwd: root, encoding: 'utf8' },
56
+ )
57
+ return JSON.parse(content).version
58
+ }
59
+
60
+ function writeOutputs(path, plan) {
61
+ if (!path) return
62
+ appendFileSync(path, [
63
+ `release=${plan.release}`,
64
+ `version=${plan.version}`,
65
+ `tag=${plan.tag}`,
66
+ `previous_version=${plan.previousVersion}`,
67
+ `manual=${plan.manual}`,
68
+ '',
69
+ ].join('\n'))
70
+ }
71
+
72
+ const isMain = process.argv[1]
73
+ && import.meta.url === pathToFileURL(process.argv[1]).href
74
+
75
+ if (isMain) {
76
+ try {
77
+ const manifest = JSON.parse(
78
+ readFileSync(resolve(SCRIPT_ROOT, 'package.json'), 'utf8'),
79
+ )
80
+ const requestedVersion = String(
81
+ process.env.RELEASE_REQUESTED_VERSION || '',
82
+ ).trim()
83
+ const previousVersion = requestedVersion
84
+ ? ''
85
+ : versionAtRevision(
86
+ SCRIPT_ROOT,
87
+ String(process.env.RELEASE_BEFORE_SHA || '').trim(),
88
+ )
89
+ const plan = createReleasePlan({
90
+ currentVersion: manifest.version,
91
+ previousVersion,
92
+ requestedVersion,
93
+ changelog: readFileSync(
94
+ resolve(SCRIPT_ROOT, 'CHANGELOG.md'),
95
+ 'utf8',
96
+ ),
97
+ })
98
+ writeOutputs(process.env.GITHUB_OUTPUT, plan)
99
+ process.stdout.write(
100
+ plan.release
101
+ ? `准备发布 ${plan.tag}${plan.manual ? '(手动恢复)' : ''}\n`
102
+ : `版本仍为 ${plan.version},本次 main 更新无需发布。\n`,
103
+ )
104
+ } catch (error) {
105
+ process.stderr.write(`发布计划检查失败:${error.message}\n`)
106
+ process.exitCode = 1
107
+ }
108
+ }
@@ -45,8 +45,8 @@ const required = [
45
45
  'config/codebuddy/workspace/AGENTS.md',
46
46
  'config/codebuddy/workspace/.codebuddy/models.json',
47
47
  'config/codex/workspace/AGENTS.md',
48
+ 'config/claude/workspace/AGENTS.md',
48
49
  'config/acp/workspace/AGENTS.md',
49
- 'config/opencode/agents/qwen-audio-agent-backend.md',
50
50
  'config/opencode/workspace/AGENTS.md',
51
51
  'config/qoder/workspace/AGENTS.md',
52
52
  'CONTRIBUTING.md',
@@ -59,6 +59,7 @@ const required = [
59
59
  'scripts/audit-dependencies.mjs',
60
60
  'scripts/check-desktop-release-env.mjs',
61
61
  'scripts/codex-acp',
62
+ 'scripts/claude-code-acp',
62
63
  'scripts/install-global.mjs',
63
64
  'scripts/opencode-acp',
64
65
  'scripts/prepare-build.mjs',
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qwen-audio-agent/server",
3
3
  "private": true,
4
- "version": "0.9.1",
4
+ "version": "0.10.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "node --watch src/index.mjs",
@@ -55,6 +55,7 @@ export class AcpBackendAdapter {
55
55
  directory = process.cwd(),
56
56
  cliPath = '',
57
57
  configDirectory = '',
58
+ claudeExecutable = '',
58
59
  baseUrl = '',
59
60
  token = '',
60
61
  tokenFile = '',
@@ -86,6 +87,7 @@ export class AcpBackendAdapter {
86
87
  tokenFile,
87
88
  coordinatorAgent,
88
89
  configDirectory,
90
+ claudeExecutable,
89
91
  permissionMode: this.permissionMode,
90
92
  model: this.model,
91
93
  })
@@ -129,7 +131,7 @@ export class AcpBackendAdapter {
129
131
  ownership: this.ownership,
130
132
  permissionMode: this.permissionMode,
131
133
  transport: 'acp',
132
- backendAgent: this.coordinatorAgent || 'qwen-audio-agent-backend',
134
+ backendAgent: this.coordinatorAgent || null,
133
135
  sessionModel: 'one-persistent-backend-agent',
134
136
  capabilities: {
135
137
  delegation: true,
@@ -14,6 +14,7 @@ export function acpBackendProfile({
14
14
  permissionMode,
15
15
  model,
16
16
  modelUrl,
17
+ claudeExecutable,
17
18
  args,
18
19
  label,
19
20
  }) {
@@ -29,6 +30,7 @@ export function acpBackendProfile({
29
30
  permissionMode,
30
31
  model,
31
32
  modelUrl,
33
+ claudeExecutable,
32
34
  args,
33
35
  label,
34
36
  })
@@ -34,6 +34,10 @@ export class AgentClient {
34
34
  codexModelUrl = config.codexModelUrl,
35
35
  codexDirectory = config.codexDirectory,
36
36
  codexCliPath = config.codexCliPath,
37
+ claudeDirectory = config.claudeDirectory,
38
+ claudeCliPath = config.claudeCliPath,
39
+ claudeExecutable = config.claudeExecutable,
40
+ claudeConfigDirectory = config.claudeConfigDirectory,
37
41
  acpCommand = config.acpCommand,
38
42
  acpArgs = config.acpArgs,
39
43
  acpLabel = config.acpLabel,
@@ -72,6 +76,10 @@ export class AgentClient {
72
76
  codexModelUrl,
73
77
  codexDirectory,
74
78
  codexCliPath,
79
+ claudeDirectory,
80
+ claudeCliPath,
81
+ claudeExecutable,
82
+ claudeConfigDirectory,
75
83
  acpCommand,
76
84
  acpArgs,
77
85
  acpLabel,
@@ -0,0 +1,46 @@
1
+ import { resolve } from 'node:path'
2
+ import { baseEnvironment, clean } from './shared.mjs'
3
+
4
+ export const claudeBackendDriver = {
5
+ id: 'claude',
6
+ label: 'Claude Code',
7
+
8
+ resolveOptions(options) {
9
+ return {
10
+ baseUrl: '',
11
+ model: '',
12
+ directory: options.claudeDirectory,
13
+ cliPath: options.claudeCliPath,
14
+ claudeExecutable: options.claudeExecutable,
15
+ configDirectory: options.claudeConfigDirectory,
16
+ coordinatorAgent: options.coordinatorAgent,
17
+ }
18
+ },
19
+
20
+ createProfile({
21
+ root,
22
+ directory,
23
+ cliPath,
24
+ claudeExecutable,
25
+ configDirectory,
26
+ }) {
27
+ return {
28
+ label: this.label,
29
+ command: cliPath || resolve(root, 'scripts/claude-code-acp'),
30
+ args: [],
31
+ cwd: directory,
32
+ env: {
33
+ ...baseEnvironment(),
34
+ ...(clean(claudeExecutable)
35
+ ? { CLAUDE_CODE_EXECUTABLE: clean(claudeExecutable) }
36
+ : {}),
37
+ ...(clean(configDirectory)
38
+ ? { CLAUDE_CONFIG_DIR: clean(configDirectory) }
39
+ : {}),
40
+ },
41
+ externalMcp: true,
42
+ nativeDelegation: false,
43
+ backendUi: false,
44
+ }
45
+ },
46
+ }
@@ -1,4 +1,5 @@
1
1
  import { codeBuddyBackendDriver } from './codebuddy.mjs'
2
+ import { claudeBackendDriver } from './claude.mjs'
2
3
  import { codexBackendDriver } from './codex.mjs'
3
4
  import { genericAcpBackendDriver } from './generic-acp.mjs'
4
5
  import { hermesBackendDriver } from './hermes.mjs'
@@ -13,6 +14,7 @@ const drivers = new Map([
13
14
  hermesBackendDriver,
14
15
  codeBuddyBackendDriver,
15
16
  codexBackendDriver,
17
+ claudeBackendDriver,
16
18
  genericAcpBackendDriver,
17
19
  ].map(driver => [driver.id, driver]))
18
20
 
@@ -64,6 +64,15 @@ export function resolveCodexWorkspace(
64
64
  : resolve(configDirectory, 'workspaces/codex')
65
65
  }
66
66
 
67
+ export function resolveClaudeWorkspace(
68
+ env = process.env,
69
+ configDirectory = runtimeEnvironment.configDirectory,
70
+ ) {
71
+ return env.CLAUDE_WORKSPACE
72
+ ? resolve(root, env.CLAUDE_WORKSPACE)
73
+ : resolve(configDirectory, 'workspaces/claude')
74
+ }
75
+
67
76
  export function resolveOpenClawWorkspace(
68
77
  env = process.env,
69
78
  configDirectory = runtimeEnvironment.configDirectory,
@@ -158,6 +167,18 @@ function legacyBackendAgent(value, legacyDefault) {
158
167
  return selected === legacyDefault ? 'qwen-audio-agent-backend' : selected
159
168
  }
160
169
 
170
+ export function resolveOpenCodeCoordinatorAgent(env = process.env) {
171
+ const selected = String(
172
+ env.QWEN_AUDIO_AGENT_BACKEND_AGENT
173
+ || env.OPENCODE_COORDINATOR_AGENT
174
+ || '',
175
+ ).trim()
176
+ return [
177
+ 'qwen-audio-agent-backend',
178
+ 'qwen-audio-agent-coordinator',
179
+ ].includes(selected) ? '' : selected
180
+ }
181
+
161
182
  export const config = {
162
183
  root,
163
184
  host: process.env.HOST || '127.0.0.1',
@@ -258,6 +279,14 @@ export const config = {
258
279
  : 'https://dashscope.aliyuncs.com/compatible-mode/v1'
259
280
  )
260
281
  ).replace(/\/+$/, ''),
282
+ claudeDirectory: resolveClaudeWorkspace(),
283
+ claudeCliPath: String(process.env.CLAUDE_CODE_ACP_BIN || '').trim(),
284
+ claudeExecutable: String(
285
+ process.env.CLAUDE_CODE_EXECUTABLE || '',
286
+ ).trim(),
287
+ claudeConfigDirectory: process.env.CLAUDE_CONFIG_DIR
288
+ ? resolve(process.env.CLAUDE_CONFIG_DIR)
289
+ : '',
261
290
  acpCommand: String(process.env.ACP_COMMAND || '').trim(),
262
291
  acpArgs: resolveAcpArgs(process.env.ACP_ARGS),
263
292
  acpLabel: String(process.env.ACP_LABEL || 'ACP Agent').trim() || 'ACP Agent',
@@ -273,14 +302,7 @@ export const config = {
273
302
  || (backendOwnership === 'owned' ? backendModels.openClaw : '')
274
303
  ),
275
304
  backendModel: backendOwnership === 'owned' ? backendModels.common : '',
276
- openCodeCoordinatorAgent: (
277
- sharedBackendAgent
278
- || legacyBackendAgent(
279
- process.env.OPENCODE_COORDINATOR_AGENT,
280
- 'qwen-audio-agent-coordinator',
281
- )
282
- || (backendOwnership === 'owned' ? 'qwen-audio-agent-backend' : '')
283
- ),
305
+ openCodeCoordinatorAgent: resolveOpenCodeCoordinatorAgent(),
284
306
  announceIntoContext: (
285
307
  String(process.env.QWEN_AUDIO_AGENT_ANNOUNCE_INTO_CONTEXT || 'true').toLowerCase()
286
308
  === 'true'
@@ -0,0 +1,15 @@
1
+ import { managedOnlyBackend } from './shared.mjs'
2
+
3
+ export const claudeRuntimeDriver = {
4
+ id: 'claude',
5
+ separateManagedProcess: false,
6
+
7
+ resolve({ ownership, permissionMode }) {
8
+ return managedOnlyBackend({
9
+ id: this.id,
10
+ ownership,
11
+ permissionMode,
12
+ label: 'Claude Code',
13
+ })
14
+ },
15
+ }
@@ -17,6 +17,18 @@ function inlineConfig(value) {
17
17
  return parsed
18
18
  }
19
19
 
20
+ function configuredAgent(env) {
21
+ const selected = String(
22
+ env.QWEN_AUDIO_AGENT_BACKEND_AGENT
23
+ || env.OPENCODE_COORDINATOR_AGENT
24
+ || '',
25
+ ).trim()
26
+ return [
27
+ 'qwen-audio-agent-backend',
28
+ 'qwen-audio-agent-coordinator',
29
+ ].includes(selected) ? '' : selected
30
+ }
31
+
20
32
  export const openCodeRuntimeDriver = {
21
33
  id: 'opencode',
22
34
  separateManagedProcess: true,
@@ -43,11 +55,7 @@ export const openCodeRuntimeDriver = {
43
55
  : {}),
44
56
  }
45
57
  const names = new Set([
46
- String(
47
- env.QWEN_AUDIO_AGENT_BACKEND_AGENT
48
- || env.OPENCODE_COORDINATOR_AGENT
49
- || 'qwen-audio-agent-backend',
50
- ).trim(),
58
+ configuredAgent(env),
51
59
  String(env.OPENCODE_TASK_AGENT || 'build').trim(),
52
60
  ])
53
61
  for (const name of names) {
@@ -1,4 +1,5 @@
1
1
  import { codeBuddyRuntimeDriver } from './codebuddy.mjs'
2
+ import { claudeRuntimeDriver } from './claude.mjs'
2
3
  import { codexRuntimeDriver } from './codex.mjs'
3
4
  import { genericAcpRuntimeDriver } from './generic-acp.mjs'
4
5
  import { hermesRuntimeDriver } from './hermes.mjs'
@@ -13,6 +14,7 @@ const drivers = new Map([
13
14
  hermesRuntimeDriver,
14
15
  codeBuddyRuntimeDriver,
15
16
  codexRuntimeDriver,
17
+ claudeRuntimeDriver,
16
18
  genericAcpRuntimeDriver,
17
19
  ].map(driver => [driver.id, driver]))
18
20
 
@@ -34,6 +34,11 @@ const definitions = new Map([
34
34
  label: 'Codex',
35
35
  supportsFullPermission: true,
36
36
  }],
37
+ ['claude', {
38
+ id: 'claude',
39
+ label: 'Claude Code',
40
+ supportsFullPermission: true,
41
+ }],
37
42
  ['acp', {
38
43
  id: 'acp',
39
44
  label: 'ACP Agent',
@@ -20,7 +20,7 @@ const USER_CONFIG_TEMPLATE = [
20
20
  'DASHSCOPE_API_KEY=',
21
21
  'QWEN_AUDIO_REALTIME_PROVIDER=dashscope',
22
22
  '',
23
- '# 必填:选择后台 Agent(openclaw、opencode、qoder、hermes、codebuddy、codex 或 acp)',
23
+ '# 必填:选择后台 Agent(openclaw、opencode、qoder、hermes、codebuddy、codex、claude 或 acp)',
24
24
  'AGENT_PROTOCOL=',
25
25
  '# OpenClaw 可选:连接用户已经启动的 Gateway',
26
26
  '# OPENCLAW_ATTACH_EXISTING=true',
@@ -315,6 +315,10 @@ export function loadRuntimeEnvironment({
315
315
  const codexWorkspace = env.CODEX_WORKSPACE
316
316
  ? resolve(root, env.CODEX_WORKSPACE)
317
317
  : resolve(configDirectory, 'workspaces/codex')
318
+ const defaultClaudeWorkspace = !env.CLAUDE_WORKSPACE
319
+ const claudeWorkspace = env.CLAUDE_WORKSPACE
320
+ ? resolve(root, env.CLAUDE_WORKSPACE)
321
+ : resolve(configDirectory, 'workspaces/claude')
318
322
  const defaultAcpWorkspace = !env.ACP_WORKSPACE
319
323
  const acpWorkspace = env.ACP_WORKSPACE
320
324
  ? resolve(root, env.ACP_WORKSPACE)
@@ -362,6 +366,12 @@ export function loadRuntimeEnvironment({
362
366
  resolve(root, 'config/codex/workspace/AGENTS.md'),
363
367
  )
364
368
  }
369
+ if (defaultClaudeWorkspace) {
370
+ ensureManagedWorkspace(
371
+ claudeWorkspace,
372
+ resolve(root, 'config/claude/workspace/AGENTS.md'),
373
+ )
374
+ }
365
375
  if (defaultAcpWorkspace) {
366
376
  ensureManagedWorkspace(
367
377
  acpWorkspace,
@@ -376,6 +386,7 @@ export function loadRuntimeEnvironment({
376
386
  env.HERMES_WORKSPACE = hermesWorkspace
377
387
  env.CODEBUDDY_WORKSPACE = codeBuddyWorkspace
378
388
  env.CODEX_WORKSPACE = codexWorkspace
389
+ env.CLAUDE_WORKSPACE = claudeWorkspace
379
390
  env.ACP_WORKSPACE = acpWorkspace
380
391
  migratedFiles = [
381
392
  [resolve(root, 'runtime/frontend-memory.json'), frontendMemoryPath],
@@ -399,6 +410,7 @@ export function loadRuntimeEnvironment({
399
410
  hermesWorkspace,
400
411
  codeBuddyWorkspace,
401
412
  codexWorkspace,
413
+ claudeWorkspace,
402
414
  acpWorkspace,
403
415
  openClawStateDirectory,
404
416
  migratedFiles,
package/tui/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qwen-audio-agent/tui",
3
3
  "private": true,
4
- "version": "0.9.1",
4
+ "version": "0.10.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "node src/index.mjs",
@@ -1,65 +0,0 @@
1
- ---
2
- description: Persistent OpenCode backend Agent for qwen-audio-agent.
3
- mode: primary
4
- options:
5
- enable_thinking: false
6
- permission:
7
- task: allow
8
- qwen_audio_agent_sessions_list: allow
9
- qwen_audio_agent_session_start: allow
10
- qwen_audio_agent_session_send: allow
11
- qwen_audio_agent_session_status: allow
12
- qwen_audio_agent_session_cancel: allow
13
- question: deny
14
- doom_loop: deny
15
- external_directory: ask
16
- read: allow
17
- ---
18
-
19
- You are the persistent backend Agent behind the unified 千问Audio assistant.
20
-
21
- qwen-audio-agent supplies a coordination envelope containing the final ASR, a
22
- conservative objective, and bounded recent voice context. Use it to resolve
23
- conversational references, but treat the final ASR as the source of truth.
24
-
25
- You own all work inside OpenCode. Decide for yourself how to execute it using
26
- the tools, agents, sessions, skills and context available in your environment.
27
- qwen-audio-agent never selects or constrains your internal execution strategy.
28
-
29
- Each qwen-audio-agent request expects one final backend response. Recover the
30
- request ID from the coordination envelope and output only this JSON shape:
31
- `{"work_id":"request id","state":"completed","mode":"respond","presentation":{"speech":"natural concise final result","inline":null}}`.
32
- Use `inline` for detailed Markdown, code, links, or other screen-oriented
33
- content. This constrains the transport shape only; choose the actual speech
34
- naturally from the result and current conversation.
35
-
36
- Only return after the requested work is actually finished or genuinely
37
- blocked. An acknowledgement, progress update, future promise, or wording such
38
- as "working on it" is not a final result. Do not return `active`. Continue the
39
- current turn until you can truthfully return `completed`.
40
-
41
- There is one transport exception. After
42
- `qwen_audio_agent_session_start` or `qwen_audio_agent_session_send` returns
43
- `status=started`, stop using tools and finish the turn with:
44
- `{"work_id":"request id","state":"delegated","mode":"delegate","delegation_id":"exact delegation_id","target_session_id":"exact session_id","presentation":{"speech":"your natural confirmation to the user","inline":null}}`.
45
- Use your judgment to make `presentation.speech` useful and natural in the
46
- current conversation. You may explain what was created or submitted and how
47
- the project will be approached. Do not claim the delegated work itself is
48
- finished. Do not call `qwen_audio_agent_session_status`, perform the delegated
49
- work yourself, or continue using tools. qwen-audio-agent will wait for that
50
- exact delegated Session and send its verified final result back for
51
- presentation.
52
-
53
- `qwen_audio_agent_session_status` is only a status query. If it fails, report
54
- that the status could not be retrieved. Do not fall back to `bash`, `read`,
55
- `glob`, `grep`, or any other tool to inspect the target project, and do not
56
- redo or approximate the delegated task from your own context.
57
-
58
- Follow the response contract in each request exactly. Keep spoken content as a
59
- concise semantic suggestion; the realtime model will adapt it to the live
60
- conversation. Place detailed material in the requested screen output. Never
61
- expose internal routing, session IDs, agent names, or protocol details.
62
-
63
- Generating, saving, and inspecting an artifact does not authorize opening it.
64
- Do not launch a browser, image viewer, file, URL, or desktop application unless
65
- the user explicitly asked to open or preview that result.