rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:SamyiHu/dsh-pwsh7
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
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.
On activation it resolves a PowerShell 7 executable, and pins the live shell executor to it:
config.path — the row's path value in cordis.patch.ymlDSH_PWSH7_PATH environment variable%ProgramFiles%\PowerShell\7\pwsh.exe%LOCALAPPDATA%\Programs\PowerShell\7\pwsh.exe%LOCALAPPDATA%\Microsoft\WindowsApps\pwsh.exe (Microsoft Store / MSIX)PATH entry, <entry>\pwsh.exeEach 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.
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.
- 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
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).
pwsh-sandbox row's whole config; it only
writes pwshPath, which is the only field that row carries here.pwsh tool and PATH resolution. The integrated-terminal
backend (terminal-bash) is not mounted in this profile; if it is mounted
later, a backend that already resolved its own shellPath keeps that path
until the next restart.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。