dsh-stall-guard
DeepSeek Harness 看门狗插件,采用“监控 → 判定 → 继续/修复/重定向”流程且不终止任务:仅在真正静默时触发诊断、修复和重定向消息阶梯
AI 分析
核心用途是监控并解决 AI 任务执行中的卡顿或无响应状态。适合需要长时间运行无人值守任务的用户,通过多级阶梯提示引导 AI 自我修复并继续推进。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:akira399/dsh-stall-guard說明文件
閱讀完整 README ↗配置(settings.yaml 的 stall-guard 命名空间)
| 键 | 默认值 | 说明 |
|---|---|---|
enabled | true | 总开关 |
stallThresholdMs | 120000 | 真静默阈值(毫秒):运行中、无任何事件、且无在飞操作时,静默超过该值判定卡顿 |
checkIntervalMs | 5000 | 扫描间隔(毫秒) |
busyTimeoutMs | 600000 | 在飞操作观察窗口(毫秒):有工具调用 / LLM 请求在飞 = 任务在推进,永不引导;仅静默超过该值后记录一条 LONG_RUNNING;0 关闭该记录 |
stallRecordIntervalMs | 60000 | STALL 记录节流间隔(毫秒),防止持续卡顿时日志刷屏 |
policy | "auto" | auto(诊断→修复→换方向阶梯)/ report(仅记录不引导) |
nudgeCooldownMs | 30000 | 阶梯消息的冷却间隔(毫秒) |
diagnoseMessage | 内置默认 | 第 1 级:排查指令(自动附加诊断现场:最后活动、位置、静默时长) |
fixMessage | 内置默认 | 第 2 级:修复指令 |
redirectMessage | 内置默认 | 第 3 级+:换方向指令 |
示例:
stall-guard:
stallThresholdMs: 60000
checkIntervalMs: 3000
policy: auto
修改后热生效(无需重启)。