Jiao-XXX/dsh-auto-approve 预览 preview

Jiao-XXX/dsh-auto-approve

为DeepSeek Harness增加一个介于工作区写入与完全访问之间的自动批准权限预设,危险或不确定的操作仍转人工审批。

Project Overview项目介绍

This repository is a native plugin built exclusively for DeepSeek Harness (DSH) that adds a new auto permission preset to DSH’s approval system. When enabled, it inserts the auto tier between the existing workspace-write and danger-full-access tiers, leaving all original permission tiers intact. It works with all DSH front-end variants, including the official web UI, third-party TUI, and native desktop apps for Windows, macOS, and Linux. It follows the standard DSH plugin installation flow, so no extra steps are needed beyond the install command. To install the recommended tested version from npm, run the command dsh plugin --profile web add dsh-auto-approve in your local terminal.

When you enable the auto permission tier for your DSH session, the plugin follows a structured workflow to handle approval requests. First, it checks if the request matches any entry on a pre-built danger list of high-risk operations, and passes any matching requests directly to human approval. If no danger is found, it checks the session memory to see if the exact same request was already approved earlier in the same session. If the request is not in memory, it sends the request details to your configured classification model to get a verdict. Only an explicit approve verdict from the model will auto-approve the request; all other outcomes go to human review.

The plugin is released under the permissive MIT open source license, and has no third-party runtime dependencies of its own. It only requires @deepseek-ai/schemastery as a peer dependency, which is already provided by the DSH runtime environment, so you do not need to install any extra packages. It does not include any build or install scripts, so there is no extra setup step after cloning or installing the plugin. After installation, you just need to restart your DSH instance and select the auto tier from the permissions dropdown to start using it. If you want to test unreleased changes, you can also install it directly from the GitHub repository or a local checkout.

dsh-auto-approve 是专为 DeepSeek Harness 开发的原生权限插件,它在 DSH 原生的三个权限档位之外新增了 auto 自动审批档位。这个插件会在保持原有 workspace-write 沙箱边界不变的前提下,让分类模型自动批准例行的沙箱升级请求,只有命中危险规则、模型不确定或出现异常时,才会将审批交给人工处理。支持 DSH 的 Web、TUI 和桌面端所有前端形态,安装方式遵循 DSH 插件标准流程。

对于开启 auto 档位的会话,当收到审批请求后,插件会先检查请求内容是否命中内置危险清单,再查询会话内命令记忆,最后将请求交给配置好的分类模型做裁决。只有模型明确返回批准结果时,才会自动放行单次升级;其他情况都交给原有审批流程处理。内置危险清单覆盖了大部分高风险操作,如强制推送、破坏性命令、系统级修改等,这些操作永远会交给人工审批。

本插件遵循 MIT 开源许可协议,没有额外的运行时依赖,仅依赖 DSH 运行时提供的 peerDependency,不需要额外构建步骤即可使用。安装可以通过 npm、GitHub 仓库或者本地检出三种方式,推荐使用 npm 安装来获取经过完整测试的版本。首次使用只需要安装插件后重启 DSH,然后在权限下拉菜单中选择 auto 档位即可启用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 15 stars - an early-stage project星标 15,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-auto-approve

把 Jiao-XXX/dsh-auto-approve 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-auto-approve shield and lightning icon

dsh-auto-approve

比 Workspace Write 更省心,比 Full access 更安全 / More convenient than Workspace Write, safer than Full access

test status license: MIT Listed on DSH Directory

中文 | English

dsh-auto-approve 为 DeepSeek Harness 增加 Sandboxed Auto(档位 id sandboxed-auto)权限档。在该档位下,工作区沙箱保持不变,分类模型可以对例行的沙箱升级做一次性批准;命中确定性危险规则、模型拿不准、超时、响应格式错误或插件内部异常时,审批仍会交给正常的人工弹窗。

该 bundle 会把权限预设表重述为四个档位,顺序为 read-only、workspace-write、sandboxed-auto、danger-full-access——即在 dsh 原生三档中间插入本插件的档位,原有档位全部保留。不在 sandboxed-auto 档时,插件会原样放行所有审批请求给后续应答者。

从 0.6.x 升级? 0.7.0 起档位 id 由 auto 改为 sandboxed-auto:dsh 0.1.7 起 auto 被官方实验性的 Auto review 占用为保留名,继续使用会导致权限预设加载失败。请先阅读从 0.6.x 升级。

定位

Sandboxed Auto 是 workspace-write 之上的低打扰安全层:保留同一沙箱边界,把例行升级交给分类器;命中危险清单、分类器拿不准或分类失败时,才回到人工审批。

与关闭沙箱、自建审批通道的同类方案不同,本插件不放宽任何沙箱边界:分类器只决定是否放行一次升级,文件工具与其他非 shell 操作仍然受沙箱约束,审批记录也仍然落在 dsh 原生的会话审计事件里。

直观地说,它类似 Claude Code 的 auto mode 与 Codex 的 Auto-review mode:把例行审批交给安全评审,危险或拿不准时再交还人工。

权限档 沙箱范围 什么时候弹窗 适合场景
read-only 只读工作区,不能修改项目文件 需要写入、联网或执行其他越界操作时 代码审阅、探索和敏感仓库
workspace-write 可读写工作区;工作区外和受限能力仍被隔离 需要联网、写工作区外或进行其他沙箱升级时 常规开发;每次升级都由人确认
sandboxed-auto 与 workspace-write 相同 例行升级自动批;命中删库级危险清单、分类器拿不准或失败时才问人 长任务和依赖安装;减少打断且全程保留审计台账
danger-full-access 不受工作区沙箱限制,按宿主权限运行 不弹窗(approval: never) 仅限隔离、可丢弃且充分信任的环境

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh_plugin_swift_cycle 下一个 Next dsh-think-bounce-pet →