inmny/dsh-sandbox-escalation-fix ↗★ 2
dsh-plugin-sandbox-escalation-fix
Normalize non-widening sandbox requests and missing justifications in DeepSeek Harness tools
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:inmny/dsh-sandbox-escalation-fix说明文档
阅读完整 README ↗使用方法
插件安装到 profile 后,会在 Host 侧修复 bash、pwsh、write 和 edit 中多余或过时的提权参数。standard、code、cordis、minimal 以及自定义 preset 中可见的对应工具共用这一修复,不需要额外配置。
插件针对以下错误:
Error: sandbox escalation to "danger-full-access" is not strictly wider than
this call's current "danger-full-access" mode
同样覆盖当前已经是 danger-full-access,但模型仍附加 sandbox_permissions: "workspace-write" 的过时请求:

对于确实需要升级的请求,如果模型遗漏 justification,或只提供空字符串和空白字符,插件会自动填入 "Empty justification":

安装后,如果模型请求的权限不比 Session 当前权限更高,插件就忽略这个无效的提权请求,并使用当前 Session 权限正常执行工具。真正更宽的请求仍进入 DSH 审批流程;缺失或空白的理由会使用上述 fallback,合法的非空理由保持不变。read-only、未知 target 或非字符串 justification 等非法值仍由 DSH 拒绝。
插件只作为 bundle layer 安装到目标 profile,不修改 DSH 安装目录。