TingRuDeng/dsh-smart-approval ↗★ 2

dsh-smart-approval

基于LLM的故障关闭式智能审批评审插件 适合需要由LLM辅助审查Agent审批请求,并在审查失败时拒绝放行的用户。

包名
dsh-smart-approval
兼容性
待验证
Harness 依赖范围
>=0.1.2-alpha.1 <0.2.0
Cordis 依赖范围
^4.0.2
版本
0.1.0-rc.11
许可证
MIT
最近更新
2026年8月31日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TingRuDeng/dsh-smart-approval

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.

FieldDefaultPurpose
defaultModesmartNew-session mode: manual, smart, or unattended
reviewerProvider / reviewerModelCurrent session routeOptional independent reviewer route; configure as a pair
timeoutMs15000Hard deadline for the complete review call
maxTokens128Maximum reviewer output
maxToolArgumentChars12000Tool-argument limit; overflow fails closed without truncation
maxUserMessages4Current plus recent direct-user message limit; older history is omitted explicitly
maxUserContextChars8000User-context limit; the current turn is never truncated, while older history may be omitted explicitly
decisionLogSize50Decision-audit entries kept per Session lifecycle; 0 disables the audit entirely

The bundle does not override the permission row, so it does not replace a profile's existing permission presets.