安装
npx -y @deepseek-ai/dsh plugin --profile web add github:173787247/dsh-wsl-env此安装命令根据 GitHub 仓库地址生成,是未经验证的安装起点。
README
维护者编写的文档快照。
dsh-wsl-env
DeepSeek Harness plugin: inject WSL / Windows path and shell facts into the system prompt.
给「浏览器在 Windows、agent 在 WSL」的环境用。模型默认不知道自己跑在 Linux 里,容易去用 C:\、PowerShell,或把 Windows 盘当工作区扫一遍。
注入内容(保持很短):发行版与用户、Linux 路径映射、/mnt/c 的 CRLF、不要把 Windows 盘当日常 git 树、Node 24 要用代理时设 NODE_USE_ENV_PROXY=1。
Install
Already running dsh web:
dsh plugin --profile web add github:173787247/dsh-wsl-env
# or a local checkout:
dsh plugin --profile web add /absolute/path/to/dsh-wsl-env
Restart dsh web. Existing sessions keep the old prompt; open a new session.
Verify
- Send any message (Trajectory is empty until there is a turn).
- Open Trajectory → click SYSTEM / Initial System Prompt.
- Switch from the Tools tab to System Prompt.
- Search for
Windows Subsystem for Linux.
You should see the distro name (for example Ubuntu-24.04), Linux path rules, and a C:\Users\... → /mnt/c/Users/... mapping. The UI concatenates sections, so the internal name runtime:wsl-windows may not appear as a heading.
Non-WSL hosts skip injection by default. To force it, override the whole row in the profile cordis.patch.yml (later layers replace the entire config, so restate every key you still want):
- id: dsh-wsl-env
name: dsh-wsl-env
config:
when: always
order: 15
extraNotes: "Prefer /home over /mnt/c for new files."
Config
| Key | Default | Meaning |
|---|---|---|
when | wsl | Inject only in WSL, or always. |
order | 15 | Prompt section order (after persona 0, before tool guidance 100–199). |
extraNotes | "" | Optional extra operator notes appended to the section. |
Changelog
- 0.2.0 — also warn about CRLF on
/mnt/c, git on the Windows mount, andNODE_USE_ENV_PROXYfor Node 24. - 0.1.0 — first release: distro, Linux paths,
C:\→/mnt/c.
Topics
On GitHub, add dsh-plugin.
项目文件与信号
以下项目是目录快照中检测到的公开仓库信号。
仓库信息
- 开发语言
- JavaScript
- 许可证
- MIT
- 最后更新
- 2026年8月18日 15:45
谨慎安装
请检查源代码、权限、生命周期脚本、依赖与网络访问;不受信任的插件应先在隔离环境中测试。