nikoart-liu/dsh-open-in-x

在 DeepSeek Harness Web 界面中,把当前会话的工作目录直接交给本机外部应用打开。

Project Overview项目介绍

dsh-open-in-x is a DeepSeek Harness plugin that adds an “Open in external app” action to a session’s top toolbar, launching the session’s working directory in locally installed apps such as Finder, VS Code, Cursor, or a terminal. Use it when working in DSH Web on the same machine as dsh web; it will not start apps on the browser’s host in remote scenarios. Caveat: keep allowRemote at its default false unless the deployment is behind a trusted, CSRF-protected reverse proxy and the GUI-launch risk is fully understood.

dsh-open-in-x 是 DeepSeek Harness 的插件,在会话顶部工具栏新增“在外部应用中打开”按钮,把当前会话的工作目录交给本机已安装的 Finder、VS Code、Cursor、终端等应用。仅当浏览器连到运行 dsh web 的同一台机器时有效;远程场景不会在浏览器所在电脑启动应用。注意:allowRemote 默认必须保持 false,开启前需充分评估安全风险。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

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

CLI Install命令行安装

npx @deepseek-ai/dsh plugin --profile web add dsh-open-in-x

把 nikoart-liu/dsh-open-in-x 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-open-in-x

Awesome DSH Plugin

在 DeepSeek Harness Web 界面中,把当前会话的工作目录直接交给本机外部应用打开。

支持:

  • macOS Finder、Windows 文件资源管理器、Linux 默认文件管理器
  • macOS 终端、Windows Terminal、常见 Linux 终端模拟器
  • Visual Studio Code
  • Cursor
  • Windsurf
  • Zed
  • IntelliJ IDEA
  • WebStorm
  • PyCharm
  • Android Studio

插件会向当前会话顶部工具栏添加“在外部应用中打开”按钮,只展示 DSH Host 所在机器上已安装的应用。这里的“本机”指运行 dsh web 的机器;如果浏览器连接的是远程 DSH,应用不会在浏览器所在电脑启动。

要求

  • Node.js 22.19+ 或 24+
  • DeepSeek Harness 0.1.0-rc.6 或更高的兼容版本
  • DSH Web 默认绑定到 127.0.0.1

Harness 仍处于 developer preview,Web Client 插件协议可能发生不兼容变化。本插件的公开 Slot 实现针对官方 0.1.1-rc.2 / 上游提交 b150a551 开发,并在本机 DSH 0.1.0-rc.7 上完成了真实安装和启动冒烟测试。旧版本没有 session header action slot 时,插件会把相同操作加入真实 Workspace 的 ⋯ 菜单;新版本检测到公开 slot 后会自动撤下兼容层。

安装

安装 npm 发布版:

npx @deepseek-ai/dsh plugin --profile web add dsh-open-in-x
npx @deepseek-ai/dsh web

从源码构建并安装到 Web profile:

pnpm install
pnpm run check
npm pack
npx @deepseek-ai/dsh plugin --profile web add ./dsh-open-in-x-0.1.1.tgz
npx @deepseek-ai/dsh web

开发时也可以直接安装本地目录:

npx @deepseek-ai/dsh plugin --profile web add /absolute/path/to/dsh-open-in-x

安装后重启 dsh web。选择一个已有工作目录的会话,在会话顶部工具栏点击“在外部应用中打开”,再选择 Finder、VS Code 等应用。

卸载:

npx @deepseek-ai/dsh plugin --profile web remove dsh-open-in-x

配置

默认启用全部内置 launcher,未安装的应用不会显示。Host 插件支持以下 Cordis 配置:

apps:
  - finder
  - terminal
  - vscode
  - cursor
  - windsurf
  - zed
  - idea
  - webstorm
  - pycharm
  - android-studio
allowRemote: false
allowLegacyPaths: false
defaultApp: vscode
quickOpen: true

allowRemote 默认必须保持 false。只有在 DSH 位于带身份认证和 CSRF 防护的可信反向代理之后,并且你明确理解“网页触发 Host GUI 进程”的风险时才应开启。

quickOpen: true 且 defaultApp 可用时,主按钮会直接在默认应用中打开;旁边的下拉按钮仍可选择其他应用。

应用列表只在 DSH Web 页面加载(包括刷新页面)时检测一次,不会定时检测,也不会在页面重新回到前台时检测。安装或卸载应用后刷新 DSH Web 页面即可更新列表;未安装或当前平台不支持的应用始终不展示。

新式会话操作只向 Host 发送 Session ID,工作目录完全由 Host 的 Session 状态解析。旧版 DSH 的 Workspace 菜单只能提供路径,因此默认由 allowLegacyPaths: false 禁止;仅在本机可信环境需要旧版兼容菜单时才应显式开启。

工作原理

插件是一个 DSH bundle,同时包含两部分:

  • Browser half 优先注册到公开的 conversation.session.header.actions list slot,只向 Host 发送当前会话的 id;不具备该 slot 的旧版本使用仅面向 Workspace 菜单的兼容适配。
  • Host half 在 ctx.webServer 注册唯一的 POST /__dsh/open-in-x exact route,在宿主机启动选定应用。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev BigFocus 下一个 Next dsh-launcher →