# dsh-baton

> dsh-baton is an open-source MCP server for developer tools. Delegate coding tasks from Claude Code or Codex to a local DeepSeek Harness. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, self-hosted
- **Repository:** https://github.com/jialaoliu/dsh-baton
- **MCP Registry name:** io.github.JialaoLiu/dsh-baton
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-18

## About

The main agent keeps its own model and passes a coding job to a normal DeepSeek Harness session on your machine. You can watch the run in the Harness window and type into it at any point; each message is labelled with who sent it. When Harness stops with a question, the main agent either answers it or brings it to you with a recommendation.

The main agent does not poll. It hears back once when the run ends and receives the changed files, the output of your project's own tests and a requirement-by-requirement checklist, so anything missing can be sent back for another round. The README also argues that splitting the work this way keeps hundreds of file-reading and editing steps out of the main conversation.

It is an MCP server plus a small Harness plugin, installed from inside Harness by adding the dsh-baton-host plugin. It needs DeepSeek Harness 0.2.1-rc.2 or newer, signed in, and Claude Code or Codex. The cost and quota savings in the README come from the author's own benchmarks on three test tasks.

## Features

- **Live Harness window:** Watch the delegated run and step in at any time.
- **Single result callback:** The main agent waits without polling and gets one result.
- **Evidence with the result:** Returns changed files, your test output and a checklist.
- **Question routing:** Harness questions go to the main agent or to you with a recommendation.
- **Labelled messages:** Each message says it was sent from another chat.
- **Plugin install:** Add dsh-baton-host from the Harness plugin page.

## Good for

- Hand long coding jobs to DeepSeek to save main-model quota
- Run several delegated tasks at once and collect each result
- Review a run's test results before accepting it
- Keep Claude Code or Codex for planning while Harness writes the code

## Install

### Claude Code (Terminal)

```sh
claude mcp add dsh-baton -- npx -y dsh-baton-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "dsh-baton": {
      "command": "npx",
      "args": [
        "-y",
        "dsh-baton-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "dsh-baton": {
      "command": "npx",
      "args": [
        "-y",
        "dsh-baton-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "dsh-baton": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "dsh-baton-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "dsh-baton": {
      "command": "npx",
      "args": [
        "-y",
        "dsh-baton-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "dsh-baton": {
      "command": "npx",
      "args": [
        "-y",
        "dsh-baton-mcp"
      ]
    }
  }
}
```

## Tools

- `dsh_list_workspaces`: Lists your Harness workspaces.

## FAQ

### What do I need installed?

DeepSeek Harness 0.2.1-rc.2 or newer, signed in, and Claude Code or Codex.

### How do I check it works?

Open a new chat in Claude Code or Codex and ask it to call dsh_list_workspaces.

### How do I hand over a task?

End the request with the phrase 'hand it to DeepSeek Harness'.

### Can I interrupt a delegated run?

Yes. You can type into the Harness window at any time, or the main agent can steer it.

### Is dsh-baton free?

Yes. dsh-baton is open source, so you can use and self-host it for free.

### How do I add dsh-baton to Claude Code?

Run this command in your terminal: claude mcp add dsh-baton -- npx -y dsh-baton-mcp

### What are the best alternatives to dsh-baton?

The closest alternatives to dsh-baton are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/dsh-baton
