Dis2017/dsh-run-guard ↗★ 5

dsh-run-guard

Agent run-rhythm guard for DeepSeek Harness: reasoning dead-loop interception (guard) + automatic continuation after premature stops (continue) 适合运行长文本推理、易遇到死循环或频繁中断的复杂任务。

Package
dsh-run-guard
Compatibility
Unverified
Harness peer range
0.1.2-rc.1
Cordis peer range
^4.0.2
Version
0.1.18
License
MIT
Last updated
Sep 7, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Dis2017/dsh-run-guard

⚙️ 配置

配置项默认说明
enabledtrue总开关
guard.enabledtrue死循环拦截开关
guard.windowChars2000滑动窗口大小(字符)
guard.substrLen32重复检测子串长度
guard.repeatRatio0.7窗口重复率阈值(≥ 触发)
guard.checkEvery50每 N 块检测一次(降频)
guard.maxBlocks10000硬闸:单次调用推理块数上限
guard.maxChars500000硬闸:单次调用推理字符数上限
guard.maxGuardRetries2中断后每 turn 自动重试次数上限(0 禁用)
guard.autoRetryErrors["PI_AI_ERROR"]额外自动重试的错误码白名单(REASONING_GUARD 恒重试);瞬时上游错误可加入
continue.enabledtrue自动继续开关
continue.maxAutoFollowups3有 todo 场景连续无产出续跑上限