Mlte0907/dsh-brake ↗★ 0

dsh-brake

DSH 死循环刹车器:检测重复调用、序列循环与重复文本上下文,默认提醒,可选执行前拒绝 通过检测重复调用和序列循环来防止死循环,适合需要控制运行成本、避免无限消耗Token的用户。

パッケージ
dsh-brake
互換性
未検証
バージョン
0.2.0
ライセンス
MIT
最終更新
2026/09/18

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Mlte0907/dsh-brake

ドキュメント

README 全文を読む ↗

Configuration

- id: dsh-brake
  config:
    mode: remind                 # remind | deny
    callWarnCount: 6             # repeats before the first call warning
    callDenyCount: 10            # deny-mode threshold; must be > callWarnCount
    callReWarnEvery: 5           # repeats between re-warnings on one chain
    sequenceLength: 4            # calls per sequence (min 2)
    sequenceCount: 3             # sequence repetitions before a warning
    duplicateTextThreshold: 3    # injections within the window before a warning
    duplicateTextWindowMs: 120000
    duplicateTextCooldownMs: 30000
    minimumDuplicateChars: 80

Invalid values throw at plugin load; nothing falls back silently.