dsh-loop-guard:DeepSeek Harness 死循环断路器
DeepSeek Harness 插件 `dsh-loop-guard` 旨在解决模型在 "thinking" 模式下因 KV Cache 压缩导致的单条消息内部死循环问题。该插件通过“窗口重复密度”作为判据,检测单行刷屏或多标记交替滚动等退化形态,并注入破环提醒以阻断空转。 安装需通过命令添加包,并在 profile 的 `bundles` 中显式声明。配置支持保守、平衡、激进三个档位,通过 `repeatDensity` 等参数控制灵敏度。插件仅作提醒,不修改 LLM 参数或阻断请求,依赖 Node.js >= 20。
Read MoreDeepSeek Harness Thinking Loop Guard Plugin: dsh-loop-guard
`mrweicodes/dsh-loop-guard` is a plugin that resolves the “thinking-only, no-action” infinite loop in DeepSeek Harness agents. Through a five-layer detection mechanism, it accurately identifies pure reasoning loops or repeated spamming, directly interrupts calls within the stream, and injects corrective prompts. The plugin does not interrupt the session, supports offline analysis, has a very low false positive rate, and requires DSH version 0.1.2 or higher. After installation, automatic resumption can be configured for unattended operation.
Read Moredsh-loop-guard: Result-Aware Loop Detector
The `dsh-loop-guard` plugin addresses the problem of agents in DeepSeek Harness getting stuck in infinite loops of repeated calls through a result-aware mechanism. It tracks identical tool names, arguments, and results, and enforces blocking using soft and hard thresholds: the soft phase issues prompts, while the hard phase rejects calls. The plugin supports legitimate polling and re-reading, and allows users to intervene and reset state, thereby effectively improving resource utilization efficiency.
Read More