Tools & Capabilities

dsh-open-in-finder

moduqishi/dsh-open-in-finder · ★ 1

moduqishi

DeepSeek Harness (dsh web) plugin: one-click open-in-Finder icon in the session header.

README body is shown in Chinese.

License
MIT
Added
2026-08-23
Maintenance
active
Install kind
github

No manifest check is available; listing does not imply compatibility or security review.

安装

dsh plugin --profile web add github:moduqishi/dsh-open-in-finder

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: zh · Read Chinese README

Table of contents
  1. 功能
  2. 安装
  3. 工作原理
  4. 许可证

DeepSeek Harness(dsh web)持久化插件:在聊天窗口顶部标题行添加一个文件夹小图标,一键在 macOS Finder 中打开当前会话的工作目录。

功能

  • 标题行小图标(SVG 文件夹,跟随主题色,悬停高亮),紧挨标题/agent 预设
  • 点击 → Host 调用 open <路径> 在 Finder 中打开当前会话的工作目录;成功时图标短暂变为 ✓
  • 悬停显示将打开的完整路径
  • 无工作区的会话自动隐藏图标
  • 仅 macOS(依赖系统 open 命令)

安装

  1. 把本目录链接进 dsh web profile 的模块目录:

    ln -sfn "$PWD" ~/.dsh/profiles/node_modules/@local/dsh-open-in-finder
    
  2. 在 ~/.dsh/profiles/web/cordis.patch.yml 追加:

    - insert:
        - id: open-in-finder
          name: '@local/dsh-open-in-finder'
    
  3. 重启 dsh web(客户端模块扫描需重启生效)。

工作原理

  • 双端结构:lib/index.js 是 Host 插件(注册 webServer 路由 POST /fin/api/open,通过 subprocess 执行 open <path>);lib/client.js 是浏览器 bundle(window.__ModuleLoader__.load(...)),通过 useWorkspaces 找到包含当前会话的工作区并取其 path。
  • RPC:Client 同源 fetch 调用 /fin/api/open。

许可证

MIT — see LICENSE