dsh-run-guard
Run the following command in DeepSeek Harness:
dsh plugin install Dis2017/dsh-run-guard
Paste the following prompt into your AI chat to install this plugin:
In DeepSeek Harness, install the dsh-run-guard plugin by running the command dsh plugin install Dis2017/dsh-run-guard, with the full source code available at https://github.com/Dis2017/dsh-run-guard.
About this plugin
When using DeepSeek V4 Flash for long-running tasks, Agents often encounter the dual challenges of reasoning loops and premature stops: models can get stuck in endless, meaningless reasoning cycles lasting minutes, or complete their thinking without taking action, leaving tasks unfinished. The dsh-run-guard plugin is designed to address these issues. It employs a guard mechanism that monitors reasoning streams in real-time, using sliding window repetition detection and hard limits to quickly interrupt loops with automatic retries. Simultaneously, the continue mechanism injects prompts to resume tasks when unfinished or when the model stops early, preventing premature halts. Additionally, the recovery feature handles upstream request failures, and pause_work allows models to manually pause for flexible control. This plugin is ideal for all developers building Agents with DeepSeek Harness, especially for complex, long-duration task scenarios. By ensuring a stable runtime rhythm, it helps Agents complete tasks reliably without getting stuck or stopping prematurely, thus enhancing task efficiency and robustness.
Use Cases
- For preventing reasoning loops during long tasks with DeepSeek V4 Flash.
- For automatically resuming unfinished tasks in Agent runtime.
- For scenarios requiring manual pause control of the model.
Best For
- Developers building Agents with DeepSeek Harness.
- Engineers working on complex, long-running tasks.
- Teams requiring stable task execution reliability.
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.