dsh-run-guard:Agent 运行节奏守护

dsh-run-guard 是 DeepSeek Harness 插件,用 guard 在 llm/stream 上拦截推理死循环并支持每 turn 重试,用 continue 在 turn 正常结束但有未完成 todo 或「想完就停」时自动续跑,recovery 扩展上游错误白名单,pause_work 供模型主动暂停。要求 dsh 0.2.0-rc.2+,Web 安装命令为 dsh plugin --profile web add "github:Dis2017/dsh-run-guard#v0.2.1",配置在 Plugins 页面的 run-guard 卡片。适合高 reasoning 长任务场景;插件与 dsh 同权,安装前请核对源码与 MIT 许可证。

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