跳到正文

AngelosZou/dsh-multi-folder

30最近提交 2026年8月15日

dsh-multi-folder DSH 插件

dsh-multi-folder 是 DeepSeek Harness (DSH) 的插件,允许一个项目拥有多个次要工作目录。在 Workspace Write 模式下,agent 对配置的次要目录拥有与主工作区相同的读写/编辑/执行权限,通过重新绑定沙箱策略实现。目录列表会注入到系统提示中,配置变更通过非中断消息队列通知 agent。

如何安装 dsh-multi-folder DSH 插件

dsh plugin --profile web add dsh-multi-folder

复制不会执行命令。安装 dsh-multi-folder DSH 插件前请核对仓库和版本。

dsh-multi-folder DSH 插件数据来源

dsh-multi-folder DSH 插件快照日期:2026年8月16日

discovered

dsh-multi-folder DSH 插件能做什么

  • 支持每个工作区配置多个次要工作目录。
  • 在 Workspace Write 模式下自动重定向次要目录的沙箱策略。
  • 将目录列表注入系统提示,每次会话组装时重新渲染。
  • 通过非中断消息队列通知 agent 配置变更。
  • 可在会话开始前通过无会话远程 API 配置目录。
  • 不引入新工具,所有变更均为框架层面的拦截和 UI 修改。

dsh-multi-folder DSH 插件适合哪些场景

  • 在同一个 DSH 会话中并排编辑源代码仓库、测试仓库和文档仓库。
  • 在单个 DSH 项目中管理多个相关联的代码库(如前端、后端和配置)。
  • 让 agent 在不用离开主工作区的情况下,对配置的目录执行跨仓库操作(读、写、执行)。

dsh-multi-folder DSH 插件适合谁

  • 需要在 DSH 中同时处理多个互相关联仓库的开发者。
  • 使用 DSH 进行复杂项目开发、涉及不同组件代码库的团队。

dsh-multi-folder DSH 插件的限制

  • 需要 Node.js >= 20 以及由 @deepseek-ai/dsh-base + @deepseek-ai/dsh-web-app 组合的 DSH profile。
  • 安装插件后需要重启 DSH 后端并刷新浏览器页面才能生效。
  • Agent 无法自行授予目录,配置由用户管理(安全边界设计)。

dsh-multi-folder DSH 插件的仓库 README 摘录

以下文字摘自 dsh-multi-folder DSH 插件的上游仓库 AngelosZou/dsh-multi-folder 的 README,版权归原作者,仅作引用。

**English** | [中文](README.zh.md) > Secondary working directories for a DeepSeek Harness project — edit a source repo, a test repo, and a docs repo side by side without leaving the primary workspace. [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Node.js >= 20](https://img.shields.io/badge/Node.js-%3E%3D20-brightgreen)](https://nodejs.org/) [![npm version](https://img.shields.io/npm/v/dsh-multi-folder)](https://www.npmjs.com/package/dsh-multi-folder) [![GitHub issues](https://img.shields.io/github/issues/AngelosZou/dsh-multi-folder)](https://github.com/AngelosZou/dsh-multi-folder/issues) [![Awesome DSH Plugin](https://awesome-dsh-plugin.com/badge.svg)](https://awesome-dsh-plugin.com) A [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) plugin bundle that gives one project (workspace) a set of **secondary working directories**: - The agent's core `cwd` and every other core attribute keep pointing at the **primary workspace**. - Under **Workspace Write** mode the agent gains the **same read / write / edit / execute permissions** on the configured secondary directories as on the primary workspace — enforced by re-rooting the sessio

阅读完整 README仓库许可: MIT

dsh-multi-folder DSH 插件常见问题

如何安装 dsh-multi-folder?

在终端运行 `dsh plugin --profile web add dsh-multi-folder`。然后重启 DSH 后端(进程启动时加载组合)并刷新浏览器页面(客户端包以 no-cache 方式提供)。

如何向会话添加次要目录?

您可以使用会话头部的 Multi-folder 按钮面板,或者使用斜杠命令 `/multi-folder add "D:\path\to\repo"`。该面板也会出现在会话创建页面,供您在会话开始前配置。

Agent 能访问次要目录吗?

可以。在 Workspace Write 模式下,agent 对配置的次要目录拥有与主工作区相同的读写/编辑/执行权限。沙箱策略会自动重新绑定。只读模式仍会拒绝访问。

更改目录列表后需要重启 DSH 吗?

不需要,目录更改会立即生效,agent 会在下一个消息边界收到通知。只有首次安装插件后才需要重启后端和刷新浏览器。

使用此插件需要什么配置?

需要 Node.js >= 20 以及由 `@deepseek-ai/dsh-base` + `@deepseek-ai/dsh-web-app` 组成的 DSH profile。插件专为这些包设计。