yishuiliufang/dsh-wsl-first
yishuiliufang/dsh-wsl-first发布一段带顺序的系统提示词段,指定 wsl 为执行命令时优先选用的执行器,让模型在 Windows 上优先走 WSL 而不是 PowerShell。不注册任何工具,且只宣传模型真实可调用的执行器。
诊断 WSL 端口监听与 Windows localhost 转发,并对 dsh web 中继的 3080/3081 给出含 launch token 的 uiPlaybook。
Install set: part of dsh-wsl-kit. PreferKIT_SET=daily|llm|github|full(see kit README). Fault tree: TROUBLESHOOTING.md.
DeepSeek Harness tool: `port_doctor` — report WSL IPs and whether a TCP port is listening; advise on Windows localhost forwarding.
Part of dsh-wsl-kit.
Diagnoses which process owns a WSL port. The Windows chat URL is :3081/?token=, not bare :3080.
flowchart LR
agent["dsh agent"] --> tool["port_doctor"] --> ports["WSL listeners and :3081 relay"]Suite diagram and version snapshot: dsh-wsl-kit. This plugin is 0.2.2 (full; also in llm). Do not copy that matrix into this README.
Field · Value Plugin · dsh-wsl-port 0.2.2 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 · llm / full (some also useful alone) 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.
Scope: port_doctor for listen state + Windows localhost tips. For dsh UI use 3080 (WSL) and relay 3081 (Windows) with launch ?token= (dsh ≥0.1.2). Do not bind dsh web --host 0.0.0.0.
A server bound in WSL may be reachable as http://127.0.0.1: from Windows—or may need the WSL eth IP / a firewall fix / wsl --shutdown. This tool checks hostname -I and ss listen state.
Default port: 3080 (common dsh web port). Override with the port argument.
Port · Where · Role 3080 · WSL 127.0.0.1 · dsh web itself — do not open from Windows unless mirrored 3081 · Windows relay · Browser entry; needs ?token= on dsh ≥0.1.2
Ask for port_doctor on both when the UI is blank / ERR_CONNECTION_*. Prefer kit restart-dsh-web.sh + check-dsh-health.sh before inventing netsh rules. For LAN exposure see dsh-wsl-expose — not for local chat UI.
dsh plugin --profile web add github:173787247/dsh-wsl-port- id: dsh-wsl-port
name: dsh-wsl-port
config:
timeoutMs: 15000
defaultPort: 3080npm testMIT