跳到正文

timeance/dsh-approve-for-me

90最近提交 2026年8月15日

dsh-approve-for-me DSH 插件

dsh-approve-for-me 是 DeepSeek Harness 的插件,对沙箱审批请求应用固定高风险检查、可选的免工具 LLM 审查器和原生人工回退。每次成功决策仅授予一次 allowed-once 权限,绝不永久开放。已在 DeepSeek Harness 0.1.0-rc.6 上验证。

如何安装 dsh-approve-for-me DSH 插件

dsh plugin --profile web add dsh-approve-for-me@latest

复制不会执行命令。安装 dsh-approve-for-me DSH 插件前请核对仓库和版本。

dsh-approve-for-me DSH 插件数据来源

dsh-approve-for-me DSH 插件快照日期:2026年8月16日

discovered

dsh-approve-for-me DSH 插件能做什么

  • Shell 和 PowerShell 命令的文字前缀白名单
  • 审批前执行固定高风险检查
  • 可选的免工具 LLM 审查器,并支持人工回退

dsh-approve-for-me DSH 插件适合哪些场景

  • 在重复工作流中自动批准只读命令,如 git status 或 Get-Location
  • 使用仅规则模式,无需 LLM 即可确定性批准命令
  • 在无头环境中通过 YAML 配置处理沙箱升级

dsh-approve-for-me DSH 插件适合谁

  • 使用 DeepSeek Harness 的开发者,希望减少对安全命令的手动审批
  • 运行自动化工作流且命令边界清晰的团队

dsh-approve-for-me DSH 插件的限制

  • 仅支持 Shell 和 PowerShell 沙箱升级,不覆盖其他工具
  • commandPrefixes 默认为空,不配置则不会自动批准任何命令

dsh-approve-for-me DSH 插件的仓库 README 摘录

以下文字摘自 dsh-approve-for-me DSH 插件的上游仓库 timeance/dsh-approve-for-me 的 README,版权归原作者,仅作引用。

English | [中文](README.zh.md) [![npm](https://img.shields.io/npm/v/dsh-approve-for-me)](https://www.npmjs.com/package/dsh-approve-for-me) [![license](https://img.shields.io/badge/license-MIT-green)](LICENSE) **Rules set the boundary. The current session model reviews candidates. Anything uncertain goes back to you.** `dsh-approve-for-me` is a DeepSeek Harness plugin for rule-gated automatic approval of narrowly allowlisted Shell and PowerShell sandbox escalations. It applies fixed high-risk checks, an optional tool-free LLM reviewer, and native human fallback. Every successful decision grants one `allowed-once` approval, never permanent access. It is validated against DeepSeek Harness `0.1.0-rc.6`; newer Harness releases will be tracked after validation. Literal prefix allowlist | fixed high-risk checks | tool-free LLM reviewer | native human fallback > [!WARNING] > This is an unofficial beta plugin. It has not received an independent security audit and comes without warranty. Built-in checks cannot cover every command, argument, or environment. Keep rules narrow and retain Harness's native human approval as the final decision for important operations. ## Why use it | Access

阅读完整 README仓库许可: MIT

dsh-approve-for-me DSH 插件常见问题

如何安装 dsh-approve-for-me?

先全局安装 DeepSeek Harness:`npm install -g @deepseek-ai/dsh`。然后向 web 配置文件添加插件:`dsh plugin --profile web add dsh-approve-for-me@latest`。安装完成后重启 Host。

如何配置自动批准的命令前缀?

打开 Web 设置页面,依次进入 Settings -> Plugins -> Plugin configuration -> Approve for me。添加前缀条目,例如 `Shell: git status` 或 `PowerShell: Get-Location`。也可以直接编辑 `$DSH_HOME\settings.yaml` 中 `approve-for-me` 部分的 YAML 配置。

为什么我的命令没有被自动批准?

请检查命令是否完全匹配已配置的前缀、沙箱升级是否来自 Shell 或 PowerShell、以及当前访问预设是否设为“Approve for me”。另外确认命令通过了内置的高风险检查;如果检查失败,会回退到人工审批。

可以不用 LLM 审查器吗?

可以。在 YAML 配置中将模式设为 `rules-only`,这会禁用 LLM 审查器,仅依赖前缀规则和固定高风险检查。`rules-only` 模式仍然要求所有命令段都匹配前缀。

dsh-approve-for-me 适合生产环境使用吗?

该插件目前是 beta 版本,尚未经过独立安全审计。它应用了固定高风险检查,并且每次仅授予一次 allowed-once 权限。但内置检查无法覆盖所有命令或环境,请保持前缀规则严格,并保留 Harness 原生人工审批作为重要操作的回退。