Skip to content

新增 DeepSeek Harness(DSH)作为内置 ACP agent - #455

Closed
asteroida123 wants to merge 7 commits into
xintaofei:mainfrom
asteroida123:feat/dsh-builtin-agent
Closed

新增 DeepSeek Harness(DSH)作为内置 ACP agent#455
asteroida123 wants to merge 7 commits into
xintaofei:mainfrom
asteroida123:feat/dsh-builtin-agent

Conversation

@asteroida123

Copy link
Copy Markdown

概述

在现有 12 个内置 agent 之外,新增第 13 个内置 agent:DeepSeek Harness(DSH)。
DSH 自带第一方「automation-only」ACP 服务端(@deepseek-ai/dsh-acp

  • @deepseek-ai/dsh-acp-demo),因此走与 Claude Code / Codex / Gemini 相同的
    npx 启动路径即可接入。

改动内容

  • 新增 AgentType::Dsh 变体(wire 名 dsh,registry id dsh-acp
  • 启动元数据:npx @asteroida/dsh-codeg-adaptersupports_mcp=false
    (DSH 的 automation-only 桥会拒绝 mcpServers,与 OpenClaw 一致)
  • 会话解析复用 acp_native(DSH 没有 codeg 可读取的原生会话存储)
  • 前端:BuiltinAgentType 联合类型、标签、颜色、鲸鱼图标、展示顺序
  • 回归测试:断言所有内置 agent 默认启用

适配器包说明

@asteroida/dsh-codeg-adapter 是一个薄启动层(内置 cordis.yml + key 注入),
包装官方 @deepseek-ai/dsh-acp-demo
源码:https://github.com/asteroida123/dsh-codeg-adapter

验证结果

  • cargo checkcargo clippy --all-targets --features test-utils -- -D warnings 均无告警
  • cargo test --features test-utils:2454 通过,0 失败
  • 端到端:codeg 成功启动 DSH,ACP initialize(协议 v1)+ session/prompt
    正常完成,返回 turn_complete stop_reason=end_turn

已知限制(DSH 上游设计所致)

  • 仅支持全新会话(无 session/load / resume / fork
  • 不支持 MCP 转发(故 supports_mcp=false
  • 仅输出提交后的文本(tool 轨迹 / diff / terminal 不上 ACP 线)

Registers DSH as a first-class built-in alongside the other twelve:

- AgentType::Dsh variant (wire name 'dsh', registry id 'dsh-acp')
- Launch metadata: npx @asteroida/dsh-codeg-adapter, supports_mcp=false
  (DSH's automation-only ACP bridge rejects mcpServers)
- Transcript parser reuses acp_native (DSH keeps no codeg-readable store)
- Frontend: BuiltinAgentType union, labels, colors, display order

cargo check + targeted tests pass; tsc introduces no new errors.
DSH was missing from default_enabled(), so it landed disabled and the
launch gate rejected connect with 'DeepSeek Harness (DSH) is disabled in
settings'. Add the arm plus a regression test asserting every built-in is
enabled by default (the pattern is a matches!, not an exhaustive match, so
the compiler cannot catch the omission).
@xintaofei

Copy link
Copy Markdown
Owner

感谢PR,但是codeg当前接入了deepseek-acp这个社区包,完整支持了agent编码能力,原生acp协议能力有限,所以当时没有接入,虽然没有合并,但是还是感谢佬的贡献。

@xintaofei xintaofei closed this Aug 16, 2026
@asteroida123
asteroida123 deleted the feat/dsh-builtin-agent branch August 16, 2026 14:27
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.

2 participants