TingRuDeng/dsh-smart-approval ↗★ 0
dsh-smart-approval
用于 DeepSeek Harness 的故障自闭合(Fail-closed)LLM 辅助审批评审插件。
AI 分析
核心用途是利用大模型辅助评估沙箱指令的安全性并进行智能审批。适合需要自动化执行命令但又要求高安全防范(默认拒绝)的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TingRuDeng/dsh-smart-approval說明文件
閱讀完整 README ↗Configuration
The current session route performs review by default. To use an independent
route, override the plugin row in the profile's cordis.patch.yml:
- id: smart-approval
config:
defaultMode: smart
reviewerProvider: your-provider-route
reviewerModel: your-model-id
timeoutMs: 15000
maxTokens: 128
reviewerProvider and reviewerModel must be configured together.
| Field | Default | Purpose |
|---|---|---|
defaultMode | smart | New-session mode: manual, smart, or unattended |
reviewerProvider / reviewerModel | Current session route | Optional independent reviewer route; configure as a pair |
timeoutMs | 15000 | Hard deadline for the complete review call |
maxTokens | 128 | Maximum reviewer output |
maxToolArgumentChars | 12000 | Tool-argument limit; overflow fails closed without truncation |
maxUserMessages | 4 | Current plus recent direct-user message limit; older history is omitted explicitly |
maxUserContextChars | 8000 | User-context limit; the current turn is never truncated, while older history may be omitted explicitly |
The bundle does not override the permission row, so it does not replace a
profile's existing permission presets.