baosfeng/my-dsh-plugins--plugins-dsh-task-reliability ↗★ 11

dsh-task-reliability

DSH 任务可靠性保障插件:模型超时/请求失败自动重试、任务未完成自动继续、思考重复干预、休眠重启后任务恢复、锁屏/休眠唤醒自动恢复、ask 超时自动继续、自主决策模式、远程触发、/task 斜杠命令。DSH web plugin: auto-retry, auto-continue, verification agent, repeat detection, resume after restart, stall watchdog, ask timeout, autopilot, remote trigger, /task command. 适合长时间运行任务的用户,提供失败重试、自动继续与重启后恢复,可配置次数和时间上限。

パッケージ
dsh-task-reliability
互換性
未検証
バージョン
0.4.10
ライセンス
MIT
最終更新
2026/10/10

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:baosfeng/my-dsh-plugins#e7fff48bc3ce67cc99f28fa7f1f8175814da76eb&path:plugins/dsh-task-reliability

ドキュメント

README 全文を読む ↗

使用

  • 入口:右侧栏「➕ 新标签页」(guide)菜单 → 任务可靠性。本插件不会自动打开页签(dsh-file-activity 是「会话首次自动打开」,两者行为不同)。
  • 面板:注册任务、切换「完成度校验」/「自主决策」开关、查看活动任务与待确认问题。
  • 页签不出现时先查禁用位,见下「看不到「任务可靠性」页签?」。

远程触发示例:

curl -X POST http://127.0.0.1:3080/task-reliability/api/trigger \
  -H "Content-Type: application/json" \
  -d '{"action":"mode","autopilot":true}'

配置

全部配置项也可在 设置 → 插件 → 任务可靠性 页签可视化编辑,点「保存」即写入 profile 的 cordis.patch.yml 并热重载生效。

  • apiToken:远程接口令牌;配置后 trigger / mode / answer 需带 x-task-reliability-token 头。
  • retryMax(3)/ retryBaseMs(1000)/ retryableCodes:重试次数上限、指数退避基数、触发重试的错误码集合。
  • maxLoop(8)/ steerCooldownMs(8000)/ rateMaxActions(12):每任务自动继续上限、两次继续最小间隔、每分钟动作数全局上限。
  • maxVerify(3):每任务完成度校验次数上限。
  • rescueOnTruncation(true)/ rescueMaxPerSession(2)/ rescueCooldownMs(30000):截断自动补完开关、每会话上限、间隔。
  • askTimeoutMs(1800000,0=禁用):ask 超时后记录待确认问题 + 注入继续指令 + 模拟回答。
  • watchdogIntervalMs(300000)/ stallTimeoutMs(600000):停滞看门狗检查间隔、停滞判定阈值(0=禁用)。
  • autopilot(false)/ autopilotGraceMs(20000):自主决策默认开关与缓冲(0 = 立即拦截)。
  • saveDebounceMs(500)/ resumeGraceMs(2000):状态落盘防抖窗口、启动后延迟恢复时间。