NEVSTOP-LAB/dsh-approval-mode 预览 preview

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 许可开源,完全免费可供使用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 本身不会发起审批请求,此模式不生效。

image

功能

  • 按钮在输入框工具栏、权限选择旁边,样式和权限控件一致
  • 默认审批:和 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 及以上(无上界);已在 DSH 0.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

← 上一个 Prev nowledge-mem-deepseek-harness 下一个 Next dsh-oh-my-claude →