deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
DSH(DeepSeek Harness) 插件:一个 VS Code 风格的工作区文件浏览器,嵌入 DSH Web GUI 的右侧面板列。
. 开头的隐藏文件.md 默认渲染(标题/列表/代码块/表格/引用/链接),代码块内同样高亮,一键切换「预览 / 源码」--dsw-*),浅色/深色主题下均为原生观感本仓库是一个标准的 DSH 双面插件包(Host + Browser)。有两种使用方式:
在任何 DSH 会话里直接对 Agent 说:
读取 https://github.com/schhaohao/dsh-file-explorer 里的 dynamic/host.js 和 dynamic/client.js,用 cordis_define 定义成一个新插件(code.host / code.client 分别填两个文件的内容),然后 cordis_run 运行。
Agent 会完成定义和激活,你在 GUI 里批准一次即可使用。适合先试试效果。
把本包装进你的 DSH profile 组合:
# 1. 把包放到 profile 的 node_modules(~/.dsh 是默认 DSH_HOME)
cd ~/.dsh/profiles/node_modules
git clone https://github.com/schhaohao/dsh-file-explorer.git dsh-file-explorer
如果你装了 pnpm,也可以更规范地安装:把仓库 clone 到任意位置(如
~/.dsh/profiles/web/plugins/dsh-file-explorer), 在~/.dsh/profiles/web/package.json的dependencies里加"dsh-file-explorer": "file:plugins/dsh-file-explorer", 然后在~/.dsh/profiles/web下运行pnpm install。
# 2. 在 profile 的 patch 层注册插件行
# 编辑 ~/.dsh/profiles/web/cordis.patch.yml,加入:
- insert:
- id: dsh-file-explorer
name: dsh-file-explorer
# 3. 重启 dsh web 进程,打开 GUI 即生效
| 文件 | 运行位置 | 职责 |
|---|---|---|
lib/index.js |
DSH Node.js 进程 | 在 webServer 上注册 /dsh-file-explorer/api/* JSON 路由(root/list/read);用 ctx.sessions 定位会话工作区,realpath 围栏防越界 |
lib/client.js |
浏览器页面 | window.__ModuleLoader__ 格式 bundle;注册 details Slot(右侧面板)与 conversation.session.header.utilities Slot(开关按钮),fetch 调用 Host API |
dynamic/ |
— | 方式一使用的动态插件源码(cordis_define 的 code.host / code.client) |
包通过 package.json 的 dsh.client 声明被 DSH 的 client-modules 扫描发现,浏览器半由 /plugins/dsh-file-explorer/client.js 提供。
⚠️ 已知取舍:
details列同一时刻只能有一个占用者。插件运行期间,点击工具调用打开的详情列会显示文件浏览器而不是工具详情;移除插件行后恢复。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。