NEVSTOP-LAB/dsh-approval-mode
DSH审批模式插件,在DSH窗口的权限下拉框(Read Only / Workspace Write / Full Access)旁添加一个“审批模式”按钮,在Workspace Write模式下工具调用自动放行。
Project Overview项目介绍
This is a purpose-built plugin exclusively for DeepSeek Harness (DSH). It adds a dedicated approval mode toggle button to the input toolbar, placed directly next to the existing permission dropdown menu that offers read-only, workspace write, and full access options. The button matches the visual style of DSH’s native permission controls, and any mode change you make takes effect immediately, with settings persisted across application restarts. To install it, you run a simple CLI command from your terminal, targeting either the web or desktop profile of your DSH installation. You can also lock the install to a specific commit hash for long-term stability.
The plugin offers two core modes to fit different use cases, and you can switch between them at any time during an active session. The default approval mode retains DSH’s original behavior, requiring you to manually approve every tool call before it executes. The bypass approval mode automatically approves all tool calls without any manual confirmation, while still keeping all file operations sandboxed to your current workspace directory. This makes it more secure than switching to full DSH access, while eliminating the need for repeated manual approval clicks during long, trusted workflow sessions.
The plugin requires DSH version 0.1.1-rc.2 or newer, and it has been fully tested on DSH 0.1.5-rc.2 and DSH Desktop 2.0.11. It does not work when your session is already set to full access, because DSH does not trigger approval requests in that permission level. You must only use bypass mode when you fully trust the current task, as it automatically approves all sensitive actions including file edits and external command runs. The plugin is released under the open source MIT license, with no restrictions on personal or commercial use or modification. You can adjust the default startup mode via the DSH plugin settings panel too.
这是一款专为 DeepSeek Harness 打造的原生审批模式插件,会在 DSH 输入框工具栏的权限下拉框(只读/工作区写入/完全访问)旁新增一个「审批模式」按钮,样式与原有权限控件保持一致。插件支持两种审批模式切换,切换后立即生效,设置会持久保存,重启 DSH 后仍会保留用户选择的状态,用户可在保持基础权限为工作区写入的前提下灵活调整工具调用审批行为。
默认审批模式下,插件完全保留 DSH 原有行为,所有工具调用都需要用户手动点击批准才能执行。开启绕过审批模式后,所有工具调用都会被自动批准,无需用户手动确认,同时文件操作仍受工作区沙箱限制,比直接切换到完全访问权限更安全也更方便。它适合需要连续处理大量工具调用、且完全信任当前会话任务的用户使用,可减少频繁点击批准的重复操作负担。
插件要求 DSH 版本不低于 0.1.1-rc.2,已在 0.1.5-rc.2 版本和 DSH 桌面版 2.0.11 验证兼容性,可通过 dsh CLI 命令从 GitHub 或本地下载的安装包安装,同时支持网页版和桌面版的配置流程。需要注意绕过审批模式会自动放行所有敏感操作,仅在完全信任当前任务时使用,且权限为完全访问时插件不生效。插件采用 MIT 许可开源,完全免费可供使用。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-approval-mode(NEVSTOP-LAB/dsh-approval-mode)
仓库:https://github.com/NEVSTOP-LAB/dsh-approval-mode
本站详情页:https://www.yhbd.top/plugins/nevstop-lab-dsh-approval-mode/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 7 · 最近提交 2026-09-29 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 7 stars - very few users, little community feedback星标只有 7,几乎没人在用,遇到问题缺少社区反馈
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 github:NEVSTOP-LAB/dsh-approval-mode
把 NEVSTOP-LAB/dsh-approval-mode 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
DSH-Approval-Mode
DSH 审批模式插件。在 DSH 窗口的权限下拉框(Read Only / Workspace Write / Full Access)旁边加一个「审批模式」按钮,权限可以保持 Workspace Write,审批模式选「绕过审批(提权除外)」——工具调用自动放行,但文件操作仍被沙箱限制在工作区内,比切到 Full Access 更安全、更方便。
[!IMPORTANT] 两种「绕过审批」都会自动批准工具调用,普通操作全程没有确认提示。
- 绕过审批(提权除外):普通工具调用自动放行;工作区外的写文件、命令提权仍会弹窗,由你决定是否放行这一次。
- 绕过审批:连提权也自动批准,沙箱边界一起放开(高风险)。
只在完全信任当前任务时使用,用完记得切回「默认审批」。 当会话权限为 Full Access 时,DSH 本身不会发起审批请求,此模式不生效。
功能
- 按钮在输入框工具栏、权限选择旁边,样式和权限控件一致
- 默认审批:和 DSH 原有行为一样,工具调用需要点击批准
- 绕过审批(提权除外):工具调用自动批准;工作区外写文件、执行命令所需的提权仍会弹窗,由你决定
- 绕过审批:所有工具调用自动批准,含提权,不弹任何提示(高风险)
- 切换立即生效,并按会话持久保存
- 绕过模式下按钮显示为橙色;提权除外用空心盾牌,全部绕过用闪电
- 权限为 Full Access 时,按钮置灰并显示「绕过审批」:DSH 不再发起审批请求,模式不可切换
- 切换模式会通知该会话的代理
- 「设置 → 插件」中有本插件的默认审批模式配置项(DSH 0.1.7+ 由宿主按插件 Config 自动渲染;更早版本是「插件配置」里的独立卡片),可设置打开会话时使用的默认审批模式
配置
审批模式分两个值,各有一个入口:
| 入口 | 位置 | 作用范围 |
|---|---|---|
| 审批模式按钮 | 输入框工具栏,权限下拉框旁边 | 当前会话:只改这个会话,其他会话不受影响 |
| 默认审批模式 | 设置 → 插件(0.1.7+)/ 插件配置卡片(0.1.6 及更早) | 默认值:没有自己模式的会话(含正在运行的)立即跟随;已用按钮单独设过模式的会话不受影响 |
工具栏按钮不会改写默认值;默认值只对没有自己模式的会话生效。想改默认就动设置,想单独放行某个会话就动按钮。
存储位置:默认模式是本插件的配置项(DSH 0.1.7+ 由宿主写在 profile patch 里);
按会话的模式写在 $DSH_HOME/approval-mode/sessions.json(插件自有目录,原子写入)。
两者都立即生效并持久保存。
[!IMPORTANT] 从 DSH 0.1.6 及更早升级到 0.1.7+ 时:0.1.7 换掉了旧的 settings 存储通道 (
settings.yaml会被改名成settings.yaml.imported),旧版本写入的默认模式在新宿主上 读不到了,请在「设置 → 插件 → dsh-approval-mode」里重新选一次。按会话的模式由插件首次 启动时自动迁移,无需手动处理。
安装
需要 dsh CLI(下界 0.1.1-rc.2,实测 0.1.5-rc.2、0.1.7-rc.1 与 0.2.0-rc.1,见下方版本说明)。
从 GitHub 仓库安装:
dsh plugin --profile web add github:NEVSTOP-LAB/dsh-approval-mode
[!NOTE]
--profile web是默认 profile。桌面版(DSH Desktop)用--profile desktop;其他 profile 把web换成对应名字即可。
[!NOTE] 版本要求:DSH
0.1.1-rc.2及以上(无上界);已在 DSH0.1.5-rc.2(DSH Desktop 2.0.11)、0.1.7-rc.1(DSH Desktop 2.0.14)与0.2.0-rc.1(DSH Desktop 2.0.16)上验证。低于0.1.1-rc.2的宿主会被 dsh-market 标记为 「低于声明下界」,请先升级 DSH。 0.1.7 更换了 settings 服务的契约(插件 Config 取代命名空间),本插件两代都支持; 升级后默认模式需要重设一次,见上文「配置」。 0.2.0 起宿主不再声明任何@deepseek-ai/dsh-*peer:插件不 import 带版本号的宿主包 (通知消息在插件内构造),因此 0.2 的 DSH 不会再把本插件判为不兼容。 开发、版本声明的判定依据与兼容性校验方法见 CONTRIBUTING.md。
建议锁定提交,避免后续更新改变实际内容:
dsh plugin --profile web add github:NEVSTOP-LAB/dsh-approval-mode#<commit-sha>
也可以从 Releases 下载 tarball 安装:
dsh plugin --profile web add ./dsh-approval-mode-0.2.0.tgz
安装后确认组合层里出现该插件:
dsh --profile web --dump-config
启动后,输入框工具栏权限下拉框旁边会出现「默认审批」按钮。
卸载:
dsh plugin --profile web remove dsh-approval-mode
License
MIT
hashgraph-online/hol-guard
SeaOf0/dsh-redteam-model
howmp/dsh-pentest
dhicoc/dsh-reverse-skill
lire1131/dsh-undo-savepoint
MichengAI/dsh-skills-manager