173787247/dsh-wsl-open

Plugin插件 Native原生 ⭐ 3 MIT Dev Workflow开发与代码工作流

DeepSeek Harness plugin: click a WSL Linux path in chat to open it on Windows (default app, or Explorer for folders).

catalog descriptioncatalog 简介 / catalog description:DeepSeek Harness plugin: open WSL Linux paths from chat in Windows.

Project Overview项目介绍

dsh-wsl-open is a DeepSeek Harness plugin that bridges WSL and Windows files. It detects absolute Linux paths in assistant messages, marks them via CSS Highlight without modifying the React DOM, converts them with wslpath -w (or a fallback), and opens files through cmd.exe /c start with the default Windows app, or directories via explorer.exe. Use it when the browser runs on Windows but files live in WSL, such as slides generated by the agent. Note that only existing paths under the home directory, the current session workspace, or /mnt/(c|d)/Users are opened, and it is inactive on non-WSL hosts.

dsh-wsl-open 是一个 DeepSeek Harness 插件,用于在 Windows 与 WSL 之间的文件互访:自动把聊天中的 /home/.../mnt/c/... 路径转成 Windows 链接,点击后用 wslpath -w 转为 Windows 路径,文件通过 cmd.exe /c start 用默认程序打开,目录用 explorer.exe 打开。它在 CSS Highlight 阶段标记路径,不改动 React DOM,便于在 Windows 浏览器查看 WSL 内由助手生成的文件。适用:助手在 WSL 中生成 .pptx 等文件,用户需要在 Windows 端直接打开。注意:仅在已存在且位于家目录、当前会话工作区或 /mnt/(c|d)/Users 下的路径生效。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:173787247/dsh-wsl-open

173787247/dsh-wsl-open 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-wsl-open

Install set: part of dsh-wsl-kit. Prefer KIT_SET=daily | llm | github | full (see kit README). Fault tree: TROUBLESHOOTING.md.

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.

中文说明 → README.zh.md


Compatibility

Field Value
Plugin dsh-wsl-open 0.2.0
Minimum dsh 0.1.2 (web UI one-shot ?token= on Windows relay :3081)
Latest verified See dsh-wsl-kit Compatibility (currently 0.1.5-rc.1) — 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.

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

  1. Highlights absolute Linux paths in assistant text (CSS Highlight; does not rewrite React DOM)
  2. Maps with wslpath -w (or a fallback) to \\wsl$\<distro>\... or C:\...
  3. 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

  1. Ask the agent to write a file under /home/<you>/... (e.g. .pptx).
  2. The absolute path should be dotted-underlined.
  3. 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

上一个 Prev dsh-portable-launcher 下一个 Next LocalWhale