DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-unsandboxed-winbash

Unsandboxed Winbash

A plugin that adds a Git Bash (MSYS2) tool to dsh on Windows: Git Bash cannot start inside the file sandbox because the named pipes required by the MSYS runtime are rejected by the restricted token. This plugin therefore runs it outside the sandbox and states this in the tool description. The sandbo

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-unsandboxed-winbash@0.4.1
READMECompatibilityVersions

Description

A plugin that adds a Git Bash (MSYS2) tool to dsh on Windows: Git Bash cannot start inside the file sandbox because the named pipes required by the MSYS runtime are rejected by the restricted token. This plugin therefore runs it outside the sandbox and states this in the tool description. The sandboxing of pwsh, permission presets, and the fs tool remains unchanged.

Compatibility and provenance

Unsandboxed Winbash is published as dsh-unsandboxed-winbash and currently resolves to version 0.4.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
11/4/2026

Versions

0.4.1stable
10/24/2026
0.4.0stable
10/24/2026
0.3.0stable
10/24/2026
Show 10 more versionsCollapse versions
0.2.1stable
10/24/2026
0.2.0stable
10/23/2026
0.1.7stable
9/29/2026
0.1.6stable
9/28/2026
0.1.5stable
9/28/2026
0.1.4stable
9/24/2026
0.1.3stable
9/20/2026
0.1.2stable
9/20/2026
0.1.1stable
9/17/2026
0.1.0stable
9/17/2026

Related plugins

Loading related plugins…

Latest
0.4.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
82 kB
Files
11
Surface
any
License
MIT
Source
npm
GitHub
★ 0
Weekly downloads
194
Security scan
✓ v0.4.1 scan passed
Last push
10/31/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in developer-tools.

Web App@deepseek-ai/dsh-web-appThe dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)Sdk Minimal@deepseek-ai/dsh-sdk-minimalThe standalone minimal SDK profile bundle: JSON-RPC, one DeepSeek adapter, persistent shell, and JSONL sessionsSdk App@deepseek-ai/dsh-sdk-appThe dsh SDK profile bundle: stdio JSON-RPC serving and process lifecycle over dsh-baseExperimental Inspector@deepseek-ai/dsh-experimental-inspectorExperimental cross-realm CDP hub for Host debugging and Client Runtime inspection

README

dsh-unsandboxed-winbash

中文 | English

Windows 上的 Git Bash(MSYS2)工具插件。它向会话新增一个 winbash 工具,直接以 Git for Windows 的 bash 执行命令并修好 MSYS 的 PATH;命令在文件沙箱之外执行,工具描述也写明了这一点。

为什么需要它

Windows 上的 dsh 不提供 bash 工具:@deepseek-ai/dsh-base 在 win32 上禁用了 dsh-bash-sandbox 与 dsh-tool-bash。

Git Bash 也无法在 dsh 的文件沙箱内启动。受限 token 会拒绝 MSYS 创建信号处理所需的命名管道。

沙箱内的调用结果(Windows 11,dsh 0.1.5-rc.1):

尝试结果
bash -c(PATH 解析到 C:\Windows\System32\bash.exe)Bash/Service/CreateInstance/E_ACCESSDENIED
wsl.exe -e bash -cWsl/Service/CreateInstance/E_ACCESSDENIED
C:\Program Files\Git\usr\bin\bash.exe -cfatal error - couldn't create signal pipe, Win32 error 5

功能

  • 新增 winbash 工具:以 bash -c 执行命令,返回 stdout、stderr 与退出码。
  • 非零退出码作为命令结果返回,工具调用本身不失败。
  • Git Bash 只按 Git for Windows 的常见安装位置发现,不查询 PATH。
  • 把 Git 的 usr\bin、mingw64\bin、cmd 目录前置到子进程 PATH。
  • 结果保留输出末尾约 maxOutputBytes 字节,超出的部分写入 spill 文件并在结果里给出路径。
  • 截断按字符边界进行,多字节字符不会被切成乱码。
  • 子进程环境经 @deepseek-ai/dsh-subprocess 的 scrubbedParentEnv 擦除。
  • deadline 到期或调用被中止时按整棵进程树终止(taskkill /T /F)。
  • 一次运行在子进程的 exit 事件上结算,输出继续排空至多 drainMs 毫秒。
  • 子进程以隐藏窗口方式启动,不弹出控制台窗口。
  • run_in_background: true 经宿主的 ctx.jobs 注册任务,输出可增量读取。

安装

# 从 npm 安装并注册到 web profile(推荐)
dsh plugin --profile web add dsh-unsandboxed-winbash

# 仅下载 npm package
npm install dsh-unsandboxed-winbash

# 或从 GitHub 安装
dsh plugin --profile web add github:xswt442-cmd/dsh-unsandboxed-winbash

包内声明 dsh.bundle,工具行由 bundle 补丁挂载,不需要修改 cordis.patch.yml。

安装后重启 DSH Web 生效。

配置

- insert:
    - id: tool-winbash
      name: dsh-unsandboxed-winbash/tool
      config:
        bashPath: ''          # 显式指定 Git Bash 路径(默认自动发现)
        gitPathPrefix: true   # 把 Git 的 usr\bin / mingw64\bin / cmd 前置到 PATH
        extraPath: ''         # 额外 PATH 前缀,';' 分隔(排在最前)
        drainMs: 250          # 子进程退出后等待输出排空的上限
        graceMs: 3000         # 整棵进程树终止后升级为 SIGKILL 的宽限
        timeoutMs: 120000     # 命令默认超时
        maxTimeoutMs: 600000
        maxOutputBytes: 64000
        maxSpillBytes: 67108864
        enableRunInBackground: true

Git Bash 的自动发现顺序:

顺序路径
1%ProgramFiles%\Git\usr\bin\bash.exe
2%ProgramFiles%\Git\bin\bash.exe
3%LOCALAPPDATA%\Programs\Git\usr\bin\bash.exe
4%LOCALAPPDATA%\Programs\Git\bin\bash.exe
5%ProgramFiles(x86)%\Git\usr\bin\bash.exe
6%ProgramFiles(x86)%\Git\bin\bash.exe

显式配置的 bashPath 优先于发现结果。

未发现 Git Bash 且未配置 bashPath 时,报错出现在 winbash 的调用上。插件挂载不受影响。

安全与边界

  • 命令在文件沙箱之外执行,破坏性命令同样不受限制。
  • 工具描述写明这一边界,注册的参数列表中没有 sandbox_permissions。
  • 本插件不替换任何服务,只新增一个工具。
  • pwsh、权限预设、/permission 命令与 fs 工具仍受各自的沙箱与审批策略约束。
  • 需要受限、可审计的文件改动请用 fs 工具。
  • 名字含 KEY、PASSWORD、SECRET、TOKEN 的环境变量与全部父进程 DSH_* 变量都不传给子进程;子进程收到的是 dshEnv 提供的 DSH_* 事实与 Git 运行所需的变量。
  • 超时或被中止时按整棵进程树终止。
  • 后台任务在宿主退出时同步清理进程树。

平台与兼容性

项目要求
平台Windows(win32)
DSH>=0.2.0-rc.1
Node.js>=20
依赖Git for Windows(提供 Git Bash)

其他平台不需要本插件。dsh-tool-bash 与 dsh-bash-sandbox 在非 win32 平台默认启用。

开发与验证

修改后运行:

npm test          # 纯单元,不启动进程,沙箱内亦可
npm run test:e2e  # 启动真实 Git Bash,需要非沙箱 shell
npm run docs:check
npm pack --dry-run

License

MIT