dsh-loop-breaker:硬止损插件
`dsh-loop-breaker` 是一款用于 DeepSeek Harness (DSH) 的硬止损插件,旨在解决 Agent 执行中单轮步数过高或陷入重复调用的问题。该插件通过计算工具名与参数的重复频率,当达到设定的连续或累计阈值时,强制中断当前轮次。其安装脚本位于指定路径,需重启 `dsh web` 后加载。通过在配置文件中设置 `consecutiveLimit` 和 `totalLimit`,用户可有效防止无效死循环,避免长时间等待或手动干预。
Read Moredsh-loop-breaker: DSH Streaming Repetition Circuit Breaker
The DSH (DeepSeek Harness) plugin `dsh-loop-breaker` is designed to resolve the model's "degenerate repetition" issue. Unlike the previous approach that only detects turn boundaries, it hooks into the `llm/stream` event to intercept repetitive behavior in real time within streaming output. The plugin supports detecting multiple repetition patterns, and upon a match, it immediately cancels the underlying HTTP request (stopping billing) and injects a corrective prompt. It also features an L0 sanitization mechanism to prevent repetitive content from contaminating the session history. With simple installation and flexible configuration, it effectively prevents runaway token consumption caused by repetition.
Read More