somnusovis/dsh-multi-workspace

插件Plugin 原生Native ⭐ 2 MIT

项目介绍Project Overview

dsh-multi-workspace 为 DSH 提供多工作区沙箱支持。它自动将注册的所有工作区路径设为可写根目录,无需额外配置。适用于需要跨多个工作区写入文件的场景。注意:该插件会授予所有已注册工作区的写权限,请谨慎管理工作区列表。

dsh-multi-workspace is a DSH plugin that enables multi-workspace sandboxing. It automatically grants file-write access to all registered workspaces by injecting their paths as writable roots on every policy check. Use it when your workflow requires writing across multiple workspace directories without manual sandbox escalation. Note: it grants write access to every registered workspace, so manage your workspace list carefully.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin --profile web add dsh-multi-workspace

somnusovis/dsh-multi-workspace 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

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

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

上一个 Prev dsh-plugins 下一个 Next dsh-receipt