LJninse/dsh-open-in-ide 预览 preview

LJninse/dsh-open-in-ide

DeepSeek Harness Web UI 插件:添加一个 IDE 按钮,自动检测本地 IDE 并打开当前工作区文件夹。

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH), adding an IDE button to the top navigation bar of the DSH web UI. When clicked, the button opens the current DSH session’s working directory directly in your locally installed IDE, eliminating the need to manually copy paths and open folders via the IDE’s file menu. To install the plugin, you can clone the GitHub repo, add it via a local tarball, or manually mount it to your DSH profile directory, and it requires DSH version 0.1.0-rc.6 or newer.

This plugin is designed for DSH users who regularly work in the web UI and need to quickly jump from DSH-generated code to editing in their local IDE. It automatically detects installed IDEs by first checking the Windows Registry for pre-registered paths, then falling back to heuristic scanning of common install directories, PATH shims, and user folders. It supports over 20 popular IDEs including VS Code, Cursor, all JetBrains IDEs, Sublime Text, Eclipse, and Visual Studio, and lets you manually add any custom IDE executable file that isn’t detected automatically.

This plugin currently only supports Windows systems, as its IDE detection logic and native file dialog are built exclusively for the Windows desktop environment. All custom IDE preferences, default IDE settings, and recent usage data are saved to a JSON file in your working directory root, and detection results are cached for 30 minutes to another JSON file in the same location. It is recommended that you add both of these files to your project’s .gitignore to avoid committing them accidentally. The project is licensed under CC BY-NC 4.0, which allows free non-commercial use, modification, and redistribution, but prohibits any commercial use of the code.

这是一个专为 DeepSeek Harness(DSH)开发的原生 Web UI 插件,会在 DSH 会话顶部栏添加一个「IDE」按钮,实现一键用本地安装的 IDE 打开当前 DSH 会话的工作区目录。插件采用 Node 宿主端加浏览器客户端的双面包架构,宿主端负责检测 IDE 和启动路由,客户端负责 UI 渲染和交互。它支持通过 git 克隆、本地目录压缩包或手动挂载三种方式安装,要求 DSH 版本不低于 0.1.0-rc.6。

该插件面向在 DSH Web 界面中工作,需要频繁将当前工作目录导入本地 IDE 查看或修改的用户。它会优先从 Windows 注册表读取已安装 IDE 的路径,再通过常见安装目录扫描兜底,支持自动检测包括 VS Code、Cursor、JetBrains 全家桶在内的数十种常用 IDE,也支持手动添加自定义 IDE 路径。设置默认 IDE 后,点击按钮即可直接打开,无需手动复制路径再操作 IDE 打开目录。

该插件仅支持 Windows 系统,因为检测逻辑和文件对话框都针对 Windows 桌面环境开发。自定义 IDE 配置和检测结果会分别缓存到工作区根目录的两个 JSON 文件中,建议将这两个文件添加到 .gitignore 避免提交。项目采用 CC BY-NC 4.0 许可,允许非商业免费使用修改分发,禁止商业用途。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
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命令行安装

dsh plugin --profile web add github:LJninse/dsh-open-in-ide

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

READMEREADME

dsh-open-in-ide

顶部栏「IDE」按钮 —— DeepSeek Harness(简称 dsh)Web UI 插件:自动检测本机已安装的 IDE,一键用其打开当前会话的工作区目录。

License dsh platform


简介

在 DeepSeek Harness 的 Web GUI 里工作时,经常需要「把当前项目用本地 IDE 打开」。这个插件在会话头部右上角加入一个「IDE」按钮:设置默认 IDE 后单击即直接打开当前工作区目录,点 ▾ 或右键可展开菜单选择其它 IDE —— 省去手动复制路径、再到 IDE 里 File > Open Folder 的麻烦。

插件是标准的 dsh 双面包:

  • 宿主半(Node) index.mjs:负责在本机检测 IDE、启动所选 IDE,并自建同源 HTTP 路由 /open-in-ide。
  • 浏览器半(Client) client.js:负责顶栏按钮与下拉菜单 UI,通过同源 fetch 调用宿主半的路由。

用途 / 使用场景

  • 在 dsh Web GUI 中让 agent 干活时,一键把当前工作区目录在本地 IDE 中打开,边看边改。
  • 多 IDE 共存时(VS Code / Cursor / JetBrains 全家桶等)快速切换,无需记住各自的安装路径。
  • IDE 装在任意自定义目录(D 盘、便携版等)都能通过注册表 App Paths 精确定位;即便个别程序没写注册表,也有目录扫描兜底,实在扫不到还能手动指定任意 .exe。

功能特性

  • 自动检测(注册表优先):优先读取 Windows 注册表 —— App Paths(安装程序注册的「exe 名 → 真实路径」映射,能精确定位任意自定义安装位置)与卸载项(InstallLocation / DisplayIcon / UninstallString);再以常见安装目录、PATH 里的 .cmd shim、scoop、JetBrains Toolbox、Program Files 下的 JetBrains、开始菜单 .lnk 快捷方式,以及桌面/下载/文档等用户目录与其它盘符根目录的启发式扫描作为兜底。
  • 自定义添加(持久化):菜单底部「选择 IDE 程序…」弹出 Windows 原生文件对话框,任选一个 .exe 立即加入列表;自定义项保存到 .dsh-open-in-ide-prefs.json,重启后仍存在,并可随时删除。
  • 默认 IDE / 最近使用:条目右侧 ☆ 可设为默认(再次点击取消),默认项自动置顶并显示「默认」徽标;未设默认时最近一次使用的 IDE 置顶并显示「上次」。
  • 点击直达:已设默认(★)时,单击「IDE」按钮直接用它打开当前工作区,无需展开菜单;仍想选其它 IDE 时,点按钮右侧的 ▾ 下拉箭头或右键按钮展开完整菜单。
  • 缓存与预热:检测结果缓存到工作区下的 .dsh-open-in-ide-cache.json(TTL 30 分钟),插件启动后会延迟预热扫描,首次点击通常无需等待;「重新检测」会绕过缓存强制执行全新扫描。
  • 菜单选择打开:展开菜单点击任一 IDE 即用其打开当前会话的工作区目录;菜单顶部显示目标目录。
  • 随时重新检测:菜单底部提供始终可用的「重新检测」按钮,安装/移动 IDE 后无需重启即可重新扫描。
  • 双面包架构 + 可测试:宿主半负责检测与启动,浏览器半负责 UI,互不耦合;纯检测逻辑抽到 lib.mjs 并带 node:test 单测。
  • 中英文界面:客户端文案接入 DSH locale(open-in-ide 命名空间),跟随界面语言显示中文或英文。

支持检测的 IDE

VS Code / VS Code Insiders、Cursor、Windsurf、Zed、Trae、VSCodium、IntelliJ IDEA(Ultimate / Community)、PyCharm(Professional / Community)、WebStorm、PhpStorm、GoLand、CLion、Rider、DataGrip、RubyMine、RustRover、Aqua、Writerside、Fleet、Android Studio、Sublime Text、Eclipse、Visual Studio 等。菜单里还内置「资源管理器」入口,可直接用系统文件管理器打开目录。

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

← 上一个 Prev dsh-creator 下一个 Next dsh-plugin-template →