DamonKoy/dsh-plugins--packages-dsh-approve-for-me0

dsh-approve-for-me

Automated approval review for DeepSeek Harness: auto-approves safe tools, auto-denies dangerous command patterns, and can fully auto-approve in 'auto' mode. · DSH 自动审批审核插件:安全操作自动放行、危险命令自动拒绝、可配置全自动模式。

AI 分析

核心用途是自动化 DSH 的工具调用审批流程。适合希望自动放行只读安全工具、硬拦截危险 Shell 命令以提升效率和安全性的用户。

パッケージ
dsh-approve-for-me
バージョン
0.1.0
最終更新
2026/08/15

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:DamonKoy/dsh-plugins#fd97e01fb1c26454f27310dd42a6f8d7b66e8e29&path:packages/dsh-approve-for-me

ドキュメント

README 全文を読む ↗

dsh-approve-for-me

Automated approval review for DeepSeek Harness. Inspired by Codex 0.147's --approve-for-me (Guardian auto-review).

English | 中文

What it does

  • approval/request hook: in review mode, read-only tools (read, grep, glob, ssh_list, inspection tools, ...) are auto-approved; in auto mode every request is approved — except dangerous commands, which are always denied (fail-closed security floor).
  • tools/pre-execute hook: dangerous shell commands (rm -rf /, mkfs, dd of=/dev/sdX, fork bombs, chmod -R 777 /, curl|sh, shutdown, ...) are hard-blocked before dispatch, so they never reach the approval prompt.
  • approval_policy_status tool: report the current mode and activity.
  • RPC (approve-for-me/status, approve-for-me/set-mode) for client halves and other plugins.

Modes

ModeRead-only toolsOther toolsDangerous commands
offask humanask humanask human
review (default)auto-approveask humanauto-deny
autoauto-approveauto-approveauto-deny

Install

dsh plugin --profile web add link:~/dsh-plugins/packages/dsh-approve-for-me

Restart dsh web. Default mode is review.

Config

~/.dsh/dsh-approve-for-me.json:

{ "mode": "auto" }

Valid modes: off | review | auto. You can also switch at runtime via the approve-for-me/set-mode RPC (memory-only, resets on restart).

Security notes

  • Auto-approval never bypasses the dangerous-command denylist.
  • Denials are fail-closed: a throwing listener falls through to the human answerer, never to silent approval.
  • The policy engine (lib/policy.js) is unit-tested; run node --test test/ to verify.

License

MIT