dsh
Run coding tasks through your local DeepSeek Harness CLI. Provide a self-contained prompt; get stdout, stderr, exit code, and execution time.
Instructions
Run a prompt through your locally installed DeepSeek Harness CLI (dsh --print). Blocks until dsh settles, then returns the captured stdout, the last 4 KB of stderr, the exit code, and the wall-clock time. dsh cannot see this conversation, so the prompt must be self-contained: file paths, goal, constraints, expected output format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute path where dsh will run. Defaults to the server's cwd. Relative paths are rejected. | |
| prompt | Yes | The complete task for the DeepSeek Harness agent. Must be self-contained — dsh cannot see your conversation, so include everything it needs (file paths, goal, constraints, expected output format). | |
| timeout_ms | No | Wall-clock timeout in milliseconds. Defaults to 300000 (5 min). Hard ceiling is 1800000 (30 min). On timeout, dsh is sent SIGTERM (then SIGKILL after 5 s) and the tool result is reported as a `DshTimeout` error. |