yukitakasama/dsh-wsl-preset
DeepSeek Harness 插件:一键安装「WSL 模式」agent preset —— 把 DSH 标准模式中的 shell 调用映射到 Windows Subsystem for Linux (WSL),让 Windows 上的开发环境真正拥有完整的 Linux 命令行能力。
catalog descriptioncatalog 简介 / catalog description:DeepSeek Harness plugin: installs the 'wsl' agent preset for Windows WSL
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH), designed to add a ready-to-use WSL mode agent preset for DSH running on Windows. It re-maps the default shell executor of DSH's standard mode to call WSL instead of the default PowerShell on Windows, so developers can use full Linux command line tools like grep, sed, awk and rsync directly in their DSH workflows. The plugin is compatible with DSH version 0.1.5-rc.1 and can be installed directly from GitHub without needing to pull it from npm.
To use the plugin after installation, simply create a new conversation in the DSH web interface and select the WSL mode preset from the dropdown. To get command execution working, you can either switch your conversation sandbox policy to full access permanently, or leave it at workspace-write and let the model request a one-time permission upgrade when it needs to run a command. The plugin automatically detects if WSL is available on your system and does not require you to hardcode any paths for WSL.
The plugin has a few key requirements and limitations. First, your Windows system must already have WSL installed and enabled via the official Windows features or wsl --install command. Second, WSL cannot run inside the Windows restricted token sandbox used for lower permission levels, so the plugin will only allow command execution under full access policy, and never bypasses DSH's security sandbox boundaries. The entire project is released under the open source MIT license, so you can modify it or redistribute it freely as long as you retain the original license terms.
这是一款专为 DeepSeek Harness 开发的原生插件,可为 Windows 平台上的 DSH 添加「WSL 模式」agent 预设。它将 DSH 标准模式的 shell 调用映射到 WSL,让 Windows 开发者无需手动修改配置就能获得完整的 Linux 命令行能力,适配 DSH 0.1.5-rc.1 版本,支持 GitHub 直装,不需要发布到 npm。
本插件适合需要在 Windows 上使用 Linux 开发命令的 DSH 用户。DSH 默认在 Windows 上使用 PowerShell,很多常用 Linux 命令无法正常使用,手动配置 WSL 适配又比较复杂。用户安装本插件后,只需新建会话时选择 WSL 模式即可使用,所有命令会自动通过 wsl -e bash -c 执行,同时保留 DSH 标准模式的全部工具能力。
本插件要求系统已经安装并启用 WSL,沙箱策略为 workspace-write 及以下权限时无法启动 WSL,需要用户切换到完全访问权限或申请单次升级权限。本插件采用 MIT 许可开源,支持幂等自修复,可自动探测 WSL 路径,自带沙箱门控不会绕过安全边界,能自动刷新旧版本预设。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-wsl-preset(yukitakasama/dsh-wsl-preset)
仓库:https://github.com/yukitakasama/dsh-wsl-preset
本站详情页:https://www.yhbd.top/plugins/yukitakasama-dsh-wsl-preset/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-09-12 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:yukitakasama/dsh-wsl-preset
把 yukitakasama/dsh-wsl-preset 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-wsl-preset
DeepSeek Harness 插件:一键安装「WSL 模式」agent preset —— 把 DSH 标准模式中的 shell 调用映射到 Windows Subsystem for Linux (WSL),让 Windows 上的开发环境真正拥有完整的 Linux 命令行能力。
适配 dsh 0.1.5-rc.1。分布方式为 GitHub 直装(无需 npm 发布)。
About
DSH 自带的标准模式在 Windows 上默认使用 PowerShell 作为 shell,但很多开发工作需要 Linux 命令(如 grep、sed、awk、rsync 等)。虽然可以手动配置 WSL,但需要修改预设文件和执行器,对普通用户不友好。
本插件交付一个可安装的预设变体:同一套标准 persona + 完整工具表面(bash、文件系统、搜索、技能、工作流、委托、present 等),但 shell 执行器换成 WSL —— 每次命令执行 wsl -e bash -c <command>,并通过沙箱感知门控保证不绕过安全边界。
特性
- GitHub 直装:
dsh plugin add github:...通过 pnpm 直接拉取本仓库,无需 npm 发布; - 幂等 + 自修复:插件启动时把打包的预设装进用户预设根(
${DSH_HOME:-~/.dsh}/.agent-presets/wsl/);已存在但与包内文件不一致时自动刷新,因此升级插件就能修好旧版本留下的预设(autoUpdate: false只报告不覆盖,force: true无条件覆盖); - 自动探测 WSL:检查
wsl.exe是否可用(System32 目录),无需硬编码路径; - 沙箱感知门控:WSL 运行时无法在 Windows 受限令牌沙箱内启动,因此命令仅在「完全访问」策略下执行——不绕过沙箱,受限时给出明确升级指引;
- 完整功能:与标准模式工具表面保持一致(仅 shell 执行环境不同);
- 正确预设标签:会话选择器与状态栏显示「WSL 模式」。
工作原理
| 环节 | 说明 |
|---|---|
| 插件行 | cordis.patch.yml 在 web profile 组合中插入 dsh-wsl-preset,启动时安装/刷新预设文件 |
| 预设组合 | agent.cordis.yml 中 wsl-shell 组以 entry-local realm 提供 shell 服务,tool-bash 注册模型工具 |
| 执行器 | wsl-executor.mjs 通过 host 的 subprocess 服务执行 wsl -e bash -c,处理超时、后台、输出截断与错误诊断 |
| 沙箱门控 | run/start 校验策略:仅 danger-full-access(或部署无沙箱)放行,否则抛出带指引的错误 |
兼容性说明(dsh 0.1.5-rc.1)
本版本针对 0.1.5-rc.1 的接口变更做了适配:
| 变更 | 处理 |
|---|---|
dsh-persona 移除 text,改为必填 prefix + suffix |
预设已改用 prefix/suffix(旧写法会挂载失败) |
dsh-tool-bash 移除 toolName 配置,工具名固定为 bash |
已移除 toolName;WSL 改变的是执行内容而非工具名 |
标准 preset 新增 command-goal、present 行 |
已同步补齐 |
tool-subagent 新增 modelSelectionSettings |
已同步,modelSelectionSettings: true |
tool-web 默认开启 fetch |
已同步为 fetch: true |
安装
方式一:GitHub 直装(推荐)
dsh plugin --profile web add github:yukitakasama/dsh-wsl-preset
dsh plugin 会把参数转发给 profile 目录下的 pnpm;pnpm 克隆本仓库并安装依赖,随后 DSH 自动把声明了 dsh.bundle 的包加入 profile 的 layer 栈。
锁定版本 / 分支 / 提交:
dsh plugin --profile web add github:yukitakasama/dsh-wsl-preset#v0.3.0
更新:
dsh plugin --profile web update @yukitakasama/dsh-wsl-preset
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
chuspeeism/dashi-taskboard
zhoushoujianwork/easyeda-agent
morluto/rea
gitroomhq/postiz-agent
linhay/harmony-next.skills
yzlnew/infra-skills
liceses/dsh-gitbash-preset
sjh9714/dsh-win32