Tools & Capabilities

dsh-approve-for-me

DamonKoy/dsh-plugins/packages/dsh-approve-for-me · ★ 1

DamonKoy

Automated approval review: auto-approve read-only tools, auto-deny dangerous commands, fail-closed policy engine.

License
Unknown
Added
2026-08-21
Maintenance
active
Install kind
github

No manifest check is available; listing does not imply compatibility or security review.

安装

dsh plugin --profile web add github:DamonKoy/dsh-plugins#path:/packages/dsh-approve-for-me

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: en · Read Chinese README

Table of contents
  1. What it does
  2. Modes
  3. Install
  4. Config
  5. Security notes
  6. License

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

Mode Read-only tools Other tools Dangerous commands
off ask human ask human ask human
review (default) auto-approve ask human auto-deny
auto auto-approve auto-approve auto-deny

Install

dsh plugin --profile web add github:DamonKoy/dsh-plugins#path:/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