DeepSeek Harness 插件

dsh-wsl-env

Inject WSL/Windows path and shell facts into the DeepSeek Harness system prompt.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
173787247/dsh-wsl-env
最近更新
2026年8月18日
分类
工具与能力
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/173787247/dsh-wsl-env
插件名:dsh-wsl-env
作者:173787247

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

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

1. Send any message (Trajectory is empty until there is a turn). 2. Open Trajectory → click SYSTEM / Initial System Prompt. 3. Switch from the Tools tab to System Prompt. 4. 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

KeyDefaultMeaning
whenwslInject only in WSL, or always.
order15Prompt 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, and NODE_USE_ENV_PROXY for Node 24.
  • 0.1.0 — first release: distro, Linux paths, C:\/mnt/c.

Topics

On GitHub, add dsh-plugin.