dsh-loop-guard: Intercepting Reasoning Loops and Retry Storms in DSH
dsh-loop-guard is a DeepSeek Harness workflow plugin (v0.5.1, MIT) maintained by zuaonew-ops. It detects anomalies in streaming output—such as shard flooding, stream stagnation, slow or zero output, and text repetition—triggers LOOP_GUARD to abort the current attempt, and caps the number of corrective retries on the same failure, preventing the host's default multi-round retry mechanism from amplifying a minute-level failure into a multi-hour hang. It supports both a settings page and HTTP-based configuration, with no third-party dependencies. Install via `dsh plugin add github:zuaonew-ops/dsh-loop-guard`; a host restart is required after installation.
Read Moredsh-loop-guard: Adding Two Safeguards to Agent Work Loops
dsh-loop-guard is a DSH workflow plugin maintained by xfgil that addresses two problems: spinning caused by repeatedly modifying the same target within a single round, identical call stacks, or consecutive failures, and long turns that fail to communicate with the user. Through ctx.tools.guard, it rejects wall-hitting tool calls and injects text to steer the user, and reminds to sync progress when there is no body output for a default of 180 seconds. It supports configurable thresholds and a GET /loop-guard endpoint for observation. The installation command is dsh plugin add dsh-loop-guard --profile. Requires DSH >=0.2.1-rc.2, MIT license.
Read Moredsh-loop-guard: Intercepting repeated loop output on LLM/stream
dsh-loop-guard (lyc0110, v0.1.0, MIT) inspects DSH’s llm/stream to detect whether the reasoning or body text collapses into periodic repetition. By default, it raises a repetition-loop error to abort the request and avoid long-running spinning. It provides three types of detection—line-level collapse, character-periodic repetition, and an optional character limit—and supports configurable providers/models, dryRun, and onDetect. The README includes a configuration table, the built-in test command `node lib/index.js`, and a plugin_manager directive to disable it. It is suitable for scenarios where an agent’s long reasoning gets stuck; review the source code before installing, as the plugin runs with the permissions of the dsh process.
Read Moredsh-loop-guard: Predicate Guard for Costly Loops Before Tool Execution
dsh-loop-guard is a DSH local workflow plugin maintained by 514koishi-495. It utilizes pure rules to intercept duplicate calls, ping-pong loops, retries of identical errors, and sub-agent fan-out prior to tool execution, while imposing hard caps on billed inputs per turn and per session. Without inspecting content or calling models, it operates in tandem with the no-waste-loop-guard skill. This article covers gate types, environment variables, profile-based installation, and procedures for lifting false locks, noting that changes require a DSH restart to take effect.
Read Moredsh-loop-guard: DeepSeek Harness Infinite Loop Circuit Breaker
The DeepSeek Harness plugin `dsh-loop-guard` addresses the infinite loop problem within a single message that arises from KV Cache compression when the model operates in "thinking" mode. Using "window repetition density" as its detection criterion, the plugin identifies degenerate patterns such as single-line flooding or multi-token alternating scrolling, and injects loop-breaking reminders to halt idle spinning. Installation is performed by adding the package via command and explicitly declaring it in the profile's `bundles`. Configuration offers three sensitivity levels—conservative, balanced, and aggressive—controlled through parameters such as `repeatDensity`. The plugin functions solely as a reminder mechanism; it does not modify LLM parameters or block requests. Requires 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