NEVSTOP-LAB/dsh-approval-mode
DSH审批模式插件,在DSH窗口的权限下拉框(Read Only / Workspace Write / Full Access)旁添加一个“审批模式”按钮,在Workspace Write模式下工具调用自动放行。
项目介绍Project Overview
DSH审批模式插件,在权限下拉框旁添加审批切换按钮。支持默认审批与绕过审批:后者自动批准所有工具调用,无需逐次点击,同时可保持Workspace Write,使文件操作仍受工作区沙箱限制。适合在信任任务中减少重复确认。注意:绕过审批会自动放行文件修改、外部命令等敏感操作且无提示;Full Access下DSH不发起审批,该模式不生效。
A DSH plugin that adds an approval-mode toggle next to the permission dropdown. It supports default approval and bypass approval, which auto-approves all tool calls without prompts while keeping Workspace Write, so file operations remain sandboxed to the workspace. Use it for trusted tasks to reduce repeated confirmations. Caveat: bypass approval auto-allows sensitive actions like file edits and external commands; it has no effect under Full Access because DSH issues no approval requests.
请帮我了解并安装插件:【dsh-approval-mode】【https://github.com/NEVSTOP-LAB/dsh-approval-mode】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)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 CLI(0.1.0-rc.6 及以上)。
从 GitHub 仓库安装:
dsh plugin --profile web add github:NEVSTOP-LAB/dsh-approval-mode
[!NOTE]
--profile web是默认 profile。桌面版(DSH Desktop)用--profile desktop;其他 profile 把web换成对应名字即可。
建议锁定提交,避免后续更新改变实际内容:
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.1-rc.2.tgz
安装后确认组合层里出现该插件:
dsh --profile web --dump-config
启动后,输入框工具栏权限下拉框旁边会出现「默认审批」按钮。
卸载:
dsh plugin --profile web remove dsh-approval-mode
License
MIT
nexu-io/open-design
ruvnet/ruflo
amruthpillai/reactive-resume
esengine/DeepSeek-Reasonix
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/distilly
titanwings/colleague-skill