插件目录 / Developer / dsh-sandbox-argument-normalizer
dsh-sandbox-argument-normalizer
已验证 · 实测可装 Hanihahaha
功能简介
Developer 类别的 DeepSeek Harness 插件。
可用 — 实测通过,早期项目
Developer 类别的 DeepSeek Harness 插件。 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-sandbox-argument-normalizer
A DeepSeek Harness host plugin that removes invalid sandbox_permissions andjustification arguments before native tool dispatch.
Install
# Run from the repository root.
dsh plugin --profile web add ".\dsh-sandbox-argument-normalizer"
Restart dsh web after installation.
Problem Solved
Some models or OpenAI-compatible gateways include every advertised optional
argument in ordinary pwsh, write, or edit calls. When the injectedsandbox_permissions equals the session's current mode, or is narrower, DSH
correctly rejects the call before it runs with an error such as:
sandbox escalation to "workspace-write" is not strictly wider than this call's current "workspace-write" mode
The same failure occurs in a danger-full-access session when the model still
sends either advertised escalation mode. This is not a real sandbox denial;
the session already has sufficient access, but the invalid escalation fields
prevent the intended tool call from executing.
It only removes a request when it is not strictly wider than the calling
session's effective sandbox mode. Valid escalation requests remain unchanged
and continue through DSH's normal approval flow.
Examples:
workspace-writesession +sandbox_permissions: workspace-write: removed.danger-full-accesssession + either advertised mode: removed.read-onlysession +sandbox_permissions: workspace-write: preserved for
the regular approval flow.
The plugin hooks the tools/execute waterfall. It does not auto-approve
requests and does not alter session permission state.
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-sandbox-argument-normalizer」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:Hanihahaha/dsh-sandbox-argument-normalizer Headless(CLI)profile:
dsh plugin --profile headless add github:Hanihahaha/dsh-sandbox-argument-normalizer 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。