# dsh-any-agent

The dsh-any-agent MCP server for Claude Code hands coding tasks to DeepSeek Harness. It keeps conversations resumable across restarts and returns results after long-running work finishes.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6 repo stars
- Author: xmtlzzz
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/xmtlzzz/dsh-any-agent
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/dsh-any-agent

## What it does

dsh-any-agent sends a goal to DeepSeek Harness and lets the client collect the result later. The agent can write code and run scripts; session identity is stored on disk so a conversation can resume after a restart. To keep an active turn alive after the client closes, enable resident process mode with `DSH_MCP_DAEMON=1`.

Long jobs return a `run_id`; a sentinel file signals completion to the host. A running turn can be interrupted or redirected. Use `dsh-any-agent watch` or the local web dashboard, `dsh-any-agent dashboard`, to follow activity. Git worktree isolation is an optional setting. DeepSeek Harness and an MCP client that supports stdio are required.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `DSH_BIN`, `DSH_MCP_PERMISSION`, `DSH_MCP_APPROVAL`, `DSH_MCP_LANG` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env DSH_BIN=<DSH_BIN> --env DSH_MCP_PERMISSION=<DSH_MCP_PERMISSION> --env DSH_MCP_APPROVAL=<DSH_MCP_APPROVAL> --env DSH_MCP_LANG=<DSH_MCP_LANG> --transport stdio dsh-any-agent -- npx -y dsh-any-agent
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add dsh-any-agent --env DSH_BIN=<DSH_BIN> --env DSH_MCP_PERMISSION=<DSH_MCP_PERMISSION> --env DSH_MCP_APPROVAL=<DSH_MCP_APPROVAL> --env DSH_MCP_LANG=<DSH_MCP_LANG> -- npx -y dsh-any-agent
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "dsh-any-agent": {
            "command": "npx",
            "args": [
                "-y",
                "dsh-any-agent"
            ],
            "env": {
                "DSH_BIN": "<DSH_BIN>",
                "DSH_MCP_PERMISSION": "<DSH_MCP_PERMISSION>",
                "DSH_MCP_APPROVAL": "<DSH_MCP_APPROVAL>",
                "DSH_MCP_LANG": "<DSH_MCP_LANG>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "dsh-any-agent": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "dsh-any-agent"
            ],
            "env": {
                "DSH_BIN": "<DSH_BIN>",
                "DSH_MCP_PERMISSION": "<DSH_MCP_PERMISSION>",
                "DSH_MCP_APPROVAL": "<DSH_MCP_APPROVAL>",
                "DSH_MCP_LANG": "<DSH_MCP_LANG>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e DSH_BIN=<DSH_BIN> -e DSH_MCP_PERMISSION=<DSH_MCP_PERMISSION> -e DSH_MCP_APPROVAL=<DSH_MCP_APPROVAL> -e DSH_MCP_LANG=<DSH_MCP_LANG> dsh-any-agent npx -y dsh-any-agent
```
Replace <…> with your own values

## When to use it
- hand off a long coding task and collect its result later
- resume a conversation after the server restarts
- redirect an agent while its turn is running
- inspect tool calls during dispatched work

## Example prompts
- Ask DeepSeek Harness to fix the authorization module and report when the result is ready.
- Stop the current turn and redirect the agent to fix the tests.
- Show the tools called during the task.

## Similar
- [reverse-any-video](https://affpapa.org/en/nevibecode/skills/reverse-any-video.md) — skill · 180600 installs
- [Pooch PDF — Annotate Any Webpage](https://affpapa.org/en/nevibecode/mcp/pooch-pdf-annotate-any-webpage.md) — MCP server · 168 installs
- [mod-any-game](https://affpapa.org/en/nevibecode/skills/mod-any-game.md) — skill · 2100 installs
- [pay-with-any-token](https://affpapa.org/en/nevibecode/skills/pay-with-any-token.md) — skill · 847 installs
- [dsh-baton](https://affpapa.org/en/nevibecode/mcp/dsh-baton.md) — MCP server · ★ 249 repo stars
- [dsh-novel-forge](https://affpapa.org/en/nevibecode/mcp/dsh-novel-forge.md) — MCP server · ★ 50 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
