DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Sandbox Escalation Prompt — DeepSeek Harness 插件(DSH Plugin)
← Plugins
S

dsh-sandbox-escalation-prompt

Sandbox Escalation Prompt

DSH 插件:向系统提示词注入 sandbox_permissions 升级纪律(仅在当前沙箱模式确实不够、且需要更高权限时才请求升级;不得申请同级权限,justification 只随真实升级一起出现)。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:zhanxin-xu/dsh-sandbox-escalation-prompt#aab968d5a7757a7b81f8b82bc81a7c55ea741ab2
README兼容性版本

兼容性与来源证明

Sandbox Escalation Prompt 以 dsh-sandbox-escalation-prompt 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/9/16

版本

0.1.0stable
2026/9/16

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/16
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 security-access 分类下经过校验的插件。

Doctor@linxin666/dsh-doctorDSH 配置档案的事务性救援模式,配备受监督的启动器、隔离的恢复容器、确定性修复、健康监控以及本地 Web 恢复控制台Mobiledsh-mobileDeepSeek Harness 移动端适配与安全访问插件,支持局域网、远程连接、Android App 和手机浏览器。DSCODE@toddzheng024/dscode-bundle完整的 DeepSeek 编码代理,支持持久化 shell、Ultra 协作和自动权限审查。Auto Reviewdsh-auto-review针对 DeepSeek Harness 审批请求的第二模型 AI 自动审查:只读审查子代理在审批应答链上决定允许或拒绝,并采用故障关闭回退机制和完整的会话日志审计。

README

dsh-sandbox-escalation-prompt

仓库:https://github.com/zhanxin-xu/dsh-sandbox-escalation-prompt

往 DSH 的系统提示词里注入一条沙箱提权纪律(sandbox_permissions 的使用规则), 让 bash / fs / pwsh 等工具在提权请求上不再出现「当前模式本来就允许却仍然申请」 或「只给 justification 却不提权」这类偏差。

注入的文本(默认可通过 text 覆盖)

Only set sandbox_permissions when the current sandbox mode is insufficient and a strictly higher permission level is required.
If the current sandbox mode already permits the operation, omit sandbox_permissions entirely.
Never request the same permission level as the current sandbox mode.
Only include justification together with a real permission escalation.

它是什么 / 不是什么

  • 是一条静态的 system-prompt section,对所有 agent(含子代理、所有预设)生效;
  • 注册的是 section(提示词正文),不是 context(每轮动态运行时快照): dsh 自带 sandbox:policy / approval:policy 两个动态 context 会随会话模式变化 (例如 approval=never 时会说「不要请求提权」),本插件不与之冲突,也不复制它们; 静态注册还有个好处:文本不变则提示词前缀稳定,KV cache 不受影响;
  • 不使用 complete: true,因此不会顶掉别的人格、工具指引或运行时快照;
  • 不 import 任何包,只依赖 ctx.systemPrompt 服务,放在 ~/.dsh/plugins/ 下的裸目录即可加载。

配置(挂载行的 config)

字段默认说明
enabledtruefalse(或 'false'/'no'/0)时不注入任何 section,用于临时关闭
text上面四行原文注入文本;纯空白视为不注入
order9990section 排序位,越小越靠前
sectionNameuser:sandbox-escalation-policysection 名,必须全局唯一(重名会抛 duplicate 错误)

order 的常见选择:

order位置
700紧随 PLAN_POLICY(500) / TEAM_POLICY(600) 的策略带
1050紧随 TOOL_BASH(1000) / TOOL_PWSH(1010) 的 shell 工具带
9990(默认)末尾环境事实之前(STRUCTURED_OUTPUT(9900) 之后),作为收尾性纪律,遵循度最好

安装到 web profile(本机已按此配置)

# 1. 链接到 profile 的 node_modules
ln -s ../../../plugins/dsh-sandbox-escalation-prompt \
      ~/.dsh/profiles/web/node_modules/dsh-sandbox-escalation-prompt

# 2. profile package.json 的 dependencies 里登记(让 pnpm install 不再丢掉链接)
#    "dsh-sandbox-escalation-prompt": "link:../../plugins/dsh-sandbox-escalation-prompt"

# 3. ~/.dsh/profiles/web/cordis.patch.yml 里挂载
- insert:
    - id: sandbox-escalation-prompt
      name: dsh-sandbox-escalation-prompt
      config:
        enabled: true

web profile 的 patchReload 是 live:改完 cordis.patch.yml 无需重启 dsh web, Host 会热应用补丁;首次在 node_modules 里放链接建议先做,改动补丁文件即可生效。 其它 profile(headless/acp 等)= startup,需要重启进程。

验证

cd ~/.dsh/plugins/dsh-sandbox-escalation-prompt
node scripts/smoke.mjs        # 假 ctx:注册/覆盖/开关分支
node scripts/integration.mjs  # 真 cordis + 真 dsh-system-prompt:装配后提示词确实含四行

热加载/重启后还可以这样确认运行中的 Host 真的注入了:读当前会话日志里最近一条 system/message 事件(就是渲染后的完整系统提示词):

zstd -dc ~/.dsh/sessions/--Users-user-.dsh--/session-*/session.v3.jsonl.zstd \
  | grep -c "Never request the same permission level as the current sandbox mode"

关闭与卸载

  • 临时关闭:把挂载行 config.enabled 改成 false(热加载立即生效);
  • 彻底移除:删掉 cordis.patch.yml 里的挂载行,再删 node_modules 链接与 package.json 里的依赖登记,最后删除本目录。

目录结构

dsh-sandbox-escalation-prompt/
├── package.json          # 声明 dsh.bundle.patch(供 dsh plugin add 安装时自挂载)
├── cordis.patch.yml      # 自挂载补丁;已手工挂载时用 !!js 守卫自动退让,避免重复挂载
├── lib/index.js          # 插件本体:注册 system-prompt section
├── scripts/smoke.mjs     # 离线单元 smoke 测试
├── scripts/integration.mjs # 真 cordis + 真 systemPrompt 集成测试
└── README.md