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.
Install
# from npm (prebuilt)
dsh plugin --profile web add @weibaohui/dsh-continue
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:weibaohui/dsh-continue
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
自动续跑插件:agent 会话中断后自动帮你续上,不用手敲「继续」。
核心功能
- 自动续跑:检测到传输错误、崩溃孤儿轮、输出截断等失败后,自动向同一会话重发续跑指令,带冷却与指数退避
- 有序规则表:不同失败类型走不同策略,从上到下先命中先用——
- 限流(429):自动退避重试(尊重服务商要求的等待时间),最多 5 次
- 额度耗尽 / 鉴权失败:立即止损并通知,不白白重试
- 上下文超限:自动压缩会话上下文,压缩成功后继续跑(宿主平面若没挂压缩后端,降级为一行止损通知)
- 崩溃孤儿轮:自动继续
- 输出截断(max-tokens):回复写到一半被输出上限掐断时自动续上,长回复 / 长代码输出不再停在半截
- 其他错误:自动继续
- 自定义状态码:自己填状态码列表,命中即按该规则续跑——数字匹配 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'): 宿主平面有后端就用,没有就降级为止损通知。
使用
- 打开 Web UI → 设置页 → 自动续跑
- 总开关默认开启,默认规则表已覆盖常见失败场景
- 想自定义:编辑规则表(匹配条件 + 动作)、调整续跑上限/退避参数、选备用模型
- 失败发生时插件自动介入;会话里会收到续跑与停止原因的通知,活动日志在设置页可查
联系我 :飞书群
版本兼容性
本插件与 DeepSeek Harness(@deepseek-ai/dsh)的版本对应关系:
| 插件版本 | 适配 dsh 版本 | 备注 |
|---|---|---|
| 0.3.11 | 0.1.7-rc.2 | 当前版本;通知消息补 id 与 role,修复通知写入后整个会话下次打开即拒载(#8,#9)。已用真实宿主 dsh-session 0.2.0-rc.2 端到端实测通知写入→重载 |
| 0.3.10 | 0.1.7-rc.2 | max-tokens 输出截断纳入自动续跑(新增 when: 'max-tokens' 与默认规则 r-max-tokens,aborted 保持跳过),规则条件可视化编辑与中英文案同步(#6) |
| 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声明最低支持版本;本表记录实际验证版本,二者配合使用。
Links
More in this category
Minglink/dsh-infinite-gen-4★ 3121
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
ranxianglei/billion-context★ 2025
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
liangmianya/dsh-synapse★ 544
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
Nwflower/dsh-chat-import★ 238
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
MichengAI/dsh-archive-manager★ 177
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Totoro-qaq/dsh-plugin-bridge★ 163
Moves an existing DSH session to another agent preset through a previewable five-section handoff, preserving the source session and either pausing the target for confirmation or continuing immediately.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.