通过本机仅限当前用户的 socket,接收 Claude Code、Codex 或任意 MCP 客户端(经 dsh-baton-mcp)交来的任务:新建或继续指定的 Harness 会话,在界面里实时运行并标注发送方,回合结束后把结果交回。12 个 MCP 工具覆盖工作区、会话和运行。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-baton-host
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:JialaoLiu/dsh-baton#path:/host
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
DeepSeek Harness plugin for dsh-baton. It runs inside the Harness host (desktop app or dsh web) and serves a local, owner-only Unix socket (~/.dsh-baton/host.sock; a per-user named pipe on Windows, see WINDOWS.md). Through it, an MCP client can list and create workspaces, create sessions, continue a specific session, and wait for its turn to finish. All of this goes through Harness's own session controller, so the messages show up live in the Harness UI.
DeepSeek Harness 插件,配合 dsh-baton 使用。它运行在 Harness 内部,只开一个当前用户才能访问的本地套接字,让 MCP 客户端能新建工作区和对话、续接指定对话、等待任务完成。所有操作都走 Harness 官方会话服务,界面实时可见。
Install / 安装
Harness → Plugins / 插件 → Add plugin / 添加插件 → dsh-baton-host → Install / 安装 → Enable now / 立即启用
That is the whole install: switched on, the plugin registers the dsh-baton MCP server (the dsh-baton-mcp package, installed with it) for Claude Code and Codex, user-wide, and Harness says so. New conversations then have the dsh_* tools. If it could not register, run npx -y dsh-baton-mcp setup. Details: dsh-baton.
装好就完成了:插件启用时会为 Claude Code 和 Codex 注册 dsh-baton MCP 服务器(dsh-baton-mcp 包,随插件一起安装),Harness 里会提示。新开的对话就有 dsh_* 工具。没能注册的话,运行 npx -y dsh-baton-mcp setup。详见 dsh-baton。
Update / 更新: uninstall, then add it again; the MCP server is updated with it / 先卸载再重新添加,MCP 服务器会一起更新.
Remove / 卸载: uninstall, then npx -y dsh-baton-mcp setup --remove / 卸载插件后运行 npx -y dsh-baton-mcp setup --remove.
Socket protocol / 套接字协议
Newline-delimited JSON: request {"id", "method", "params"}, reply {"id", "result"} or {"id", "error"}.
| Method | Params |
|---|---|
ping |
— |
workspaces |
— |
create_workspace |
path, title?, create_dir? (default true) |
list_sessions |
cwd?, query?, limit? |
read_session |
session_id, last? |
send |
message, and session_id or cwd or workspace_id; mode? (followup | steer) |
status |
run_id, tail? |
wait |
run_id, timeout_s? |
activity |
session_id |
cancel |
run_id or session_id |
rename_session |
session_id, title |
rename_workspace |
workspace_id or path, title |
list_runs |
limit? |
DSH_BATON_SOCKET / DSH_BATON_HOME in the Harness process environment move the socket. DSH_BATON_AUTO_REGISTER=0 turns off the MCP registration.
The Plugins page reads the registration outcome from GET /dsh-baton/status on the Harness web server.
License
MIT
链接
同类插件
loopx-project/loopx#dsh-loopx-plugin★ 6388
LoopX——面向长周期 Agent 的提供商中立、本地优先状态内核与控制平面:在 DeepSeek Harness 执行层之上持久化 Goal、Todo、门禁、证据、配额、恢复与交接状态;插件负责引导安装 CLI 与技能、准入有界的同会话续跑,并为精确绑定的工作循环提供本地 GoalBar。
Q00/ouroboros#integrations/dsh-plugin★ 6255
通过 DSH MCP 客户端挂载 Ouroboros 的纯配置包,在 DSH 中提供 36 个涵盖需求访谈、Seed、执行、评估与演化流程的工具。
chuspeeism/dashi-taskboard#deepseek-harness★ 3376
把当前已安装并运行中的 Codex Taskboard 嵌入 DeepSeek Harness 侧边栏,并通过 Launcher 运行时描述文件连接,而不是使用固定端口。
NanmiCoder/dsh-agent-teams★ 2336
AgentTeams 多智能体团队。
EthanYoQ/AI-Novel-Writer#dsh-ai-novel-writer★ 1705
安装专用 AI 小说创作预设与工作台:提供带修订号的本地项目资产、紧凑侧边工作台,以及需要原生审批的逐文件变更。
Miaotofu01/Study-Mate★ 1124
你的AI学习搭档:定计划、讲知识、做项目,学透一门科目。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。