DeepSeek Harness 插件

dsh-same-mode-sandbox-noop

DSH compatibility plugin that treats redundant non-escalating sandbox permission fields as a no-op(英文原文)

跳到安装方式

来源信息

GitHub 仓库
zhangzujian/dsh-same-mode-sandbox-noop
最近更新
2026年8月14日
分类
安全与权限
GitHub stars
4
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/zhangzujian/dsh-same-mode-sandbox-noop
插件名:dsh-same-mode-sandbox-noop
作者:zhangzujian

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

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. For bash, pwsh, write, and edit, it removes the paired sandbox_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, a workspace-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/dsh@0.1.0-rc.6 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/dsh@0.1.0-rc.6 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