DeepSeek Harness Plugin

JialaoLiu/dsh-baton#host

Stars ★ 5 Category Workflow & Automation Added 2026-10-22 npm dsh-baton-host

Takes tasks from Claude Code, Codex or any MCP client (through the dsh-baton-mcp server) over an owner-only local socket: creates or continues a specific Harness session, runs it live in the UI labelled with the sender, and hands the result back when the turn ends. 12 MCP tools cover workspaces, sessions and runs.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-baton-host

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:JialaoLiu/dsh-baton#path:/host

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

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

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.