Skills Plugins MCP Prompt Model 导航 博客 资讯 我的中心

dsh-shell

DeepSeek Harness 的 dsh-shell:在 Windows 运行 cmd / PowerShell(POSIX 运行类 bash),带超时、输出截断与 cwd 白名单。

qianwenxue1 @qianwenxue1 ⬇ 1 ★ 0 main

安装

dsh plugin --profile web add github:qianwenxue1/dsh-shell
下载安装清单

需要可复现安装时,可在仓库后追加 #commit 固定提交。

DeepSeek Harness 的 dsh-shell:在 Windows 运行 cmd / PowerShell(POSIX 运行类 bash),带超时、输出截断与 cwd 白名单。

该插件未提供要点说明,请参考仓库 README。

  1. 安装并启动 DeepSeek Harness:npx @deepseek-ai/dsh web
  2. 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
  3. 用 dsh plugins list 确认已安装,必要时重启 Harness 生效

插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。

代码仓库github.com/qianwenxue1/dsh-shell
许可证MIT
主要语言main
下载量1
GitHub 星标0
最近推送2026-08-17
收录日期2026-09-19
分类工具与能力

事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。

以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。

# dsh-shell

> A DeepSeek Harness (DSH) plugin that lets the model run **cmd** and **PowerShell** commands on Windows — with the safety model of the standard `bash` tool.

## Why

The stock `bash` tool of many agents fails on Windows (`subprocess-local: terminal inspection is unsupported on platform win32`). `dsh-shell` registers a `shell_exec` tool that understands Windows natively:

- `cmd.exe /d /s /c ...` by default
- `powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command ...`
- `sh`/`bash` fallback on Linux/macOS hosts

It mirrors the `bash` tool's safety contract:

| Feature | Behavior |
| --- | --- |
| Persistent cwd | `cd` persists across calls (per session, on disk) |
| Timeout | per-command `timeout` ms, capped by `maxTimeout` |
| Output truncation | per-stream `maxOutputBytes` cap with a marker (head + tail kept) |
| Exit codes | `exit_code`, `timed_out`, `stdout`, `stderr`, `truncated` |
| Background jobs | `background: true` returns a `job_id`; poll with `shell_job_status` |
| Denylist | refuses `rm -rf /`, `format`, drive-wide `del`/`rd`, `shutdown`, registry/service deletes |
| cwd allowlist | stays inside the session workspace unless `allowAnyCwd` |

## Install

### npm

```sh
dsh plugin --profile web add @qianwenxue1/dsh-shell
```
### build soure

```sh
# from npm after publishing
dsh plugin --profile web add @qianwenxue1/dsh-shell

# or from a local checkout
git clone https://github.com/qianwenxue1/dsh-shell.git
cd dsh-shell
pnpm install
pnpm build
dsh plugin --profile web add .
```

## Config

```yaml
- id: dsh-shell
  config:
    stateDir: .dsh-shell      # per-session state under the workspace
    defaultShell: cmd         # cmd | powershell
    maxTimeout: 600000        # ms hard cap
    maxOutputBytes: 30720     # per-stream cap (head + tail kept)
    allowAnyCwd: false        # true to allow cd/commands outside the workspace
    allowDangerous: false     # true to bypass the denylist
```

## Tools

### `shell_exec`

Run a command in the persistent shell.

```jsonc
{ "command": "dir /b", "shell": "cmd" }                       // simplest
{ "command": "Get-ChildItem -Name", "shell": "powershell" }   // PowerShell cmdlets
{ "command": "npm test", "timeout": 180000, "background": true } // long-running
```

### `shell_job_status`

Poll a background job:

```jsonc
{ "job_id": "job-1710000000000-abc123" }
```

## Development

```sh
pnpm install
pnpm build
pnpm verify
```

## License

MIT

数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。