Opens WSL Linux paths from DeepSeek Harness chat in the Windows default app or Explorer.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:173787247/dsh-wsl-open
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
DeepSeek Harness plugin: click a WSL Linux path in chat to open it on Windows (default app, or Explorer for folders).
Part of dsh-wsl-kit.
English
Why
Chat does not turn /home/.../deck.pptx into a useful link. Generic “open path” plugins often call Linux xdg-open, which cannot launch Windows Office / WPS.
What it does
- Highlights absolute Linux paths in assistant text (CSS Highlight; does not rewrite React DOM)
- Maps with
wslpath -w(or a fallback) to\\wsl$\<distro>\...orC:\... - Files →
cmd.exe /c start(Windows default app); folders →explorer.exe
Only opens real paths under home, the session workspace, and /mnt/c/Users (and /mnt/d/Users). Non-WSL hosts skip open.
Prefer this for files/folders. Use dsh-wsl-launch for apps, and dsh-wsl-browser for http(s) URLs.
Install
dsh plugin --profile web add github:173787247/dsh-wsl-open
Restart dsh web, refresh the page. Click a dotted-underline path in a new or re-rendered assistant message.
Verify
- Ask the agent to write a file under
/home/<you>/...(e.g..pptx). - The absolute path should be dotted-underlined.
- Click it — Windows opens with the default app.
Debug: browser console [dsh-wsl-open]; host log dsh-wsl-open: loaded distro=....
Config
- id: dsh-wsl-open
name: dsh-wsl-open
config:
enabled: true
| Key | Default | Meaning |
|---|---|---|
enabled |
true |
Set false to disable |
Test
npm test
License
MIT
中文
为什么需要
官方聊天不会把 /home/.../xxx.pptx 变成可点链接;在 Linux 里 xdg-open 也打不开 Windows 上的 Office。本插件把路径标成可点,并在 Windows 用默认程序或资源管理器打开。
行为
- 高亮
/home/...、/mnt/c/...等绝对路径 - 转成
\\wsl$\...或C:\... - 文件用默认程序;目录用 Explorer
- 仅允许家目录、会话工作区、
/mnt/c/Users等真实存在路径
打开文件/目录用本插件;开应用用 dsh-wsl-launch;开网页用 dsh-wsl-browser。
安装
dsh plugin --profile web add github:173787247/dsh-wsl-open
重启并刷新页面,在新消息里点击带下划线的路径。
许可
MIT
Links
More in this category
6Mikao9/dsh-wsl-workspace★ 41
Add a WSL workspace from the web GUI without needing to install dsh or related tools again inside WSL. Bash commands and file read/write operations run within the local WSL distribution on the host machine, while Windows files remain accessible.
173787247/dsh-wsl-env★ 2
Injects WSL distro, Linux path mapping, /mnt/c CRLF and git caveats, and NODE_USE_ENV_PROXY into the system prompt.
173787247/dsh-wsl-net★ 2
Adds a net_doctor tool that reports proxy environment, NODE_USE_ENV_PROXY, and reachability of the DeepSeek API and the npm registry, and sets NODE_USE_ENV_PROXY on bash and npm child processes.
liyu34/dsh-wsl-tray★ 2
Windows desktop shortcut and system-tray launcher for DSH running in WSL, with fully hidden startup, tray open/restart/exit menu, and a plugin-configuration card to manage the shortcut.
173787247/dsh-wsl-browser★ 1
Opens http(s) URLs from WSL in the Windows default browser.
173787247/dsh-wsl-clipboard★ 1
Reads and writes the Windows clipboard from WSL.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.