dsh-pwsh7
DiscoveredDSH plugin: pin the pwsh tool to PowerShell 7 and never fall back to Windows PowerShell 5.1
dsh-pwsh7 — PowerShell 7 for the pwsh tool
dsh-pwsh7 pins the DSH shell executor (the pwsh tool) to PowerShell 7 and
refuses to fall back to the Windows PowerShell 5.1 that ships with Windows.
What it does
On activation it resolves a PowerShell 7 executable, and pins the live shell executor to it:
config.path— the row'spathvalue incordis.patch.ymlDSH_PWSH7_PATHenvironment variable%ProgramFiles%\PowerShell\7\pwsh.exe%LOCALAPPDATA%\Programs\PowerShell\7\pwsh.exe%LOCALAPPDATA%\Microsoft\WindowsApps\pwsh.exe(Microsoft Store / MSIX)- every
PATHentry,<entry>\pwsh.exe
Each candidate is not trusted by existence alone: the plugin runs it and reads
$PSVersionTable.PSVersion, and only accepts major version 7 or newer. The
chosen folder is also moved to the front of PATH, so child processes and any
component that resolves pwsh through PATH (including the terminal backend
when it is mounted) see the same executable.
When no PowerShell 7 is found, the plugin fails loudly: shell commands raise
dsh-pwsh7: PowerShell 7 is required ... instead of silently running 5.1.
Install
git clone https://github.com/SamyiHu/dsh-pwsh7.git
Then install that directory as a bundle: Settings → Plugins → Add plugin (a
local directory), or plugin_manager install_bundle with the absolute path.
Install PowerShell 7 first:
winget install --id Microsoft.PowerShell -e
Restart DeepSeek Harness afterwards so the plugin re-resolves at boot.
Configuration
- id: pwsh7
name: dsh-pwsh7
config:
path: '' # explicit pwsh.exe; empty = auto-detect
strict: true # false = warn instead of blocking the shell when PS7 is missing
Status file
Every boot writes status.json beside this file:
{
"ok": true,
"resolvedPath": "C:\\Users\\<you>\\AppData\\Local\\Microsoft\\WindowsApps\\pwsh.exe",
"version": "7.7.0",
"effectivePath": "C:\\Users\\<you>\\AppData\\Local\\Microsoft\\WindowsApps\\pwsh.exe"
}
effectivePath is read back from the live shell executor, so ok: false means
the pin did not reach the executor (a restart is then required).
Limits
- Windows only; the row is disabled on other platforms.
- The bundle patch replaces the
pwsh-sandboxrow's wholeconfig; it only writespwshPath, which is the only field that row carries here. - It pins the agent
pwshtool andPATHresolution. The integrated-terminal backend (terminal-bash) is not mounted in this profile; if it is mounted later, a backend that already resolved its ownshellPathkeeps that path until the next restart. - Turning the plugin off restores DSH's built-in resolution.
Comments
Loading…
Similar plugins
by xinspark
PowerShell 7 for the DSH `pwsh` tool on Windows: detect, validate, and install the self-updating Microsoft Store package — one install path, with the connection checked first.
★ 4
↓ 3.1k/wk
MIT
JavaScript
Nov 6, 2026
dsh plugin --profile web add dsh-win-pwsh7by drliuhuan
Replaces the Windows pwsh executor row so the model-facing pwsh tool runs PowerShell 7, with a shell_router tool for status, diagnosis, and per-user portable installation.
★ 4
↓ 1.2k/wk
MIT
JavaScript
Nov 5, 2026
dsh plugin --profile web add dsh-plugin-pwsh7by Saikel-Orado-Liu
Windows-adapted DSH coding agent preset with persistent PowerShell 7 (pwsh) and str_replace_editor, mirroring the official minimal preset.
★ 3
MIT
JavaScript
Aug 21, 2026
dsh plugin --profile web add @gamegeek-saikel/dsh-coding-presetby chaggle
Native DeepSeek Harness plugin: gates pwsh tool calls against PowerShell pitfalls via the official tools/pre-execute interception point, bundles the powershell-check skill
★ 4
MIT
JavaScript
Oct 25, 2026
dsh plugin --profile web add @chaggle/dsh-powershell-checkby waterha
Provides an always-on-top window feature for the DSH window, preventing it from being hidden unexpectedly, Windows only; requires PowerShell 7 (pwsh.exe) on PATH.
★ 3
MIT
JavaScript
Oct 18, 2026
dsh plugin --profile web add dsh-pintopby Momojie-S
DSH plugin: per-workspace .env injection for shell subprocesses
★ 2
MIT
JavaScript
Nov 12, 2026
dsh plugin --profile web add @momojie-s/dsh-workspace-env