Bundle
dsh-approval-mode
Approval mode control for DeepSeek Harness: default approval (ask) or bypass approval (auto-approve every tool call), next to the permission selector. DSH 审批模式插件。
- Source
- NEVSTOP-LAB
- stars
- 4 stars
- License
- MIT
- Updated
- Updated 7 days ago
Readme
# DSH-Approval-Mode DSH 审批模式插件。在 DSH 窗口的权限下拉框(Read Only / Workspace Write / Full Access)旁边加一个「审批模式」按钮,权限可以保持 **Workspace Write**,审批模式选「绕过审批」——工具调用自动放行,但文件操作仍被沙箱限制在工作区内,比切到 Full Access 更安全、更方便。 > [!IMPORTANT] > 「绕过审批」会**自动批准所有工具调用**,包括文件修改、外部命令等敏感操作,全程没有确认提示。 > 只在完全信任当前任务时使用,用完记得切回「默认审批」。 > 当会话权限为 Full Access 时,DSH 本身不会发起审批请求,此模式不生效。 <img width="998" height="169" alt="image" src="https://github.com/user-attachments/assets/76763839-e8c1-4dcf-9a4f-00d94b5110b3" /> ## 功能 - 按钮在输入框工具栏、权限选择旁边,样式和权限控件一致 - **默认审批**:和 DSH 原有行为一样,工具调用需要点击批准 - **绕过审批**:所有工具调用自动批准,不用点击 - 切换立即生效,重启后保持 - 绕过审批时按钮显示为橙色 - 权限为 Full Access 时,按钮置灰并显示「绕过审批」:DSH 不再发起审批请求,模式不可切换 - 切换模式会通知当前会话的代理 ## 安装 需要 [dsh CLI](https://github.com/deepseek-ai/deepseek-harness)(0.1.0-rc.6 及以上)。 从 GitHub 仓库安装: ```sh dsh plugin --profile web add github:NEVSTOP-LAB/dsh-approval-mode ``` > [!NOTE] > `--profile web` 是默认 profile。桌面版([DSH Desktop](https://github.com/anywhere-labs/deepseek-harness-desktop))用 `--profile desktop`;其他 profile 把 `web` 换成对应名字即可。 建议锁定提交,避免后续更新改变实际内容: ```sh dsh plugin --profile web add github:NEVSTOP-LAB/dsh-approval-mode#<commit-sha> ``` 也可以从 [Releases](https://github.com/NEVSTOP-LAB/dsh-approval-mode/releases) 下载 tarball 安装: ```sh dsh plugin --profile web add ./dsh-approval-mode-0.1.1-rc.2.tgz ``` 安装后确认组合层里出现该插件: ```sh dsh --profile web --dump-config ``` 启动后,输入框工具栏权限下拉框旁边会出现「默认审批」按钮。 卸载: ```sh dsh plugin --profile web remove dsh-approval-mode ``` ## License MIT
Install
dsh plugin --profile web add github:NEVSTOP-LAB/dsh-approval-mode
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-approval-mode from the hub
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.