Hanihahaha/dsh-sandbox-argument-normalizer0

dsh-sandbox-argument-normalizer

Normalize invalid non-widening sandbox escalation arguments before DSH tool dispatch.

AI 분석

核心用途是拦截并修复模型或网关在调用工具时带入的无效沙箱提权参数,防止因参数冗余导致 DSH 报错拒绝执行。适合遇到沙箱提权报错、使用第三方兼容网关的用户。

패키지
dsh-sandbox-argument-normalizer
버전
0.1.0
최근 업데이트
2026. 8. 17.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Hanihahaha/dsh-sandbox-argument-normalizer

dsh-sandbox-argument-normalizer

中文

A DeepSeek Harness host plugin that removes invalid sandbox_permissions and justification arguments before native tool dispatch.

Problem Solved

Some models or OpenAI-compatible gateways include every advertised optional argument in ordinary pwsh, write, or edit calls. When the injected sandbox_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-write session + sandbox_permissions: workspace-write: removed.
  • danger-full-access session + either advertised mode: removed.
  • read-only session + 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.