AngelosZou/dsh-multi-folder ↗★ 0
dsh-multi-folder
DeepSeek Harness plugin: secondary working directories for a project. The agent keeps the primary workspace as cwd, gains equal write/exec permissions on configured secondary directories under workspace-write mode, and is notified of configuration changes at the next message boundary.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:AngelosZou/dsh-multi-folder说明文档
阅读完整 README ↗dsh-multi-folder
English | 中文
为 DeepSeek Harness 项目提供副工作目录——不离开主工作区,同时编辑源码库、测试库与文档库。
一个 DeepSeek Harness 插件 bundle,为一个 Project(工作区)提供一组副工作目录:
- Agent 的核心
cwd等属性始终指向主工作目录; - 在 Workspace Write 模式下,Agent 对配置的副工作目录拥有与主工作目录同等的读取、写入、编辑与命令执行权限——实现方式是重定向会话自身的沙箱策略根,因此每种模式语义都自然保持(
read-only依旧拒绝、workspace-write放行、danger-full-access放行); - 目录列表注入系统提示词,每次组装按会话求值;
- 配置变更通过不打断的消息队列通知 Agent——在下一次消息边界(用户发送或工具调用结束)送达,且仅在目录集合实际变化时发送;
- 不新增任何工具:改动全部位于框架级(工具流水线拦截)与 UI 级(会话级头部入口)。
环境要求
- Node.js >= 20
- 由
@deepseek-ai/dsh-base+@deepseek-ai/dsh-web-app组成的 DSH profile(或提供fs、sandboxPolicy、systemPrompt、commands、shell、shellEnv及标准 Web 客户端模块的等价组合)。
安装
将本仓库链接进 DSH profile:
dsh plugin --profile web add dsh-multi-folder
然后重启 DSH 后端(宿主组合在进程启动时装载)并刷新浏览器页面(客户端 bundle 以 no-cache 提供)。
使用
会话头部出现「多工作目录」按钮,打开面板即可:
| 操作 | 行为 |
|---|---|
| 添加目录 | 打开原生目录选择器 |
| 移除 / 刷新 | 立即生效 |
| 切换会话 | 面板自动切换为该会话的副工作目录 |