by JialaoLiu
Pass the baton from Claude Code or Codex to a local DeepSeek Harness. An MCP server that hands off tasks and brings the result back.
# Add to your Claude Code skills
git clone https://github.com/JialaoLiu/dsh-batondsh-baton is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by JialaoLiu. Pass the baton from Claude Code or Codex to a local DeepSeek Harness. An MCP server that hands off tasks and brings the result back. It has 268 GitHub stars.
dsh-baton's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/JialaoLiu/dsh-baton" and add it to your Claude Code skills directory (see the Installation section above).
dsh-baton is primarily written in JavaScript. It is open-source under JialaoLiu on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh dsh-baton against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Hand coding tasks from Claude Code, Codex or Antigravity 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.
Needs DeepSeek Harness ≥ 0.2.1-rc.2 (signed in) and Claude Code, Codex or Antigravity. Quick start →
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.
| 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, through the main agent | It asks you directly | Usually not |
Beyond the savings, the split itself helps:
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, Codex and Antigravity, 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. Antigravity starts its MCP servers only when it starts: restart it once after the plugin is switched on. 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 [email protected].
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:
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):