yishuiliufang/dsh-wsl-first
yishuiliufang/dsh-wsl-first发布一段带顺序的系统提示词段,指定 wsl 为执行命令时优先选用的执行器,让模型在 Windows 上优先走 WSL 而不是 PowerShell。不注册任何工具,且只宣传模型真实可调用的执行器。
向 system prompt 注入 WSL 发行版、Linux 路径映射、/mnt/c 的 CRLF 与 git 注意点,以及 NODE_USE_ENV_PROXY。
Install set: part of dsh-wsl-kit. PreferKIT_SET=daily|llm|github|full(see kit README). Fault tree: TROUBLESHOOTING.md.
DeepSeek Harness plugin: inject WSL / Windows path and shell facts into the system prompt.
Part of dsh-wsl-kit.
Injects WSL and Windows path facts into the system prompt. It is not a tool the model calls.
flowchart LR
facts["WSL and Windows facts"] --> env["dsh-wsl-env"] --> prompt["system prompt"]Suite diagram and version snapshot: dsh-wsl-kit. This plugin is 0.3.0 (daily; also in llm). Do not copy that matrix into this README.
Field · Value Plugin · dsh-wsl-env 0.3.0 Minimum dsh · ≥ 0.1.2 (web UI one-shot ?token= on Windows relay :3081) Latest verified · See dsh-wsl-kit Compatibility (currently `0.2.0-rc.2`) — single source of truth for the suite Kit set · daily (also in github / full; fetch+net also in llm) Cloud Flash · Use model id `deepseek-flash` (V4.1 Flash) in ~/.dsh/settings.yaml / llm-deepseek — not configured by this plugin Agent Teams · Upstream experimental; not required here
Suite floor versions: kit check-plugin-versions.sh. Fault tree: TROUBLESHOOTING.md.
The model often assumes a Windows shell (C:, PowerShell) even when the agent runs in Linux/WSL. This plugin adds a short system-prompt section so it prefers Linux paths, understands /mnt/c, and knows about Node 24 proxy quirks.
Kept short on purpose:
C:\Users... → /mnt/c/Users/...)/mnt/cNODE_USE_ENV_PROXY=1 when Node 24 must use HTTP(S)_PROXYdsh plugin --profile web add github:173787247/dsh-wsl-env
# or:
dsh plugin --profile web add /absolute/path/to/dsh-wsl-envRestart dsh web. Open a new session (existing sessions keep the old prompt).
Windows Subsystem for Linux.You should see the distro name and path mapping. The UI concatenates sections, so the internal id runtime:wsl-windows may not appear as a heading.
Non-WSL hosts skip injection by default (when: wsl).
Later profile layers that set config replace the whole object—restate every key you keep:
- id: dsh-wsl-env
name: dsh-wsl-env
config:
when: wsl # or: always
order: 15
extraNotes: "Prefer /home over /mnt/c for new files."Key · Default · Meaning when · wsl · Inject only in WSL, or always order · 15 · Prompt section order extraNotes · "" · Extra operator notes appended to the section
npm testMIT