dsh-run-guard: Agent Runtime Rhythm Guardian
dsh-run-guard is a DeepSeek Harness plugin that uses "guard" on the llm/stream to intercept reasoning loops and supports retrying on every turn. It employs "continue" to automatically resume when a turn ends normally but unfinished todos or "stop-after-thinking" conditions remain. The "recovery" feature extends the upstream error whitelist, while "pause_work" allows the model to actively pause. Requires dsh 0.2.0-rc.2 or above. The web installation command is: `dsh plugin --profile web add "github:Dis2017/dsh-run-guard#v0.2.1"` Configuration is managed within the run-guard card on the Plugins page. This plugin is suitable for high-reasoning, long-running task scenarios. Operating with the same privileges as dsh, please verify the source code and MIT license before installation.
Read Moredsh-run-guard: Intercepts reasoning dead loops and prevents immediate stopping after reasoning, a DSH running rhythm guardian plugin
dsh-run-guard is a DSH runtime rhythm guard plugin targeting two types of anomalies when running long tasks with DeepSeek V4 Flash configured with `reasoningEffort: max`: stopping immediately after reasoning (has reasoning, no body, no tool calls) and reasoning infinite loops (spinning for several minutes, with single-step disk writes reaching 1.32 million characters). The plugin provides brakes and gas in an "everything is a plugin" philosophy: the `guard` monitors `llm/stream`, using sliding window repetition rate detection combined with hard limits for double insurance to interrupt infinite loops within 1-2 seconds and automatically retry (default 2 times per turn); `recovery` automatically retries for transient upstream failures like `PI_AI_ERROR`; and `continue` automatically continues running after a turn ends normally, handling continuous failures when there is a todo.
Read More