dsh-baton
An MCP bridge for delegating coding tasks to DeepSeek Harness and supervising them from Claude Code or Codex.
Discover Harness workspaces, sessions, and available models, and read recent session messages.
Send self-contained tasks to new or existing sessions, with optional workspace/cwd, model, reasoning effort, test checks, and queue/steer behavior.
Wait for one or multiple runs, follow Harness goals with progress reports, and inspect run or session status without polling.
Return final replies and, when checks are supplied, evidence such as changed files and test results.
Answer questions a run stops to ask, or relay them to the user; cancel a session’s turn, sub-agents, and jobs.
Reach less-common tools through dsh_call, including workspace/session management, activity inspection, queued-message edits, and run listing.
Hand coding tasks from Claude Code or Codex to DeepSeek Harness on your machine: the task runs live in the Harness window, the main agent hears back once when it ends, and it gets back the files that changed, the project's own test results and a requirement-by-requirement checklist.
Watch it and step in: the task runs live in the Harness window and you can type into it at any time. Every message is labelled "Sent by ChatGPT / Claude from another chat". When Harness stops to ask a question, the main agent answers it if you told it to decide, or brings it to you with its own recommendation.
Less of the 5-hour window: a long Codex job takes 16% of a ChatGPT Plus 5-hour window instead of 86% (GPT-6 Astra, the kanban task). The rest of the numbers are under Token usage.
Nothing to watch or poll: the main agent waits without polling and gets the result when the run ends. With several runs going at once, each one comes back within a second of finishing.
Needs DeepSeek Harness ≥ 0.2.1-rc.2 (signed in) and Claude Code or Codex. Quick start →
What it is
dsh-baton is an MCP server plus a small Harness plugin. The main agent hands the task to an ordinary Harness session with one tool call: you watch it run in the Harness window and can step in at any time, and the main agent hears back once, without polling. Unlike a plain MCP bridge to another model, the work stays visible and the proof comes back with the result.
Related MCP server: dsh
How it compares
dsh-baton | Model-swap gateway | Background sub-agent | |
The main agent keeps its own model | Yes | No, the whole chat runs on the other model | Yes |
You can watch the work | Yes, live in the Harness window | Yes, in the same chat | The main chat gets a summary |
You can step in mid-run | Yes, in Harness, or the main agent steers it in | Yes | Usually not |
Each message says who sent it | Yes, sent by ChatGPT / Claude | One side only | Not needed |
Changed files and test results come back | dsh-baton lists the files and runs your tests itself | No hand-over step | The sub-agent's own summary |
Questions reach you | Yes, with the main agent's recommendation | It asks you directly | Usually not |
Why split the work
Beyond the savings, the split itself helps:
A spec before the code. The main agent turns your loose request into clear requirements before handing it over, so Harness gets a clear spec rather than a relayed "build me an X".
Checked on evidence. The result carries the changed files, your project's own test output and a point-by-point check against the request; anything missing goes back for another round, instead of taking "done" on trust.
The main conversation keeps the decisions. Hundreds of steps of reading files, editing and running tests stay in the Harness session; the main conversation holds your request and the conclusions.
Quick start
Install in one step, check in two.
Nothing else to install: no Node.js, no terminal. It is the same on macOS and Windows.
Install: in Harness, Plugins (插件) → Add plugin (添加插件) → type dsh-baton-host → Install (安装) → Enable now (立即启用). Switched on, the plugin registers dsh-baton for Claude Code and Codex, for every folder, and Harness says so.
Check that it works:
① Open a new chat: in Claude Code or Codex, start a new conversation; one that was already open does not see dsh-baton yet. It is the same in both. Codex asks you to approve MCP tool calls: approve the dsh-baton tools (for unattended codex exec runs, add --approve-for-me).
② Ask for the workspaces: ask it to call dsh_list_workspaces. It lists your Harness workspaces.
That is all. To hand a task over, end the request with "hand it to DeepSeek Harness". Updating, removing, Windows, and registering by hand when the plugin could not, are further down.
Installed on the day of a release? For about a day after a release, Harness installs the previous version, and its install dialog says so. Open the plugin's page and press Update to x.y.z (更新到), or add the plugin with its version, such as dsh-baton-host@x.y.z.
See it run
Codex and Claude take turns in the same Harness session, and every message says who sent it:
Queue and steer: the first task is running, the steer joins the same turn, and the queued follow-up waits above the input:
Token usage
In short: hand over the big, long jobs. With Claude Code the total cost, DeepSeek included, is 51–78% lower. With Codex on GPT-6 Astra it is 47–81% lower, and the long kanban app takes 16.01% of a ChatGPT Plus 5-hour window instead of 86.01%.
Hand it over: big jobs, long jobs, and whenever the 5-hour window is running low. The main agent's own spend drops 61–87% on every task and model.
The three test tasks, asked the way a user would (the requests are in Chinese, linked as written):
Task 1 · CLI tool: a command-line task manager in Node, no dependencies, split into modules, with tests. Request
Task 2 · Web app: a task manager with a Node server and a page, REST API, stats, tests and a README. Request
Task 3 · Kanban app (phased): a kanban board in plain Node and a plain front end, in three phases given one after another in the same conversation: ① the core (REST API, storage, drag and drop); ② labels, due dates, search syntax, archive, undo and redo, activity log, import and export; ③ version conflicts, WIP limits, bulk actions, live sync over SSE, stats. 55 acceptance tests written beforehand, the same for both arms. Requests: phase 1 · phase 2 · phase 3
Task 3 | Alone | Handed over |
Opus 5.5 high | 55/55, 39 min | 55/55, 93 min |
GPT-6.1 Sol high | 55/55, 18 min | 55/55, 101 min |
GPT-6 Astra high | 55/55, about 31 min | 55/55, about 87 min |
Cost per task at list price, DeepSeek V4.1 Flash 1017 at its peak price. Opus 5.5 runs in Claude Code, GPT-6.1 Sol and GPT-6 Astra in Codex, all at high effort:
Task | Model | Alone | Handed over: main agent | Handed over: DeepSeek | Handed over: total | Total | Main agent |
Task 1 · CLI tool | Opus 5.5 high | $1.07 | $0.42 | $0.10 | $0.52 | −51.2% | −60.8% |
GPT-6 Astra high | $0.79 | $0.30 | $0.12 | $0.42 | −47.4% | −62.0% | |
Task 2 · Web app | Opus 5.5 high | $2.13 | $0.47 | $0.13 | $0.60 | −71.7% | −77.7% |
GPT-6 Astra high | $2.27 | $0.30 | $0.13 | $0.42 | −81.4% | −86.9% | |
Task 3 · Kanban app (phased) | Opus 5.5 high | $14.18 | $2.32 | $0.84 | $3.16 | −77.7% | −83.6% |
GPT-6 Astra high | $8.69 | $1.62 | $0.74 | $2.35 | −72.9% | −81.4% |
Share of a ChatGPT Plus 5-hour window in Codex, and the main agent's own spend:
Task | Model | 5-hour window, alone → handed over | Main agent |
Task 1 · CLI tool | GPT-6.1 Sol high | 2.08% → 0.77% | −62.9% |
GPT-6 Astra high | 7.83% → 2.98% | −62.0% | |
Task 2 · Web app | GPT-6.1 Sol high | 5.08% → 0.79% | −84.5% |
GPT-6 Astra high | 22.43% → 2.94% | −86.9% | |
Task 3 · Kanban app (phased) | GPT-6.1 Sol high | 13.71% → 2.67% | −80.5% |
GPT-6 Astra high | 86.01% → 16.01% | −81.4% |
A bigger task: a lighthouse animation. The same 23-item request, byte for byte, both on GPT-6 Astra, dsh-baton 0.6.5:
Alone | Handed over | |
ChatGPT Plus 5-hour window | 178%–186% (over three 5-hour windows) | 80%–84% |
Weekly quota | 30% | 14% |
Codex requests | 142 | 40 |
DeepSeek | — | $4.20 (peak price), 930 steps |
Working alone, Astra rated its own work 23/23; the independent check found 17/23. Handed over, the side that checks is not the side that wrote the code.
The only difference in the hand-over runs is one line added at the end of the request: 交给 DeepSeek Harness 去做。 ("Hand it to DeepSeek Harness.")
Same model and effort in both arms, and every run judged by the same acceptance check, which the model never sees.
Tasks 1 and 2: the mean of three runs per cell. Task 3: one run per cell. Every run passed its acceptance check, with no rework.
Prices are list prices. DeepSeek is counted at its peak price; the real DeepSeek bill came to about 58% of that.
The 5-hour window share is worked out from each run's cost: 12.27 points per $1 for GPT-6.1 Sol, 9.90 for GPT-6 Astra.
The Codex runs were measured with dsh-baton 0.6.1 to 0.6.3.
How it works
Pick a model: just say which one, for example "hand it to DeepSeek, V4 Pro". dsh_send passes it as model (and reasoning_effort), matched against the models Harness lists, so a model Harness adds later works as soon as it shows up. It applies to that session only; Harness's default model stays as it was. dsh_list_models shows what is available.
Answering Harness's questions: the main agent answers the way the task needs, rather than picking the least bad option. See dsh_answer under Tools.
Several runs at once. When a task is split across sessions, the main agent sends them all and waits for them together; whichever ends first comes back first, so it can review it and send a fix while the rest still run.
Sessions with a Harness goal. A session with a goal (set by a message starting with /goal) starts its next round by itself; dsh-baton waits until the goal stops before handing back, and can report progress at an interval you ask for.
Claude Code waits for a run in the background (the
wait_commandthatdsh_sendreturns) and is woken once, when the run ends.Codex waits inside
dsh_wait. The plugin sets Codex's tool timeout for dsh-baton to an hour (tool_timeout_sec = 3600), so one call waits up to 59 minutes: a run that ends within the hour costs one model request to wait for, however long it takes, and the result comes back as an ordinary tool result in the chat. A longer run returnstimed_outwith just the state after 59 minutes, and Codex calls again without summarising. Pressing Stop ends the wait at once. Codex gets nowait_command: its terminal cannot wake it, so it would poll. A conversation without that setting waits 270 s per call. Measured in the Codex desktop app: a 28-minute run took onedsh_waitcall; a 62-minute run took two, the first returningtimed_outafter 59 minutes and the second getting the result 3 minutes later, with nodsh_statuscalls in between.Several runs at once. When a task is split across sessions (say docs, front end and back end, each in its own worktree), the client sends them all, then waits for them together: Claude Code runs one
wait_commandper run in the background, and Codex callsdsh_waitwithrun_ids. That call returns as soon as any of the runs ends or stops to ask a person, with every run that has (ended) and the ones still going (still_running); the client reviews those, sends fixes right away, and waits again with the rest plus the fixes. Measured on a three-part task: waiting for one run at a time, the back end that ended first was read 2 min 53 s late; waiting withrun_ids, each result was read within a second of its run ending.Sessions with a Harness goal. A goal (a message starting with
/goalsets one) makes Harness start the next round by itself as soon as a turn ends. A run sent to such a session is waited for until the goal stops, not just its first round, so "hand this to Harness" brings back the finished work; sessions without a goal are waited for as before. When the user asks for progress reports ("report every 10 minutes"), the client passesuntilturn: it then reports at the end of a round once 10 minutes (every_minutes) have passed since the last report, with every round since. To follow a session without sending anything, the client callsdsh_waitwithsession_id(Claude Code runs thefollow_commandin the background instead). Each report carries every round since the last one (the latest round's closing reply (up to 1500 characters), each earlier round as a one-line digest with its tools; any round in full throughdsh_read_session), the files changed in the folder since the last report (since the run began, for the first), and the goal's state (phase, rounds started of the most allowed, whether Harness goes on with it), plus acursorthat the next call passes back, so switching between the two modes neither repeats nor misses a round. Both return at once when Harness asks a question (answer it withdsh_answerandsession_id) or waits for an approval, when the goal is complete, paused, blocked or cleared, or when Harness will not go on with it by itself (for example after a Harness restart, until you press Continue). In Codex one call follows a goal for at most 15 minutes and Codex then calls again, so a message you type reaches it within that time; such an in-between return carries only the goal's state and how many rounds wait, not their texts.Changing the request while it waits. In Codex, send the change with Steer: Codex stops waiting at once, steers it into the same Harness session (
dsh_sendwithmodesteer) and waits on the new run; Harness does both in the same turn. Sent with Queue, Codex sees it only when the run ends; you can also press Stop first and then send it. In Claude Code, just send it: it waits in the background, so it steers the change in right away. A steered run ends together with the original and they share one result; a queued run comes back on its own. Runs working in the same folder at the same time are named in each other's results, so neither removes the other's files.
How a hand-over is checked
You don't have to take DeepSeek's word for it. Before the run, dsh-baton notes what is in the folder. When the run ends it shows exactly which files were created, changed or deleted, and runs your project's own tests itself (npm test, or whatever the client passes as checks). A second, read-only DeepSeek agent then goes through the request point by point and ends with a table: requirement, met or not, and where (file:line). Claude or GPT reads just that, sends anything missing back in one message, and opens code only where a row says "not met". Unless cwd names another folder, the new Harness session starts in the folder you're already working in.
Tools
When you want the exact parameters and return fields of each tool:
The server's MCP instructions are a single sentence; how to hand over, wait and answer is in each tool's own description. Codex repeats the instructions in front of every tool's description, so the catalogue it shows the model is now about 9.7k characters instead of 24.3k.
Tool | What it does |
| Workspaces in the Harness sidebar |
| Through |
| Sessions newest first, with title, folder, running state and |
| The models Harness can run (provider, id, name, reasoning efforts) and its default model |
| Recent prompts and replies of one session (with tool names); |
| Send a message: |
| Run progress: state, recent text and tool calls, final reply; |
| Wait for the run to end; a finished run carries |
| Answer the questions a run stopped to ask (Harness's ask_user_question): per question, an option number or label, free text, or skip; on a single choice, free text replaces the option. |
| Through |
| Through |
| Stop everything a session is doing, by |
| Through |
| Through |
| Through |
| Calls any |
Command line and configuration
When you want to drive Harness from a terminal or a script instead of a chat:
dsh-baton workspaces
dsh-baton new-workspace ~/code/new-app --title "New App"
dsh-baton sessions --cwd ~/code/new-app
dsh-baton send --cwd ~/code/new-app "Scaffold the project"
dsh-baton send --session session-xxxx "Next: add tests"
dsh-baton send --session session-xxxx --mode steer "Interjection: don't change the API"
dsh-baton wait hrun-xxxx # blocks, prints the final reply; exit 0 on success
dsh-baton status hrun-xxxx
dsh-baton follow session-xxxx --until turn --every 10m # a session's Harness goal: blocks until the next report
dsh-baton activity session-xxxx # running turn, sub-agents, background jobs
dsh-baton cancel --session session-xxxx
dsh-baton rename session-xxxx "New title"
dsh-baton rename-workspace ~/code/new-app "New name"(From source, use node src/cli.mjs ….)
When the defaults don't fit, for example a different socket path or forcing headless mode:
Variable | Default | Meaning |
|
|
|
|
| Socket and headless run records |
|
| Plugin socket path (must match on both sides); on Windows mapped to a per-user named pipe, see WINDOWS.md |
| Codex: its | How long one |
| the | Harness CLI for headless mode |
|
| Harness data folder (headless session reads) |
|
|
|
| empty | Extra headless |
When the Harness plugin is not reachable:
When the plugin is unreachable, the MCP server falls back to Harness's dsh headless command. It can only continue sessions it created itself (headless does not load agent presets such as standard), and new sessions do not appear in the desktop sidebar. By default patches/account.patch.yml reuses the desktop app's DeepSeek account sign-in, so no API key is needed.
Install details
Version history is on GitHub Releases. When you update or remove the plugin, come from dsh-bridge, run from source, or the plugin could not register:
What the plugin does when switched on. It copies the MCP server to ~/.dsh-baton/app, a folder that stays put, and writes the MCP entry into ~/.claude.json and ~/.codex/config.toml directly, keeping a *.bak-dsh-baton backup of each. It starts the server with your own Node.js ≥ 22.15 when it finds one on PATH; without one, with Harness's own runtime (the Harness app in Node mode, ELECTRON_RUN_AS_NODE=1), so nothing else has to be installed. Either way it works with only the desktop apps installed, when claude / codex are not on your PATH. It runs again on each Harness start: an entry that is already right, or a working one that starts another copy of dsh-baton, is left alone. In Harness, the source switches to the npm registry ("Official npm registry", 「npm 官方源」) by itself once you type the package name, and no restart is needed. To turn the registration off, set DSH_BATON_AUTO_REGISTER=0 for Harness.
Codex's tool timeout. Codex stops an MCP tool call after 300 s unless the server's table sets tool_timeout_sec. The plugin writes tool_timeout_sec = 3600 into [mcp_servers.dsh-baton] in ~/.codex/config.toml, and adds it to an existing table that has none; a value you set yourself is kept. The server reads it and makes each dsh_wait that long less 60 s. Codex reads the setting when it starts or loads a conversation and keeps it: new conversations get it without restarting Codex, and so does every conversation after Codex restarts, while conversations open since before keep Codex's 300 s limit. dsh-baton tells them apart by when the conversation and the Codex process started (~/.dsh-baton/codex-timeout.json holds when the value was written) and keeps their waits at 270 s.
Codex's cwd for dsh-baton. Codex starts an MCP server in the conversation's folder unless its table sets cwd; when that folder is gone (a project on an external drive that is not connected) the server cannot start and the conversation has no dsh_* tools. The plugin writes cwd (your home folder) into [mcp_servers.dsh-baton] and adds it to an existing table that has none; a cwd you set yourself is kept.
Updates need no restart. When a newer version lands in ~/.dsh-baton/app (a plugin update, setup, or a copy by hand), or the same version with changed files, conversations already open in Claude Code and Codex use it from their next dsh_* call: the server checks the folder before each call, starts the new version, and says once in that call's result that it was updated. A dsh_wait that is already running finishes on the old version first. If the new version cannot start, the old one keeps working and the result says why. A tool added in the new version shows up in Claude Code at once (the server tells the client its tool list changed); Codex keeps the tool list a conversation started with, so it does not show a new tool until the next conversation; it can still use one at once through dsh_call, which the update note points to, and the tools it already has run the new code right away.
npx -y dsh-baton-mcp setup does the same registration from a terminal: for a plugin that could not register, or when you come from an MCP directory. With the plugin already registered it changes nothing, then points you to the plugin if it is missing.
Updating. On Harness 0.2.2 and later: Plugins → dsh-baton-host → Update to x.y.z (更新到) under Version; if it still says up to date, press Check again (重新检查) first. Harness 0.2.1 has no update button for this plugin: Uninstall, then Add plugin → dsh-baton-host. For about a day after a release, Harness installs the previous version instead (pnpm's minimumReleaseAge holds back versions published very recently, and the install dialog says so); to get the new one at once, type the version: dsh-baton-host@x.y.z. A pre-release must always be added by its exact version, such as dsh-baton-host@0.6.0-next.0: Harness resolves @next to a broken placeholder. Plain dsh-baton-host gets the latest release. Switched on again, the plugin brings the MCP server to the same version; new conversations use it. If the two are ever out of step, the first tool call that notices it says so, naming the older side and the newer side's exact version to install.
Removing. Harness → Plugins → dsh-baton-host → Uninstall, then npx -y dsh-baton-mcp setup --remove. The plugin cannot tell an uninstall from Harness quitting, so it leaves the MCP entries to that command, which also deletes ~/.dsh-baton/app; run records stay in ~/.dsh-baton until you delete it.
Upgrading from dsh-bridge. In Harness, uninstall dsh-bridge-host, then add dsh-baton-host; switched on, it replaces the old dsh-bridge MCP entries. DSH_BRIDGE_* variables and an existing ~/.dsh-bridge folder keep working for now. Tools get a new prefix (mcp__dsh-baton__…), so update any permission allowlists.
From source (to follow main or change the code): git clone https://github.com/JialaoLiu/dsh-baton.git, then in Harness add the plugin from the clone's host folder (Add plugin → paste the path). Switched on, it registers the clone itself, so changes run before they are published. Update with git pull. node dsh-baton/src/cli.mjs setup registers the clone from a terminal.
Windows. Same steps; WINDOWS.md covers what differs (a named pipe instead of a socket file) and fixes for a Plugins page that cannot install or uninstall.
When you register by hand, or want dsh-baton in the Claude desktop chat app (not Claude Code):
The plugin and setup write the same entries these commands would (with the absolute path of node, since desktop apps start MCP servers without your shell's PATH):
claude mcp add dsh-baton -s user -- "$(command -v node)" "$PWD/dsh-baton/src/server.mjs"
codex mcp add dsh-baton -- "$(command -v node)" "$PWD/dsh-baton/src/server.mjs"-s user matters: without it, Claude Code registers the server for the current project folder only.
Claude desktop app (optional): for the chat app's connectors (separate from Claude Code), add this to ~/Library/Application Support/Claude/claude_desktop_config.json and restart the app. It shows as a "Local dev" connector.
{ "mcpServers": { "dsh-baton": { "command": "/absolute/path/to/node", "args": ["/absolute/path/to/dsh-baton/src/server.mjs"] } } }Security and limits
Any process running as your OS user can drive Harness through the socket, the same as running dsh directly. dsh-baton relies on Harness's internal service APIs (0.2.1 and 0.2.2 today), so a major Harness update may need a follow-up release.
License
MIT
Available Tools
10 toolsdsh_answerA
Answer the questions a waiting run asked (needs_input in dsh_wait or dsh_status). If the user told you to decide such questions yourself, decide as the task's owner: an option only if it fits as is, else your own words. On a single choice, text replaces the option. Call dsh_answer with a one-sentence reason, then tell the user what you answered and why. Otherwise relay the questions, starting with your advice on its own line: "My recommendation: <an option, or your own answer>, because ", from your own judgment, even outside the options (harness_suggested is only the asker's pick, never a reason). List the options (the user may also answer in words) and submit their decision with dsh_answer. Never answer on the user's behalf without that permission. Per question: choose (option numbers or labels), text (your own answer, complete on its own), or skip. It reaches Harness once every question has an answer (submitted: true; remaining lists the rest); then wait again. If the user already answered in Harness, it says there is no open question.
Inputs: answers (required), reason, run_id, session_id.
dsh_callADestructive
Call a dsh-baton tool by name, for a tool this conversation does not list (dsh-baton was updated without a restart; the update note names it). Runs the same code as a direct call, so it can do whatever that tool does. An unknown name changes nothing and returns the tools with their input schemas.
Inputs: name (required), arguments.
dsh_cancelADestructiveIdempotent
Stop everything a session is doing (turn, sub-agents, background jobs, reminders), by run_id or session_id; the session is kept. Messages queued in it are dropped too (removed_from_queue); to drop one queued message use dsh_update_queued. Safe to repeat. Returns still_busy, activity and removed_from_queue.
Inputs: run_id, session_id.
dsh_list_modelsARead-onlyIdempotent
List the models this DeepSeek Harness can run (provider, model id, name, reasoning efforts) and its default model, to check a name before passing model to dsh_send. Read-only. Needs the dsh-baton-host plugin.
Inputs: no named parameters.
dsh_list_sessionsARead-onlyIdempotent
List Harness sessions, newest first, to find a session_id: session_id, title, cwd, updated_at, running, bridge_runs and model (what its next request uses). No paging: raise limit or narrow it with cwd or query. Read-only. Sessions not in dsh_list_sessions are archived or gone: do not look for them on disk.
Inputs: cwd, limit, query, include_subagents.
dsh_list_workspacesARead-onlyIdempotent
List the DeepSeek Harness workspaces (project folders): id, path, title and session_count. The id is the workspace_id for dsh_send. Read-only. Needs the dsh-baton-host plugin.
Inputs: no named parameters.
dsh_read_sessionARead-onlyIdempotent
Read the last messages of a session (role, time, text and the names of tools called; no tool output), to catch up before continuing it. Read-only.
Inputs: session_id (required), last.
dsh_sendA
Hand a task to DeepSeek Harness, or continue a session: returns at once with a run_id and a hint saying how to wait for the reply; follow it. Call it directly, no need to list anything first. A new session starts in the folder this conversation works in, or in cwd or workspace_id (a new cwd is registered first); session_id continues that session. message arrives verbatim as a user message, and Harness does not see this conversation: make it self-contained, in the user's language, the full, explicit spec, asking for tests that cover each requirement. Keep a leading /goal (it sets a Harness goal) and the user's goal text as written. For a large task, write a concrete spec (goal, modules and the files each owns, level of detail, acceptance criteria) rather than passing the user's words on, and send independent parts to separate sessions in parallel, each owning its own files; wait for them together (dsh_wait run_ids), review each as it returns and send its fixes at once. With checks, a short request for a sub-agent review table is appended. To a busy session, mode followup queues the message and steer adds it to the running turn; left out, the Harness setting decides.
Inputs: message (required), cwd, mode, model, +4 more.
dsh_statusARead-onlyIdempotent
Look once at a run or a session without waiting. A run (run_id): state, recent events, final reply, waiting_on (sub-agents or jobs still working) and human_interjections. A session (session_id): busy, activity, its Harness goal (phase, rounds, whether Harness goes on with it), needs_input, and its last turn's reply. Never a way to wait: use dsh_wait.
Inputs: tail, run_id, session_id.
dsh_waitARead-onlyIdempotent
Wait for a run sent with dsh_send to end and return its state and final reply. Prefer the background wait_command from dsh_send if your client wakes you when a background command exits: it costs no turns. It also returns at once when the run stops to ask a person: needs_input answer (reply with dsh_answer) or harness-ui (an approval in the Harness window). Each call waits up to 50 s; if it returns timed_out: true, call dsh_wait again with the same run_id, without a progress note. Parallel runs: all ids in run_ids, never one by one; returns once any ends or asks (ended; the rest in still_running); then wait again with the rest plus your fixes. A run in a session with a Harness goal is followed on until the goal stops, with every round since the run began. With session_id instead of run_id it follows that session's Harness goal (see until) without sending anything; it also returns when Harness needs a person or will not go on by itself. Pass back the cursor each result gives.
Inputs: until, cursor, run_id, run_ids, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools have clearly distinct roles and the descriptions explicitly police the boundaries (dsh_status "never a way to wait", dsh_call only for unlisted tools). The status/wait/read_session trio all surface activity and needs_input, which could pull an agent toward the wrong one, though the descriptions disambiguate well. dsh_call is an intentional wildcard that overlaps everything by design.
Every tool uses the same dsh_ prefix plus a lowercase snake_case verb or verblike noun (list_sessions, list_workspaces, read_session, send, wait, cancel, answer). The pattern is predictable and readable throughout, with no style mixing.
Ten tools is well-scoped: one per lifecycle step (send, wait, status, cancel, answer, read) plus the three list lookups and one escape hatch. Each earns its place with no obvious redundancy.
Core orchestration coverage is solid: start/continue work, wait, poll, read history, cancel, answer questions, and discover sessions/workspaces/models. The one real gap is dsh_update_queued, which dsh_cancel's description tells the agent to use for dropping a single queued message but which isn't in the tool list; dsh_call can reach it, so it's workable rather than a dead end.
Maintenance
Related MCP Connectors
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceExposes DeepSeek Harness agent capabilities as an MCP server, letting any MCP client drive Harness to execute real coding tasks with structured results, context isolation, and parallel execution.94 npm13MIT
- AlicenseNot gradedqualityBmaintenanceLets any MCP-capable coding harness (Cursor, Claude Code, Codex, Gemini CLI, VS Code/Copilot, opencode, and others) hand a self-contained task to a real, isolated DeepSeek Harness process that works in a chosen workspace with its own context window, model, and toolchain, then returns the final answer. Exposes task submission with time estimates and acceptance criteria, status polling with live progress and process-tree telemetry, graceful cancel and forced kill of whole process trees, and a health probe reporting concurrency, deadlines, and recent jobs.1MIT
- FlicenseAqualityCmaintenanceEnables MCP clients like Codex CLI and Claude Code to delegate tasks to a local DeepSeek Harness (dsh), with native Web transport for visible progress, model selection, and persistent long-running jobs, plus an ACP-compatible transport.61-
- AlicenseNot gradedqualityBmaintenanceEnables any MCP-capable client (Claude Code, Cursor, VS Code, and others) to deliver messages into a local DeepSeek Harness over stdio or Streamable HTTP. It also exposes a pull-based task queue so producers can publish work that clients claim, complete, or list.MIT