George-Java/dsh-tool-governor ↗★ 0
dsh-tool-governor
拦截重复工具调用并限制单轮对话的工具预算 适合经常遇到模型工具调用死循环的用户,能有效防止Token额度异常消耗。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:George-Java/dsh-tool-governor说明文档
阅读完整 README ↗Configuration
All fields are optional — defaults are applied when omitted.
| Field | Default | Description |
|---|---|---|
maxToolCallsPerTurn | 24 | Max tool calls allowed in one turn |
maxStepsPerTurn | 16 | Max model steps allowed in one turn |
repeatThreshold | 2 | Deny after the same call repeats this many times |
consecutiveFailureThreshold | 2 | Pause a tool after N consecutive failures |
denyTools | [] | Glob patterns of tools to always deny (e.g. ["browser_*"]) |
denyMessage | built-in | Message 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