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额度异常消耗。

パッケージ
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

ドキュメント

README 全文を読む ↗

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