dsh_task
Delegates a self-contained task to the locally installed DeepSeek Harness coding agent and returns its final answer. Use it to offload research, scoped implementation, test runs, or a second opinion.
Instructions
Delegate one task to the DeepSeek Harness (DSH) agent installed on this machine and return its final answer. DSH runs as a separate coding agent with its own tools, model route, workspace, and sandbox; this call blocks until it finishes. Use it to offload research, a scoped implementation, a test run, or a second opinion, and to reach tools or skills that exist only in DSH. Each call opens a fresh DSH session unless session_id is supplied; call dsh_continue to keep working in the same session. Call dsh_list_workspaces first to choose a registered project folder.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>"
},
"name": "dsh_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute working directory for the DSH session. Relative paths resolve against this MCP server's own working directory. Omit to use the directory Codex launched the server in. | |
| task | Yes | The complete task for the DSH agent. Write it as a self-contained instruction: DSH starts a fresh session with no knowledge of this conversation, so include the goal, the constraints, and what a finished result looks like. | |
| add_dirs | No | Extra absolute directories granted to DSH under workspace-write, for example a shared .git directory. Each entry is an explicit grant, so list only what the task needs. Existing-session ACP resumes keep the directories already stored in DSH. | |
| session_id | No | Continue this existing DSH session instead of starting a new one (same as dsh_continue). | |
| timeout_sec | No | Wall-clock limit for this task in seconds (30-3600, default 900). | |
| workspace_id | No | ID returned by dsh_list_workspaces. When supplied, the registered DSH workspace path is used as cwd. | |
| permission_mode | No | Permission preset for the DSH session. Default "workspace-write": DSH may edit files inside the working directory but not outside it. Use "read-only" for pure research. Existing-session ACP resumes keep the permission settings already stored in DSH and cannot change them. |