George-Java/dsh-tool-governor ↗★ 0

dsh-tool-governor

拦截重复工具调用并限制单轮对话的工具预算 适合经常遇到模型工具调用死循环的用户,能有效防止Token额度异常消耗。

套件
dsh-tool-governor
相容性
待驗證
版本
1.0.1
授權
MIT
最近更新
2026年10月17日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:George-Java/dsh-tool-governor

Configuration

All fields are optional — defaults are applied when omitted.

FieldDefaultDescription
maxToolCallsPerTurn24Max tool calls allowed in one turn
maxStepsPerTurn16Max model steps allowed in one turn
repeatThreshold2Deny after the same call repeats this many times
consecutiveFailureThreshold2Pause a tool after N consecutive failures
denyTools[]Glob patterns of tools to always deny (e.g. ["browser_*"])
denyMessagebuilt-inMessage injected when a call is denied

Override through the profile cordis.patch.yml:

- id: dsh-tool-governor
  name: dsh-tool-governor
  config:
    maxToolCallsPerTurn: 12
    repeatThreshold: 1