DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Approval First — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
A

dsh-approval-first

Approval First

DeepSeek Harness 的审批优先编辑/写入:影子工具会在执行常规沙箱策略将拒绝的变更之前请求用户批准,因此模型无需使用 sandbox_permissions 重复工具调用。策略内写入保持静默,策略外目标会在首次调用时显示审批卡片。注册会实时遵循会话当前的常规模式;启动时的漂移触发器会在已发布的编辑/写入定义不再匹配冻结副本时拒绝激活。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:joao-paulo-santos/dsh-approval-first#77acb200378a9231dbbf82fc1c103aa24e2df3e0
README兼容性版本

兼容性与来源证明

Approval First 以 dsh-approval-first 发布,当前版本为 0.6.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

0.6.1stable
2026/8/30
0.6.0stable
2026/8/25
0.5.0stable
2026/8/25

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

README

dsh-approval-first

A DeepSeek Harness (DSH) plugin: install it into a profile alongside your own plugins.

[!WARNING] Interim shim, expect deprecation. This plugin works by shadowing the harness edit and write tools with frozen copies that add an approval step. When DSH grows native one-turn escalation this bundle becomes obsolete and should be removed. Until then a harness update can change the shipped tools underneath it, so the plugin ships with a drift tripwire that refuses to boot when the copies no longer match (see Deprecation and drift).

Approval prompts on the first call. Under a confining sandbox, a file mutation the policy denies fails first, then the model has to send the same call again with sandbox_permissions and justification before the user sees an approval prompt. This plugin shows the prompt on the first call instead. If you like to review generated code, the review object is the diff on the card, not model-written prose, and a rejection is a normal result (edit rejected by the user; file unchanged), never a red error.

Asking only happens where the standing policy would deny the write anyway. Inside the workspace nothing changes: writes stay silent, same as the shipped tools.

How to install

Requires a DeepSeek Harness checkout and a profile (here web):

git clone https://github.com/joao-paulo-santos/dsh-approval-first

# from the harness checkout
pnpm dsh plugin --profile web add /path/to/dsh-approval-first

# verify the profile still composes
pnpm dsh --profile web --dump-config

Then (re)start the harness; the host half loads at boot. No profile patch and no configuration: the plugin is active by itself in any session whose standing mode is not danger-full-access.

What happens when

standing modein-policy target (workspace, /tmp)out-of-policy target
read-onlynothing is writableasks first
workspace-writesilent, same as the shipped toolsasks first
danger-full-accesssilentsilent

Shadow tools are registered per agent and follow the session's current standing mode: switching the mode mid-session arms or disarms them on the next call, no restart needed.

Apart from the approval step the shadows mirror the shipped tools: same schemas, same validation and error texts, same diff cards and success phrasing. An approved write runs under a one-directory grant (the parent of the target), never danger-full-access.

Unobserved edit targets

Asking first has one exception. The shipped edit tool refuses a file the session has never read (edit requires reading "..." first) before any sandbox check runs, so asking approval for such an edit would spend a card on a call that is certain to fail the moment it is allowed. The plugin probes that same read-first gate and, when it would refuse, steps aside: the call runs the native path and the model gets the harness's own error in the same turn, with no prompt from anyone. The skip never denies anything; it only chooses who runs the check, so its errors cost a card, never a consent. write is not affected: creating a file the session considers new is real work and still asks.

Deprecation and drift

  • When DSH grows one-turn escalation natively, remove this bundle (dsh plugin --profile web remove dsh-approval-first). No files, no settings, no services to clean up.
  • Because the shadows are frozen copies, a harness update that changes edit/write would otherwise leave this plugin serving stale behavior with no error anywhere. The drift tripwire compares the copies against the live tool definitions at boot and refuses to activate on mismatch. driftMode: 'warn' downgrades that to a logged warning. Renames and removals upstream are caught too, so the plugin never serves tools that no longer exist.
  • maintenance.md holds the copied-from inventory (each frozen piece mapped to its upstream source file), the post-update ritual and a table of symptoms, causes and fixes.

Scope: edit and write only. Bash keeps the classic escalation path. If another plugin already shadows these tools for an agent, that agent is skipped.

Testing

Plain Node scripts, no build step. The fake context enforces the Cordis inject guard, so the suite can actually fail:

node test/plugin.test.mjs        # 74 checks
node test/diff-parity.test.mjs   # 31 cases, oracles against the harness's own diff package

Maintenance

After every harness update, run the ritual in maintenance.md: both suites, check the boot row (a failed approval-first row is the tripwire working), one manual smoke of each column in the behavior table.

相关插件

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

Doctor@linxin666/dsh-doctorDSH 配置档案的事务性救援模式,配备受监督的启动器、隔离的恢复容器、确定性修复、健康监控以及本地 Web 恢复控制台Pocketdsh-pocket把 DeepSeek Harness 装进你的口袋:一个包、一个设置页,手机扫码即同步访问电脑上的 DSH(局域网 + 公网,实时同屏)。DSCODE@toddzheng024/dscode-bundle完整的 DeepSeek 编码代理,支持持久化 shell、Ultra 协作和自动权限审查。Auto Reviewdsh-auto-review针对 DeepSeek Harness 审批请求的第二模型 AI 自动审查:只读审查子代理在审批应答链上决定允许或拒绝,并采用故障关闭回退机制和完整的会话日志审计。