On Windows, the available bash tool is limited to Git Bash and PowerShell is disabled.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:bainianlaoyao/bash-on-windows
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time. Only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Make Git Bash the only terminal tool for DeepSeek Harness on Windows (bundle + agent presets).
Stock dsh exposes PowerShell only on Windows (dsh-base mounts tool-pwsh/pwsh-sandbox on win32 and disables the bash counterparts via process.platform expressions). This plugin flips that default to Git Bash only. On macOS/Linux the stock default is already bash-only, so the plugin is a no-op there.
Unlike dsh-bash-terminal (switchable PowerShell / Git Bash / WSL), this plugin is strictly "only": PowerShell is removed from both the runtime and the model-facing tool surface.
Components
| Component | Purpose |
|---|---|
cordis.patch.yml |
bundle patch (dsh.bundle.patch): host-plane flips — tool-bash enabled, tool-pwsh disabled; executors bash-sandbox enabled, pwsh-sandbox disabled; win32 sandbox default danger-full-access + approval never (DSH_PERMISSION_MODE escape hatch; non-Windows untouched) |
presets/standard-bash code-bash cordis-bash |
bash-only preset variants (stock preset + two-line flip), because a bundle patch cannot modify dsh's shipped preset files |
scripts/install.ps1 |
installs the three presets as junctions under $DSH_HOME\.agent-presets\ (-Uninstall supported) |
scripts/build-presets.mjs |
regenerates the variants from a pristine @deepseek-ai/dsh source (after dsh upgrades) |
scripts/check-rows.mjs |
contract test: bash-only invariants of presets and patch |
How it works (two planes, both required)
- Host plane (bundle patch): the
bashtool's executor isbash-sandbox(it spawnsbashfrom PATH = Git Bash on Windows);pwsh-sandboxis disabled, so PowerShell does not exist at runtime. - Session plane (derived presets): the web surface (
dsh-web-app) disables both host shell rows and lets each session mount tools from its preset. Making the model see only bash therefore requires the preset files — which is exactly what used to be a fragile local edit of shipped files. This plugin turns it into distributable derived presets that never touch shipped files.
Install
# 1) Host plane (bundle patch)
dsh plugin --profile web add github:bainianlaoyao/windows-bash # GitHub distribution
dsh plugin --profile web add windows-bash # npm distribution (published; prebuilt install skips allowBuilds)
# or copy the rows from cordis.patch.yml into the profile patch layer
# 2) Session plane (three bash-only presets, junction install, no code copy)
powershell -ExecutionPolicy Bypass -File scripts/install.ps1
# 3) Restart dsh, create a session, pick the standard-bash / code-bash / cordis-bash preset
Prerequisite: Git for Windows installed (bash on PATH).
The npm package name equals the repo name: windows-bash (also installable by adding "windows-bash" to dsh.profile.bundles and running pnpm install).
Uninstall
powershell -ExecutionPolicy Bypass -File scripts/install.ps1 -Uninstall
# remove the bundle rows from the profile patch layer manually
Test
node scripts/check-rows.mjs # contract: bash-only invariants across presets and patch
After a dsh upgrade
Run node scripts/build-presets.mjs --src <pristine agent-presets dir> to regenerate the variants and commit them; the host-plane patch needs no changes (target row ids are provided by the official packages).
Security
See SECURITY.md — important: on win32 the default sandbox is danger-full-access with approval never; this is a hard requirement of Git Bash's cygwin runtime.
License
MIT. The derived presets come from DeepSeek Harness agent presets (MIT, Copyright (c) 2026 DeepSeek); each preset directory carries a LICENSE.deepseek-harness.
Links
More in this category
strukto-ai/mirage#dsh★ 3458
Swaps the filesystem and bash providers for a mirage virtual workspace: file tools and shell commands run over mounted resources (RAM, S3, Redis, Slack, Gmail, Notion, Postgres) instead of the host disk, with per-mount read/write/exec modes, per-command sandbox routing (monty, pyodide, quickjs in process; docker, e2b, daytona remote), and installed CLIs (git, gh, slack, linear, ntn, gws, or one you register) as head words in the virtual terminal.
hust-open-atom-club/oh-dsh★ 210
Community distribution: TUI, desktop, and Web UI as one bundle with layered installation.
Jayden-X-L/forkprobe★ 66
Compare multiple skills on the same task and pick the winner.
vlln/plugin-registry★ 47
Ecosystem infrastructure: a thin browser console for managing official repository plugins (zero patches) plus a make-dsh-plugin skill for guided plugin development.
forrestchang/dsh-multica-runtime★ 38
Run the dsh runtime on Multica.
omdsh-dev/dsh-plugin-check★ 22
Plugin health checks: manifest protocol / patch format / build traps, zero-dependency and read-only.