dsh-loop-breaker: Hard Stop Loss Plugin

`dsh-loop-breaker` is a hard stop-loss plugin for DeepSeek Harness (DSH), designed to address the issues of excessive single-round step counts or getting trapped in repeated calls during Agent execution. The plugin calculates the repetition frequency of tool names and parameters, and forcefully interrupts the current round when the configured consecutive or cumulative thresholds are reached. Its installation script is located at a specified path and must be loaded after restarting `dsh web`. By setting `consecutiveLimit` and `totalLimit` in the configuration file, users can effectively prevent invalid infinite loops and avoid prolonged waits or manual intervention.

Read More
dsh-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