dshbase

插件目录 / Developer / Dsh-FileExplorer

Dsh-FileExplorer

已验证 · 实测可装 bearllfleed

✓ 持续维护 2 位贡献者

查看 GitHub ↗ ← 返回插件目录

6Stars
0Forks
0未关闭 issue
JavaScript语言
2026-08-16最近推送
跨平台平台

功能简介

给 DeepSeek Harness (DSH) Web 界面加一个 VS Code 风格的工作区文件浏览器:右侧文件树 + 可编辑标签页 + Markdown 阅读/编辑/分屏 + 悬浮大纲 + Quick Open 搜索。

✅
我们的评价
可用 — 实测通过,早期项目

给 DeepSeek Harness (DSH) Web 界面加一个 VS Code 风格的工作区文件浏览器:右侧文件树 + 可编辑标签页 + Markdown 阅读/编辑/分屏 + 悬浮大纲 + Quick Open 搜索。 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-plugin-file-explorer

English | 中文

A VS Code-style workspace file explorer for the DeepSeek Harness (DSH) web UI: right-side file tree + editable tabs + Markdown read/edit/split + floating outline + Quick Open.

Features

  • File tree: right-side explorer with type-colored icons and collapsible folders; click a file to open it in the center area.
  • Right-click menu: right-click the file tree → New File / New Folder / Rename / Delete / Copy Path (like the VS Code explorer).
  • Drag-and-drop move: drag a file or folder onto a folder to move it (like VS Code); open tabs update their path automatically when a file is moved.
  • Import from your OS: paste files copied in Finder / Windows Explorer (⌘/Ctrl+V) or drag them in from the desktop — folders keep their structure and name clashes are auto-renamed.
  • Editable tabs: center tabs (after the conversation/trace tabs) with syntax highlighting, Tab indent, ⌘/Ctrl+S save, hover × close, and a right-click menu (Close / Close Others / Close to the Right / Close Saved / Close All / Copy Path / Pin).
  • Auto-save: configurable "Off / After delay / On focus lost"; a confirm dialog guards closing unsaved files.
  • Markdown: Typora/Obsidian-style "Read / Edit / Split" modes; a floating outline on the right in read mode that expands on hover (like ChatGPT's hover bar).
  • Quick Open: ⌘/Ctrl+P fuzzy file search and open (same as VS Code); also reachable via the magnifier button in the sidebar header.
  • i18n: switches between Chinese and English by following the DSH general setting.
  • Editor font: customize the editor font for opened files in the settings panel (monospace contexts).
  • Open chat files in-app: clicking a file in the chat (a produced-file chip, an inline path mention, or a tool card's file link) opens it in the explorer editor tab instead of the browser/Finder.

Screenshots

Explorer expanded

image-20260814192713396

Explorer collapsed

image-20260814192843856

File settings

image-20260814192911768

File search

image-20260814192939635

Open file

image-20260814191319335

Markdown outline

image-20260814193038550

Closing an unsaved file

image-20260814193108813

Installation

Requires DSH with an initialized web profile (auto-created on first dsh web).

dsh plugin is DSH's built-in plugin manager; it forwards the arguments to pnpm inside the profile directory. Always use it, not npm install -g — DSH loads plugins from $DSH_HOME/profiles/web/node_modules, and it never reads the global directory (Windows AppData\Roaming\npm), so a global install has no effect.

Prerequisite: dsh plugin shells out to pnpm, so install pnpm first (npm install -g pnpm), otherwise it fails with pnpm not found on PATH.

Option 1: install from npm

# install into the web profile (equivalent to running `pnpm add` in that profile)
dsh plugin --profile web add dsh-plugin-file-explorer

Option 2: install from GitHub (no npm publish required)

dsh plugin --profile web add github:bearllfleed/dsh-plugin-file-explorer

Update

dsh plugin --profile web update dsh-plugin-file-explorer

Uninstall

dsh plugin --profile web remove dsh-plugin-file-explorer

Check installed / latest version

# version actually loaded (looked up inside the profile)
dsh plugin --profile web list dsh-plugin-file-explorer
# latest on npm
npm view dsh-plugin-file-explorer version

Then enable the plugin

Installing only adds the package as a dependency; you must also register it in the profile's cordis.patch.yml so DSH loads it. Edit $DSH_HOME/profiles/web/cordis.patch.yml and add:

- insert:
    - id: file-explorer
      name: 'dsh-plugin-file-explorer'

id is a unique identifier in the config tree (customizable); name must be the npm package name.

Restart

dsh web
# then refresh http://127.0.0.1:3080

After install/update you must fully quit and restart the dsh web process (host routes are registered at startup) and hard-refresh the page with ⌘/Ctrl+Shift+R (the browser bundle is cached). A plain page refresh won't pick up new features.

New features don't show up after updating?

Check in order:

  1. DSH not fully restarted — host routes (new file / rename / delete) are registered at process startup; quit dsh web and start it again, not just refresh the page.
  2. Browser cache — the right-click menu and drag-and-drop live in the browser bundle; hard-refresh or use an incognito window.
  3. Wrong location / wrong version — dsh plugin --profile web list dsh-plugin-file-explorer shows the actually-loaded version; if it's an old one, it was likely installed with npm install -g into the global directory (which DSH ignores). Re-run dsh plugin --profile web add ... above.

Usage

Action Shortcut / entry
Toggle file tree file icon in the right activity bar
Open a file click in the tree; or ⌘/Ctrl+P then Enter
New / rename / delete right-click menu in the tree
Move a file / folder drag it onto the target folder
Save ⌘/Ctrl+S
Close a tab hover × on the tab, or right-click menu
Markdown mode "Read / Edit / Split" at the top of the file
Markdown outline hover the right floating bar in read mode
Editor font / auto-save gear button in the sidebar header

Layout

lib/index.js    host (Node) routes: list / read / raw / write / create / rename / delete / files
lib/client.js   browser bundle: tree, editor, Markdown, outline, Quick Open
package.json    plugin manifest (dsh.client.inject / platform)

Development

After editing lib/, if the plugin is installed via a file: link, sync to $DSH_HOME/profiles/web/node_modules/dsh-plugin-file-explorer/lib/; otherwise re-run dsh plugin add and restart.

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 Dsh-FileExplorer」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:bearllfleed/Dsh-FileExplorer

Headless(CLI)profile:

dsh plugin --profile headless add github:bearllfleed/Dsh-FileExplorer

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

使用场景

扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。

适合谁

想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。

二次开发建议

工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7797 个插件 →