George-Java/dsh-tool-governor ↗★ 0
dsh-tool-governor
A DeepSeek Harness plugin that intercepts repeated tool calls, caps per-turn budgets, and breaks failure loops to reduce token waste. 适合经常遇到模型工具调用死循环的用户,能有效防止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