One shell tool for PowerShell / Git Bash / WSL on Windows plus an interactive PTY terminal; the default terminal is chosen by the user in DSH settings.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-bash-terminal
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:MAXeaglet/dsh-bash-terminal
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 — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
A DeepSeek Harness (DSH) plugin: one shell tool that runs commands through PowerShell / Git Bash / WSL on Windows, plus an interactive terminal tool — all following the terminal you choose in the Web UI settings.
Features
| Backend | Runs | Syntax / paths | Env vars |
|---|---|---|---|
powershell (default) |
pwsh -NoLogo -NoProfile -NonInteractive -Command <cmd> |
PowerShell; C:\\... |
$env:NAME |
gitbash |
Git for Windows bash -lc <cmd> |
POSIX; /d/WorkSpace; PATH includes /usr/bin and /mingw64/bin |
$NAME |
wsl |
wsl [-d <distro>] -e bash -lc <cmd> |
Linux; /mnt/d/... |
$NAME (via WSLENV) |
- User decides, the AI cannot override: pick the default terminal in Settings -> General -> Default terminal (PowerShell / Git Bash / WSL). The setting persists through the DSH settings system; the
shelltool always obeys it. - Official sandbox seam: the
shelltool resolves the DSH sandbox policy per call and confines PowerShell argv throughctx.sandbox— same fail-closedSandboxUnavailableErrorsemantics as the shipped executors. Git Bash and WSL run unconfined: WSL is its own Linux VM, while Git Bash cannot run under the DSH Windows ACL restricted-token runner (Cygwin/MSYS2 aborts withCreateFileMappingWin32 error 5). Officialsandbox_permissions/justificationescalation and denial markers included. - Interactive terminal: the
terminaltool opens persistent real-PTY sessions over node-pty — on non-Windows via the officialctx.subprocess.spawnTerminalseam, on Windows directly through node-pty because the upstream seam's process inspector is POSIX-only. Actionsopen/send/read/signal/close; shell state persists across calls; sessions are managed as background jobs and auto-close when idle. - Background execution via the generic jobs registry (
run_in_background/job_output/job_kill).
Install
The package ships the official dsh.bundle manifest (its own cordis.patch.yml): listing dsh-bash-terminal in a profile's dsh.profile.bundles auto-applies the mount — no manual profile edits.
npm install -g dsh-bash-terminal
dsh plugin --profile web add dsh-bash-terminal # adds to profile bundles + applies the patch
powershell -ExecutionPolicy Bypass -File install.ps1 install # patches the DSH settings-UI allowlist (see below)
# restart dsh web
DSH limitation: the Web settings client only exposes a hard-coded allowlist of settings namespaces (
dsh-host-apiproxy); third-party settings writes are refused withsettings-not-exposedotherwise.install.ps1patches the allowlist (with a backup) — re-run it after upgrading DSH;install/uninstallrestores it.
For local development (junction install, source changes apply instantly) see the Chinese README's development section.
Sandbox
danger-full-accesssessions run directly (no wrapping).- Confined sessions wrap PowerShell argv through
ctx.sandbox.confine; fail-closed when no backend is available. - Git Bash is never wrapped: the Windows ACL restricted-token runner cannot host Cygwin/MSYS2 (
CreateFileMappingWin32 error 5); results reportenforcement: gitbash-unconfined. - WSL is never wrapped (its VM isolation is the sandbox; results report
enforcement: wsl-isolation). - Denied calls render the official
[sandbox: file access denied under <mode> mode]marker plus a same-turn escalation hint; the model may retry once withsandbox_permissions+justification(user-approved viactx.approval). - Note: when DSH's Windows ACL runner is available, it confines PowerShell; Git Bash remains unconfined due to the Cygwin/MSYS2 incompatibility.
Interactive terminal
terminal actions: open (start a session on the configured default terminal), send (write input + read new output), read, signal (SIGINT = Ctrl+C etc.), close, list (enumerate live sessions). Reads wait for output to settle (quiet 300ms, cap 5s) so send returns the complete reply; buffer overflow reports a truncated notice. State (cwd / variables / aliases) persists across calls; end input with \\n. Sessions are background jobs (job_kill works) and auto-close after 10 idle minutes (idleMs overrides on open).
Interactive terminal known limits (ConPTY)
- Windows PowerShell 5.1 cannot start in a ConPTY (0x8009001d) — install PowerShell 7 for interactive PowerShell (one-shot commands are unaffected).
- wsl.exe interactive mode may hit a WSL service RPC error under ConPTY (0x8007072c, intermittent) — one-shot
wsl -e bash -lc ...works; for interactive WSL prefer a real terminal (Windows Terminal / WSL app) or retry. - node-pty accepts no named signals on Windows:
signalmapsSIGINTto Ctrl+C (\x03); other signals (SIGTERM/SIGKILL/SIGTSTP/SIGHUP) degrade to terminating the session. - Git Bash interactive sessions work fully.
Config
Web UI: Settings -> General -> Default terminal. Plugin row config overrides: defaultShell, timeoutMs, maxTimeoutMs, pwshPath, gitBashPath, wslPath.
Uninstall
powershell -ExecutionPolicy Bypass -File install.ps1 uninstall
Tests
node test/unit.mjs && node test/apply.mjs && node test/client.mjs && node test/terminal.mjs
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 30675
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
superdesigndev/treg★ 3596
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
TencentCloudBase/CloudBase-AI-Toolkit#dsh-plugin★ 1126
Tencent CloudBase backend for DeepSeek Harness — scaffold and deploy full-stack apps from chat, render query results as table cards with paging, sorting and CSV export, preview a deployment on its domain, and call the CloudBase MCP toolset (`mcp__cloudbase__*`) with device-code login.
gitroomhq/postiz-agent#dsh-postiz★ 496
Connects DeepSeek Harness to Postiz over MCP: list connected social media channels, fetch per-platform posting rules, and schedule, draft, or publish posts to X, LinkedIn, Instagram, Facebook, Threads, TikTok, YouTube, Reddit, Bluesky, Mastodon, Discord, Slack, Telegram and more; adds a postiz workflow skill.
EthanYoQ/Invoice-Downloader#dsh-invoice-downloader★ 446
Local IMAP invoice download, OCR, archive, and Excel reimbursement summaries for DeepSeek Harness.
anysearch-team/anysearch-dsh★ 430
AnySearch-powered real-time web and vertical search provider for DeepSeek Harness.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.