dsh-multi-workspace
Manifest validMulti-workspace sandbox: grants file-write access to every registered workspace automatically — add a workspace, write to it immediately, no config or escalation needed.
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
Limitations
- Shell commands stay confined to the session workspace. The multi-workspace
widening applies to the fs tools only (layer 2 re-issues each denied write
with the target workspace's root). The command sandbox seam
(
@deepseek-ai/dsh-sandbox-local, windows-acl / bwrap / seatbelt) reads only the singlepolicy.workspaceRoot, sopwsh/ bash writes outside the session workspace are still denied. - The fs fallback silently retries under
workspace-writewithout going through the approval flow. That is the plugin's intended "write immediately" behavior — make sure the registered workspaces are trusted. - The wrapped
resolve()must return a plain object (ownmode/workspaceRoot/sessionId): executors spread the policy ({ ...policy }), and a prototype-based copy silently drops those keys, making the windows-acl runner fail with--workspace undefined(SANDBOX_UNAVAILABLE).test/smoke.mjsguards this regression.
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
Comments
Loading…
Similar plugins
by yzxxy010
Adds a workspace-write++ permission that keeps file tools inside the workspace while skipping the Windows process sandbox for wildcard-allowlisted executables such as Git Bash.
★ 7
MIT
JavaScript
Sep 7, 2026
dsh plugin --profile web add dsh-workspace-write-plusMulti-workspace manager: bind a docs anchor plus ordered code-project repositories into one session, injecting their absolute paths, a recursive file index, a server/client endpoint index and optional
★ 1
NOASSERTION
TypeScript
dsh plugin --profile web add dsh-workspace-combinerby cherrchen
多文件夹 workspace:让 DSH(DeepSeek Harness)的 Agent 不只能读写主目录,还能同时读写你添加的其他文件夹。Multi-folder workspace for DeepSeek Harness: let the agent read and write several folders at once, not just the primary one.
★ 14
↓ 263/wk
MIT
TypeScript
Oct 28, 2026
dsh plugin --profile web add @dsh-electron/dsh-plugin-multi-root-workspaceby lovezi0
Windows workspace pre-authorization: adds an explicit full-control DACL ACE (including WRITE_OWNER, required by dsh >=0.1.7 sandbox startup) to user-declared workspace directories, removing the repeat
★ 9
MIT
JavaScript
Oct 17, 2026
dsh plugin --profile web add dsh-workspace-acl-allowby wangzhaonan16
Approval-free writes into whitelisted directories — wraps the filesystem fence for write/edit tools and auto-answers bash sandbox escalations that touch whitelisted paths, with a settings GUI.
★ 0
MIT
JavaScript
Sep 2, 2026
dsh plugin --profile web add dsh-fs-allowlistApproval-free writes into whitelisted directories — wraps the filesystem fence for write/edit tools and auto-answers bash sandbox escalations that touch whitelisted paths, with a settings GUI.
★ 0
dsh plugin --profile web add dsh-fs-allowlist