DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Sandbox Escalation Prompt — DSH Plugin for DeepSeek Harness
← Plugins
S

dsh-sandbox-escalation-prompt

Sandbox Escalation Prompt

DSH plugin: Injects sandbox_permissions escalation discipline into the system prompt (request escalation only when the current sandbox mode is genuinely insufficient and higher permissions are required; do not request equivalent permissions; justification should appear only with a genuine escalation

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:zhanxin-xu/dsh-sandbox-escalation-prompt#aab968d5a7757a7b81f8b82bc81a7c55ea741ab2
READMECompatibilityVersions

Description

DSH plugin: Injects sandbox_permissions escalation discipline into the system prompt (request escalation only when the current sandbox mode is genuinely insufficient and higher permissions are required; do not request equivalent permissions; justification should appear only with a genuine escalation).

Compatibility and provenance

Sandbox Escalation Prompt is published as dsh-sandbox-escalation-prompt and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
9/16/2026

Versions

0.1.0stable
9/16/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/16/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in security-access.

Doctor@linxin666/dsh-doctorTransactional rescue mode for DSH profiles with a supervised launcher, isolated recovery capsule, deterministic repairs, health monitoring, and a local Web recovery consolePocketdsh-pocketPut DeepSeek Harness in your pocket: one package, one settings page, and scan a QR code on your phone to access DSH on your computer in sync (LAN + public network, real-time screen mirroring).DSCODE@toddzheng024/dscode-bundleA complete DeepSeek coding agent with persistent shell, Ultra collaboration and automatic permission review.Auto Reviewdsh-auto-reviewSecond-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent decides allow/deny on the approval answerer chain, with fail-closed fallback and full session-log audit.

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