DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Multi Root — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@luoyu_xingu/dsh-multi-root

Multi Root

适用于 dsh Web GUI 的多根工作区插件:将多个独立文件夹附加到一个项目工作区,在侧边栏面板中进行管理,并让智能体通过受控的主机端工具读取、列出、写入和使用 glob 遍历每个已注册的根目录。热插拔

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @luoyu_xingu/dsh-multi-root@0.1.1
README兼容性版本

兼容性与来源证明

Multi Root 以 @luoyu_xingu/dsh-multi-root 发布,当前版本为 0.1.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.1.1stable
2026/8/16
0.1.0stable
2026/8/16

相关插件

正在加载相关插件…

最新版
0.1.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
320.1 kB
文件数
57
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 1
周下载
90
最近提交
2026/8/16
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 productivity-workflow 分类下经过校验的插件。

Acp App@deepseek-ai/dsh-acp-appdsh ACP 配置文件包:基于 dsh-base 的仅限自动化的 JSON-RPC stdio 和进程生命周期管理Client Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / git-graph / pet / remote-web-ui / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Agent Teams@nanmicoder/dsh-agent-teamsAgentTeams for DeepSeek Harness:通过自然语言驱动多智能体团队协作(队长、成员、具有依赖关系的任务、消息传递),并在 Web GUI 中提供树状监视器

README

dsh-multi-root

Multi-root workspace plugin for the DeepSeek Harness web GUI: attach several independent folders to DSH, manage them from a sidebar panel, and let agents list / read / write / glob across every registered root through gated host-side tools — a VS Code-style multi-root workspace for DSH.

All roots are equal: there is no primary-workspace distinction, and the set is shared by every session and agent.

Hot-pluggable via a cordis profile bundle: no DSH source changes.

Features

  • Sidebar entry Roots (多根) toggling a management panel in the center column.

  • Attach any number of folders (path input or a host directory browser that starts at the drive level on Windows — pick C:, D:, ... then drill down — and at the home directory on Linux/macOS, where Up reaches the filesystem root), with optional display aliases.

  • Rename, remove, and reorder roots; each row shows live directory status (available / directory missing).

  • Roots persist in ~/.dsh/dsh-multi-root.json (directory 0700, file 0600, atomic write) — GUI and agents share the same store.

  • Agent tools registered into the DSH tool pipeline:

    ToolPurpose
    workspace_rootsList all attached roots (id, name, path, status).
    workspace_root_listList one directory inside a root.
    workspace_root_readRead a text file inside a root (256 KB cap, truncation reported).
    workspace_root_writeWrite (create or overwrite) a text file inside a root; parent directories are created.
    workspace_root_globGlob-match files/directories inside a root (result-capped).
  • A system-prompt section announces the plugin and its tools to every agent (disable via announceToAgent: false; master switch enabled).

  • Bilingual UI copy (zh / en), following the document language.

Install & Launch

The plugin is a cordis bundle package activated in the web profile. Pick one way to get it, then launch the GUI as described below.

From npm (published release — any platform, recommended)

# 1. install the plugin into the web profile (pnpm semantics under the hood)
dsh plugin --profile web add @luoyu_xingu/dsh-multi-root

# 2. launch the web GUI (Ctrl+C stops it; --port overrides the default)
dsh web

Open the URL printed by dsh web (default http://127.0.0.1:3080). The Roots (多根) entry appears in the sidebar — click it to attach folders. Verify the install with dsh plugin --profile web ls @luoyu_xingu/dsh-multi-root.

Upgrade later:

dsh plugin --profile web update @luoyu_xingu/dsh-multi-root
dsh web   # restart

Remove:

dsh plugin --profile web remove @luoyu_xingu/dsh-multi-root

From source (clone this repository)

git clone https://github.com/luoyu-xingu/dsh-multi-root.git
cd dsh-multi-root
pnpm install
pnpm build        # typechecks, then emits lib/ (node half + client bundle)

# install the local checkout into the web profile; file: installs a
# self-contained copy (no junction, no absolute path kept in node_modules)
dsh plugin --profile web add file:<absolute path to the checkout>
#   Windows example: dsh plugin --profile web add file:E:/dsh_plugins/dsh-multi-root

dsh web

Rebuilding after code changes — build, sync the fresh lib/ into the profile's self-contained copy, and restart:

pnpm build
# PowerShell:
Copy-Item lib\* $env:USERPROFILE\.dsh\profiles\web\node_modules\@luoyu_xingu\dsh-multi-root\lib\ -Recurse -Force
# bash:
cp -r lib/* ~/.dsh/profiles/web/node_modules/@luoyu_xingu/dsh-multi-root/lib/
dsh web   # restart

Restart dsh web after install or after every rebuild — the web profile disables the cordis HMR service, so file changes are not hot-loaded; the host also validates the bundle revision against the startup file hash, and a stale process answers old revisions with 404 (bundle script ... failed to load).

Usage

  1. Click the sidebar Roots entry.
  2. Attach folders with the path input or the Browse dialog (drive level first on Windows); optionally give each one an alias.
  3. Ask the agent to work across folders — it will use workspace_roots to discover the roots and the other workspace_root_* tools to operate inside them.

Security model

This plugin deliberately bypasses the DSH file sandbox: its operations run with the host process permissions. The trust boundary is therefore the root set itself, and it is enforced on every operation:

  • Roots are only the directories the user attached in the GUI; agents can never attach or remove roots.
  • Every path is joined root-relative, canonicalized with fs.realpath, and required to live inside the registered root. Path traversal (.., absolute paths, drive letters) and symlinked escapes are rejected on read and on write (the resolved parent directory is verified too).
  • Globbing never follows symbolic links; read/write gates re-verify any path a match is later used for.
  • Reads are capped at 256 KB, writes at 5 MB, listings at 500 entries, and glob results at 1000 matches — outputs stay bounded for the model.
  • All /api/dsh-multi-root/* routes are loopback-only with browser same-origin markers, so LAN-exposed deployments cannot serve them.
  • The store file holds no secrets, but is written 0600 atomically anyway.

Known limits: the tools run with the host user's permissions and consume real disk — confirm with the user before overwriting an existing file. The directory browser lists host directories (loopback-only by design, it is the picker feed).

Configuration

The host plugin accepts a schemastery-validated config (composition entry):

multi-root:
  enabled: true          # master switch for routes, tools, prompt section
  announceToAgent: true  # system-prompt section announcing the plugin
  hotReload: true        # host half watches its own lib/ and re-mounts on rebuild

Development

pnpm install
pnpm typecheck   # tsc -b (host/client programs) + test program
pnpm test        # vitest run (store / fs-ops / tools / client smoke)
pnpm build       # declaration emit + tsdown (lib/ node half + lib/client.js)

Layout: src/index.ts is the host half (store, routes, tools, prompt section), src/client/ the browser half (sidebar entry, panel), and src/core/ the shared types. The client bundle is a closure-factory artifact for the GUI's __ModuleLoader__ with a build-time purity gate (only the platform seed modules may stay external).

License

MIT