somnusovis/dsh-multi-workspace
多工作区沙箱:自动赋予所有已注册工作区的文件写入权限——添加工作区后即可直接写入,无需配置或提权。
已收录
0
Tools
Bundle 已验证
功能介绍
多工作区沙箱:自动赋予所有已注册工作区的文件写入权限——添加工作区后即可直接写入,无需配置或提权。
适合
- 需要在多个已注册工作区中直接写入文件的 DSH 用户。
- 经常新增或切换工作区,并希望权限自动跟随实时工作区注册表的工作流。
- 编辑会话工作目录之外的文件时,原本需要反复申请沙箱提权的智能体工作流。
不适合
- 默认会话目录已足够使用的单工作区环境。
- 不希望所有已注册工作区自动成为可写根目录的环境。
- DeepSeek Harness 之外的工作流,因为该插件扩展的是 DSH 的沙箱策略和文件工具。
README
dsh-multi-workspace
Multi-workspace sandbox for DeepSeek Harness (DSH).
Automatically grants file-write access to ALL registered workspaces — add a workspace in the UI, write to it immediately, no config needed.
Problem
By default, DSH file sandbox only allows writes to one workspace directory (the session cwd). Writing to other directories requires sandbox escalation.
Solution
This plugin reads the live workspace registry on every sandbox policy check and injects every registered workspace path as an additional writable root.
How it works
Two layers:
- Wraps sandboxPolicy.resolve() to attach workspace paths
- Wraps fs.writeText/editText with retry fallback on each workspace root
Installation
dsh plugin --profile web add github:somnusovis/dsh-multi-workspace
# Or from npm (once published)
dsh plugin --profile web add dsh-multi-workspace
Restart DSH web service and refresh browser.
License
MIT
常见问题常见问题
在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:somnusovis/dsh-multi-workspace。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。