dsh-approval-mode
Manifest valid★ 8DSH Approval Mode plugin, adds an "Approval Mode" button next to the permission dropdown (Read Only / Workspace Write / Full Access) in the DSH window, automatically allowing tool calls in Workspace Write mode.
DSH-Approval-Mode
DSH 审批模式插件。在 DSH 窗口的权限下拉框(Read Only / Workspace Write / Full Access)旁边加一个「审批模式」按钮,权限可以保持 Workspace Write,审批模式选「绕过审批」——工具调用自动放行,但文件操作仍被沙箱限制在工作区内,比切到 Full Access 更安全、更方便。
[!IMPORTANT] 「绕过审批」会自动批准所有工具调用,包括文件修改、外部命令等敏感操作,全程没有确认提示。 只在完全信任当前任务时使用,用完记得切回「默认审批」。 当会话权限为 Full Access 时,DSH 本身不会发起审批请求,此模式不生效。
功能
- 按钮在输入框工具栏、权限选择旁边,样式和权限控件一致
- 默认审批:和 DSH 原有行为一样,工具调用需要点击批准
- 绕过审批:所有工具调用自动批准,不用点击
- 切换立即生效,重启后保持
- 绕过审批时按钮显示为橙色
- 权限为 Full Access 时,按钮置灰并显示「绕过审批」:DSH 不再发起审批请求,模式不可切换
- 切换模式会通知当前会话的代理
- 设置 → 插件 → 插件配置中有本插件的配置卡片,可设置打开会话时使用的默认审批模式
配置
审批模式有两个入口,改的是同一个设置(全局、立即生效、写入 settings.yaml 持久保存):
| 入口 | 位置 | 用途 |
|---|---|---|
| 审批模式按钮 | 输入框工具栏,权限下拉框旁边 | 随手切换当前会话 |
| 配置卡片 | 设置 → 插件 → 插件配置 | 设置打开会话时使用的默认模式 |
安装
需要 dsh CLI(下界 0.1.1-rc.2,实测 0.1.5-rc.2,见下方版本说明)。
从 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及以上(0.1.x 线,无上界);已在 DSH0.1.5-rc.2(DSH Desktop 2.0.11)上验证。低于0.1.1-rc.2的宿主会被 dsh-market 标记为 「低于声明下界」,请先升级 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.1.2.tgz
安装后确认组合层里出现该插件:
dsh --profile web --dump-config
启动后,输入框工具栏权限下拉框旁边会出现「默认审批」按钮。
卸载:
dsh plugin --profile web remove dsh-approval-mode
License
MIT
Comments
Loading…
Similar plugins
by Jiao-XXX
为 DeepSeek Harness 增加介于 Workspace Write 与 Full access 之间的自动批准权限档,危险或不确定操作仍转人工审批。An auto-approval permission preset between workspace-write and full access for DeepSeek Harness.
★ 17
↓ 209/wk
MIT
JavaScript
Oct 2, 2026
dsh plugin --profile web add dsh-auto-approveby Ayle5678
一款DSH (DeepSeek Harness) 插件:类似 Claude Code 中 Auto Mode 的一种命令通过机制,给 dsh中的full access 加一层 LLM 安全网的自动审批插件。
★ 0
MIT
TypeScript
Aug 26, 2026
dsh plugin --profile web add dsh-auto-guardby wonderandyou
DSH 插件:在权限菜单里新增「管理员」档(完全访问 + 永不询问),内置官方 computer use、操控提示与自主迭代按钮。
★ 15
MIT
JavaScript
Oct 21, 2026
dsh plugin --profile web add @local/dsh-admin-modeby StyxNether
Auto-Approval: a middle permission tier for DeepSeek Harness between workspace-write and danger-full-access, auto-approving harmless commands and trusted-area targets
★ 4
↓ 35/wk
MIT
JavaScript
Sep 6, 2026
dsh plugin --profile web add dsh-auto-approval-pluginby wangxing-git
DeepSeek Harness 自动审批插件:在 workspace-write 沙箱之上叠加确定性规则 + LLM 安全审批,自动模式不放宽沙箱、fail-closed。 Safe auto-approval for DeepSeek Harness — deterministic rules + LLM review on top of the workspace-write sandbox
★ 3
MIT
TypeScript
Oct 28, 2026
dsh plugin --profile web add dsh-autogateby Alail691
把 DSH 侧栏的「插件」整体收进设置:在「设置 → 插件」里新增一个「插件管理」标签页,内嵌官方插件面板的全部能力(浏览 / 安装 / 开关 / 卸载)。Bring the sidebar's Plugins page into Settings as a tab, embedding the official plugin manager.
★ 0
MIT
JavaScript
Oct 16, 2026
dsh plugin --profile web add dsh-plugins-in-settings