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 路径,自带沙箱门控不会绕过安全边界,能自动刷新旧版本预设。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 →

← 上一个 Prev dsh-plugin-mcp 下一个 Next dsh-models-radar →