Skip to content
dsh-market Browse plugins GitHub 中文

weibaohui/dsh-continue

Auto-resume for interrupted agent sessions: an ordered rule table routes by failure type (rate limit, quota, auth, context overflow, crashed orphan) to automatic backoff retry, model switch, resume after context compaction, or a stop-loss notification, with a visual rule editor and a full activity log.

Stars ★ 3 Category Sessions & Messages Listed 2026-09-05 npm @weibaohui/dsh-continue

Install

Inside DeepSeek Harness, with dsh-market

dsh plugin --profile web add dshmarket

Or from the command line

dsh plugin --profile web add @weibaohui/dsh-continue

Installing runs third-party code with your own permissions — it can read your files, use your credentials and reach the network. Review the source first, and pin a commit (github:owner/repo#sha) when you can.

README

This plugin publishes its README in Chinese only.

自动续跑插件:agent 会话中断后自动帮你续上,不用手敲「继续」。

核心功能

  • 自动续跑:检测到传输错误、崩溃孤儿轮等失败后,自动向同一会话重发续跑指令,带冷却与指数退避
  • 有序规则表:不同失败类型走不同策略,从上到下先命中先用——
    • 限流(429):自动退避重试(尊重服务商要求的等待时间),最多 5 次
    • 额度耗尽 / 鉴权失败:立即止损并通知,不白白重试
    • 上下文超限:自动压缩会话上下文,压缩成功后继续跑(宿主平面若没挂压缩后端,降级为一行止损通知)
    • 崩溃孤儿轮 / 其他错误:自动继续
    • 自定义状态码:自己填状态码列表,命中即按该规则续跑——数字匹配 HTTP 状态码(如 529、520),文字匹配机器码(如 UNKNOWN),大小写不敏感;放在「服务端错误」上方即可让特定状态码优先走专属策略
  • 失败后自动换模型:同一失败连续 N 次仍不成功,后续续跑自动切换到备用模型(如主模型限流后换备用模型接着跑)
  • 可视化管理:设置页里规则、开关、次数、退避参数全部可视化编辑;provider 和模型一律下拉选择
  • 全程可查:每次续跑、换模型、停止原因都有活动日志

安装

dsh plugin --profile web add @weibaohui/dsh-continue -w

装完重启 dsh web 即生效。默认规则开箱可用,无需任何配置。

本插件的 bundle patch 不改动 compaction-basic。 web bundle 默认把压缩后端 放在每个 agent preset 的 isolate 域里,profile 也可能在宿主平面挂别的后端 (例如 @aiwayds/dsh-dcp);强行把那一行改成 disabled: false 会和它们抢同一个 compaction 服务,导致对方启动失败。插件改为懒解析 ctx.get('compaction'): 宿主平面有后端就用,没有就降级为止损通知。

使用

  1. 打开 Web UI → 设置页 → 自动续跑
  2. 总开关默认开启,默认规则表已覆盖常见失败场景
  3. 想自定义:编辑规则表(匹配条件 + 动作)、调整续跑上限/退避参数、选备用模型
  4. 失败发生时插件自动介入;会话里会收到续跑与停止原因的通知,活动日志在设置页可查

联系我 :飞书群

版本兼容性

本插件与 DeepSeek Harness(@deepseek-ai/dsh)的版本对应关系:

插件版本 适配 dsh 版本 备注
0.3.9 0.1.7-rc.2 当前版本;冷却窗口内的失败改为推迟续跑(修复快速失败场景只续跑一次即停摆);通知延后投递并带 surfaceOp 标记(修复止损/达限通知静默丢失)。已在隔离 web 实例端到端实测续跑循环
0.3.8 0.1.7-rc.2 适配 dsh 0.1.7 会话来源格式(producer-owned dsh-continue kind)与压缩后端懒解析(不再进 inject、不再改 compaction-basic 行),修复 web profile 续跑必失败
0.3.4 0.1.7-rc.2 修复宿主将 volatile 字段物化为 {} 导致的设置毒化(saneConfigValues 清洗 + 移除 Config 兼容字符串字段)
0.3.3 0.1.7-rc.2 当前版本;适配 0.1.7 settings 模型(导出 volatile Config,ctx.settings.update 持久化),面板改动重启不再丢失
0.3.1 0.1.7-rc.2 已在 @deepseek-ai/dsh@0.1.7-rc.2 下验证运行

发版约定:每次发布新版本时,请在上表追加一行,记录该插件版本实际验证所用的 @deepseek-ai/dsh 版本。package.json 的 engines.dsh 声明最低支持版本;本表记录实际验证版本,二者配合使用。

Content from the project README on GitHub ↗

Comments

Comments live in GitHub Discussions. Sign in with GitHub to post or react.