插件目录 / Developer / dsh-same-mode-sandbox-noop
dsh-same-mode-sandbox-noop
已验证 · 实测可装 zhangzujian
功能简介
dsh-same-mode-sandbox-noop — DSH 插件(沙箱)
可用 — 实测通过,早期项目
dsh-same-mode-sandbox-noop — DSH 插件(沙箱) 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-same-mode-sandbox-noop
A removable compatibility plugin for DeepSeek Harness / DSH 0.1.0-rc.6.
That release rejects a tool call when sandbox_permissions names a mode that
is already covered by the call's effective sandbox mode:
Error: sandbox escalation to "danger-full-access" is not strictly wider than
this call's current "danger-full-access" mode
The plugin wraps both ctx.tools.execute() and the rc.6 Agent Loop scheduler's
preparation entry point before DSH snapshots and freezes tool arguments. Forbash, pwsh, write, and edit, it removes the pairedsandbox_permissions and justification fields when the requested mode is
equal to or narrower than the calling session's effective mode. The original
runtime then executes the call under its standing policy. For example, aworkspace-write request in a danger-full-access session is not an
escalation, so the redundant pair is removed.
Genuinely wider requests, unknown modes, malformed argument pairs, unrelated
tools, and calls without escalation fields pass to DSH unchanged. For a known
non-escalating request, an empty justification is removed with the redundant
permission fields before DSH validates it; for a genuinely wider request, the
same empty justification remains subject to DSH's original validation.
Disposal restores the original runtime methods.
This is an out-of-tree compatibility workaround. Prefer a DSH release that
handles non-escalating requests in the shared sandbox escalation layer when one
is available.
Install into a DSH profile
Until this package is published to npm, clone it and add the local directory:
git clone https://github.com/zhangzujian/dsh-same-mode-sandbox-noop.git
cd dsh-same-mode-sandbox-noop
npx @deepseek-ai/[email protected] plugin --profile web add "$PWD"
The package declares a DSH bundle, so dsh plugin adds its patch layer to the
profile automatically. Restart dsh web after installation.
To remove it:
npx @deepseek-ai/[email protected] plugin --profile web remove @zhangzujian/dsh-same-mode-sandbox-noop
For a one-off local overlay without profile installation, insert the plugin by
file URL in a patch loaded after the base bundle:
- insert:
- id: same-mode-sandbox-noop
name: file:///absolute/path/to/dsh-same-mode-sandbox-noop/index.mjs
Test
Unit tests require only Node.js:
npm test
Integration tests run against an installed DSH tree:
DSH_INSTALL_DIR=/path/to/npx/cache/package npm run test:integration
DSH_INSTALL_DIR is the directory containing node_modules/@deepseek-ai.
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-same-mode-sandbox-noop」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:zhangzujian/dsh-same-mode-sandbox-noop Headless(CLI)profile:
dsh plugin --profile headless add github:zhangzujian/dsh-same-mode-sandbox-noop 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。
使用场景
扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。
适合谁
想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。
二次开发建议
工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。