toby-bridges/api-relay-audit
toby-bridges/api-relay-audit从 DeepSeek Harness 对 AI API 中转站和 LLM 代理运行本地安全审计,生成 Markdown 报告,覆盖提示词注入、模型替换信号、工具调用改写、错误泄漏、流完整性和按 profile 启用的 Web3 风险。
Automated approval review for DeepSeek Harness. Inspired by Codex 0.147's
--approve-for-me (Guardian auto-review).
English | 中文
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.approve-for-me/status, approve-for-me/set-mode) for client
halves and other plugins.| 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 |
dsh plugin --profile web add github:DamonKoy/dsh-plugins#path:/packages/dsh-approve-for-me
Restart dsh web. Default mode is review.
~/.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).
lib/policy.js) is unit-tested; run
node --test test/ to verify.MIT