DeepSHPlugins
dsh-multi-workspace 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-multi-workspace

工具與整合MIT

多工作區沙箱:自動賦予所有已註冊工作區的檔案寫入許可權——新增工作區後即可直接寫入,無需配置或提權。

2 Starssomnusovis 更新時間 2026-08-29
訪問 GitHub 倉庫
dsh-multi-workspace 專案預覽

專案介紹

中文

多工作區沙箱:自動賦予所有已註冊工作區的檔案寫入許可權——新增工作區後即可直接寫入,無需配置或提權。

English

Multi-workspace sandbox: grants file-write access to every registered workspace automatically — add a workspace, write to it immediately, no config or escalation needed.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
somnusovis
倉庫
somnusovis/dsh-multi-workspace
GitHub Stars
2
Forks
0
開發語言
未記錄
許可證
MIT
最近推送
2026-08-29
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

53/ 100
維護活躍
92
文件與實用資訊
67
生態關注度
14
安裝便捷訊號
75
專案宣告訊號
100

近 13 天仍在更新;關注度尚低(2)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add github:somnusovis/dsh-multi-workspace

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

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:

  1. Wraps sandboxPolicy.resolve() to attach workspace paths
  2. 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 single policy.workspaceRoot, so pwsh / bash writes outside the session workspace are still denied.

  • The fs fallback silently retries under workspace-write without 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 (own

mode / 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.mjs guards 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

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案