KunIsMe/dsh-filescope
FileScope · 文件视界 — DeepSeek Harness 工作区文件浏览器插件(右侧抽屉 + 实时预览)
Project Overview项目介绍
KunIsMe/dsh-filescope is a DSH-native plugin called FileScope that adds a slide-out drawer file explorer to the DeepSeek Harness web interface. It loads the full directory tree of your current working directory, supports unlimited expand and collapse of nested folders, and offers real-time file previews directly in the drawer. There are three installation methods available to users: installing from npm via the dsh CLI command, installing from a local directory path, or manually adding the plugin to your DSH profile’s package.json. After installation completes, you will need to restart your DSH web process and refresh your browser page to load the plugin.
After loading, you can open the FileScope drawer through two entry points: the button at the bottom of the sidebar or the button in the top operation bar of the current session. When you switch between different DSH sessions, the directory tree automatically switches to match the working directory of the active session. You can also manually select a different working directory from the dropdown menu or enter an absolute file path directly to navigate to any location on your machine. All file browsing and preview operations are read-only, so you never have to worry about accidentally modifying your local files.
The plugin has a few hard limits to keep performance stable: you can expand a maximum of 3000 nodes when recursively expanding all folders, and text previews will only show the first 2000 lines of a text file. If you enable auto-refresh, the plugin checks for changes to open files every 2 seconds and refreshes open directories every 5 seconds. It requires an existing DSH installation with a web profile that has the dsh-web-app package mounted, and it is released under the open-source MIT license, free for any use.
KunIsMe/dsh-filescope 是一款专为 DeepSeek Harness (DSH) 开发的原生插件,名称为 FileScope 文件视界,它在 DSH 的 Web 界面右侧添加了一个可拖拽调整尺寸的抽屉式文件浏览器,支持读取当前工作区的完整目录树,提供无限层级展开折叠、文件实时预览等核心功能。用户可通过 npm 命令行、本地目录或手动修改 profile 配置三种方式完成安装。
安装完成后重启 DSH 进程,刷新浏览器页面即可使用。用户可通过侧边栏底部或会话顶部操作栏的按钮打开抽屉,切换会话时目录树会自动跟随对应会话的工作区,也支持手动下拉选择工作区或输入绝对路径访问。所有操作都是只读的,不会修改本地任何文件,适合需要在 DSH Web 界面内快速浏览工作区文件的用户。
该插件要求你已安装 DSH 并配置了挂载 dsh-web-app 的 Web profile,目录全部展开上限为 3000 个节点,文本预览最多显示前 2000 行,开启实时刷新后会每 2 秒检测文件变化、每 5 秒刷新目录。插件采用 MIT 许可开源,免费供个人和商业使用,不收取任何费用。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-filescope(KunIsMe/dsh-filescope)
仓库:https://github.com/KunIsMe/dsh-filescope
本站详情页:https://www.yhbd.top/plugins/kunisme-dsh-filescope/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 4 · 最近提交 2026-08-16 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
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 dsh-filescope
把 KunIsMe/dsh-filescope 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
FileScope · 文件视界
把当前工作区的完整目录树搬进 DeepSeek Harness Web 页面的右侧抽屉:任意层级展开、 点击文件实时预览、切换会话自动跟随对应工作区、抽屉宽度与目录树高度均可拖拽调整。 只读浏览,不修改任何文件。
🔖 关联 topic:
dsh-plugin·deepseek-harness·file-explorer·workspace
功能
- 📁 抽屉式文件浏览器:右侧全高抽屉滑入滑出,三个入口(侧边栏底部 / 会话顶部操作栏 / 遮罩点击收起)
- 🔗 会话跟随:切换会话自动把目录树切到该会话所属工作区(读取当前会话 cwd 匹配已注册工作区),手动浏览不受干扰
- 🌲 完整目录层级:无限层级展开/折叠,「全部展开」递归加载所有子孙层级(上限 3000 节点)、目录优先排序、文件大小标注、「隐藏点文件」开关
- ⚡ 实时渲染:文本带行号(前 2000 行)、二进制文件 hex 摘要、超大文件提示
- 🔄 实时刷新:当前打开文件每 2s 检测版本变化自动重读;已展开目录每 5s 刷新
- ↔️ 拖拽调整:抽屉左边缘竖条调宽度(320px–85vw),目录树与预览区之间横条调高度
- 🖥️ 路径自由:工作区下拉选择 + 绝对路径输入回车
- 🔒 只读安全:GET-only JSON API,不提供任何写操作
安装
方式一:从 npm 安装(推荐)
dsh plugin --profile web add dsh-filescope
dsh plugin 会自动安装依赖并把包名登记进该 profile 的 dsh.profile.bundles。
方式二:从本地目录安装
dsh plugin --profile web add file:/绝对路径/dsh-filescope-plugin
方式三:手动接入 profile
进入 profile 目录:
cd $DSH_HOME/profiles/web(没有则先运行一次dsh --profile web触发初始化);在 profile 的
package.json中:{ "dependencies": { "dsh-filescope": "0.1.2" }, "dsh": { "profile": { "bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-filescope"] } } }在 profile 目录执行
pnpm install。
重启生效
# 停掉当前 dsh web 进程后重新启动
dsh --profile web
Host 组合在进程启动时加载,新行需要重启才会挂载;重启后刷新浏览器页面
(Cmd+Shift+R)即可看到入口。
使用
- 侧边栏底部 / 会话顶部操作栏的「📁 文件视界」按钮打开抽屉;
- 切换会话时目录树自动跟随该会话所属工作区;
- 顶部下拉选择工作区,或输入任意绝对路径回车;
- 「全部展开」递归加载所有层级(上限 3000 节点);「隐藏点文件」过滤
.开头条目; - 点击文件实时预览(文本带行号 / 二进制 hex 摘要 / 超大文件提示);
- 「实时刷新」开启时每 2s 检测当前文件变化、每 5s 刷新已展开目录;
- 拖拽抽屉左边缘调宽度,拖拽目录树与预览区之间的分隔条调高度。
环境要求
- dsh 版本与本包构建时的源码树一致(浏览器端依赖 shell 模块表中的
react、ui-slots等平台模块,与 Host 的webServer行); - Web profile 已挂载
dsh-web-app层(@deepseek-ai/dsh-web-app)。
接口(只读 JSON API)
| Endpoint | 返回 |
|---|---|
GET /filescope/workspaces |
{ workspaces: [{ id, title, path, status }] } |
GET /filescope/dir?path=<abs> |
{ entries: [{ name, type, path, size? }] } |
GET /filescope/stat?path=<abs> |
{ exists, type, version, size? } |
GET /filescope/file?path=<abs> |
{ kind: text|binary|too-large, content?, size, version, hex? } |
目录结构
dsh-filescope-plugin/
├── package.json # 包清单(dsh.bundle 补丁 + dsh.client 浏览器声明)
├── cordis.patch.yml # 组合补丁:把 filescope 宿主行插入 profile
├── docs/
│ ├── screenshot.png # 效果图
│ └── preview.html # 效果图源文件
├── lib/
│ ├── index.js # Host 半(/filescope 只读 API,零运行时依赖)
│ ├── client.js # 浏览器半(抽屉 UI,预构建 bundle)
│ └── types/ # TypeScript 声明(供接入方类型检查)
├── src/ # 源码(参考/二次开发用)
├── LICENSE
└── README.md
许可
MIT © 2025 zhangkun
Tencent/BrowserSkill
YaoApp/yao
anbeime/skill
Jesseovo/last30days-skill-cn
bowenliang123/dsh-context
platonai/Browser4
liustack/modsearch