DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-sandbox-permission-guard

J

dsh-sandbox-permission-guard

Discovered

DSH Cordis plugin that prevents redundant sandbox escalation failures

dsh-sandbox-permission-guard

用于 DeepSeek Harness (DSH) 的 Cordis 插件。

当当前会话已经拥有足够的 sandbox 权限时,它会:

  • 从模型可见的 bash 和 write Schema 中隐藏无用的 sandbox_permissions 和 justification;
  • 在原始 Bash 或文件写入权限验证前删除已经满足的遗留权限申请;
  • 继续实际执行命令或文件写入,而不是只改写失败消息;
  • 保留真正需要更高权限时的原始审批流程。

解决的问题

会话已经是 danger-full-access 时,重复提交同级权限原本会导致:

Error: sandbox escalation to "danger-full-access" is not strictly wider than this call's current "danger-full-access" mode

本插件在 Agent 的实际工具作用域中覆盖 bash 和 write。正常调用不再看到权限参数;遗留调用即使携带冗余参数,也会清理后实际执行。write 的 diff 卡片展示钩子会完整保留。

安装

DSH 在线安装器使用:

https://github.com/JachinShen/dsh-sandbox-permission-guard

或安装 Git 依赖:

pnpm add github:JachinShen/dsh-sandbox-permission-guard

在 Host Cordis composition 中加入:

- id: sandbox-permission-guard
  name: dsh-sandbox-permission-guard

插件依赖 Host 的 agents 服务,并为当前及以后创建的 Agent 安装作用域内的 Bash 与 Write guard。

仅当当前权限等级已经大于或等于请求等级时删除冗余请求;真正的升级仍交给 DSH 原审批逻辑。

行为矩阵

当前权限请求权限行为
danger-full-access无正常执行
danger-full-accessdanger-full-access删除冗余参数并执行
danger-full-accessworkspace-write删除已满足的参数并执行
workspace-writeworkspace-write删除冗余参数并执行
workspace-writedanger-full-access保留请求并走正常审批

以上判断同时适用于 bash 与 write。

测试

npm test

初始版本针对 DSH 0.1.0-rc.6 开发并验证。0.2.0 起同时覆盖 write。

License

MIT

Comments

Loading…

Similar plugins

dsh-same-mode-sandbox-noop

by zhangzujian

DSH compatibility plugin for redundant same-mode sandbox escalation requests

Manifest valid

★ 3

MIT

JavaScript

Aug 14, 2026

dsh plugin --profile web add @zhangzujian/dsh-same-mode-sandbox-noop

Session-aware sandbox escalation compatibility plugin for DeepSeek Harness

Security & AuditTools & CapabilitiesSessions & MessagesManifest valid

★ 23

↓ 228/wk

MIT

TypeScript

Aug 23, 2026

dsh plugin --profile agent add dsh-sandbox-escalation-fix

by HakureiMonika

Session-aware sandbox escalation compatibility plugin for DeepSeek Harness/DSH第三方模型会话沙箱升级兼容插件

Security & AuditTools & CapabilitiesSessions & MessagesManifest valid

★ 56

↓ 626/wk

MIT

TypeScript

Sep 19, 2026

dsh plugin --profile web add dsh-sandbox-escalation-fix

by Sparrived

DSH Cordis plugin: skill-create authoring guide + workspace-level skill isolation for .dsh/skills

Manifest valid

★ 0

MIT

JavaScript

Aug 22, 2026

dsh plugin --profile web add dsh-plugin-workspace-skill

by timeance

DeepSeek Harness plugin for rule-gated automatic sandbox approval with optional LLM review, one-time grants, fixed high-risk checks, and native human fallback.

Models & ProvidersTools & CapabilitiesManifest valid

★ 18

↓ 133/wk

MIT

TypeScript

Sep 12, 2026

dsh plugin --profile web add dsh-approve-for-me

by hinayoung23

Offline Cordis/DSH plugin standards, scaffolding, static checks, runtime debugging, and performance gates.

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 2

↓ 198/wk

MIT

JavaScript

Sep 5, 2026

dsh plugin --profile web add dsh-cordis-plugin-kit