akira399/dsh-stall-guard1

dsh-stall-guard

DeepSeek Harness watchdog plugin with a monitor → judge → continue/fix/redirect flow and NO task termination: in-flight operations are treated as progress (never steered), and only true silence triggers a diagnose → fix → redirect message ladder (repeats forever) plus a JSONL event log and loopback status route. Zero npm dependencies.

AI 分析

核心用途是监控并解决 AI 任务执行中的卡顿或无响应状态。适合需要长时间运行无人值守任务的用户,通过多级阶梯提示引导 AI 自我修复并继续推进。

パッケージ
dsh-stall-guard
バージョン
1.3.0
ライセンス
MIT
最終更新
2026/08/14

インストール

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

ドキュメント

README 全文を読む ↗

配置(settings.yaml 的 stall-guard 命名空间)

默认值说明
enabledtrue总开关
stallThresholdMs120000真静默阈值(毫秒):运行中、无任何事件、且无在飞操作时,静默超过该值判定卡顿
checkIntervalMs5000扫描间隔(毫秒)
busyTimeoutMs600000在飞操作观察窗口(毫秒):有工具调用 / LLM 请求在飞 = 任务在推进,永不引导;仅静默超过该值后记录一条 LONG_RUNNING0 关闭该记录
stallRecordIntervalMs60000STALL 记录节流间隔(毫秒),防止持续卡顿时日志刷屏
policy"auto"auto(诊断→修复→换方向阶梯)/ report(仅记录不引导)
nudgeCooldownMs30000阶梯消息的冷却间隔(毫秒)
diagnoseMessage内置默认第 1 级:排查指令(自动附加诊断现场:最后活动、位置、静默时长)
fixMessage内置默认第 2 级:修复指令
redirectMessage内置默认第 3 级+:换方向指令

示例:

stall-guard:
  stallThresholdMs: 60000
  checkIntervalMs: 3000
  policy: auto

修改后热生效(无需重启)。