weibaohui/dsh-continue 预览 preview

weibaohui/dsh-continue

Plugin插件 Native原生 ⭐ 3 Models & Routing模型与路由

自动续跑插件 for DeepSeek Harness — 有序规则表:按失败类型路由 继续续跑 / 换模型 / 压缩后继续 / 停止

Project Overview项目介绍

weibaohui/dsh-continue is a DSH-native plugin published on npm as @weibaohui/dsh-continue and explicitly built for the DeepSeek Harness (@deepseek-ai/dsh) runtime, with no other agent platform listed as a target. Installation is handled through the first-party DSH command line: dsh plugin --profile web add @weibaohui/dsh-continue -w, after which a restart of dsh web activates the plugin. Its core capability is automatic resumption of interrupted agent sessions, where transport errors, orphan crashed turns, rate limits, quota exhaustion, authentication failures, or context overflow trigger a reorder of the same conversation rather than forcing the user to type "continue" again.

In typical use, an operator enables the master toggle inside the Web UI under Settings → Auto-Resume and reviews the default rule table, which already maps common failure types to specific actions: HTTP 429 receives exponential backoff with up to five retries honoring the provider's Retry-After header, quota and auth failures stop immediately and surface a notification, context overflow triggers an automatic compression step before resuming, and orphan or generic errors simply retry. Rules are evaluated top-to-bottom, custom HTTP codes (such as 529 or 520) or machine codes (such as UNKNOWN) can be added via a match-condition editor, and a fallback model can be selected from dropdowns so that repeated failures on the primary model automatically switch providers while an in-app activity log records every retry, model swap, and stop reason.

The plugin depends entirely on the host version of @deepseek-ai/dsh and pins compatibility through both the engines.dsh field in package.json and a documented mapping table that records the exact dsh release each plugin version was validated against, currently 0.3.x against dsh 0.1.7-rc.2. No license is declared in the repository metadata, so users should verify redistribution terms before reuse. Default rules are applied out of the box and require no manual configuration, but first-time users should open the settings page, confirm the master toggle, review the rule ordering (noting that custom server-error codes must sit above the catch-all "server error" entry), and choose their primary and fallback provider/model from the dropdowns before running long jobs.

weibaohui/dsh-continue 是一个面向 DeepSeek Harness(DSH,原生插件)的自动续跑插件,命名为 @weibaohui/dsh-continue,安装命令为 dsh plugin --profile web add @weibaohui/dsh-continue -w,装完重启 dsh web 即生效。它针对 agent 会话因网络错误或服务异常中断的场景,自动在同一会话内重发续跑指令,并提供可视化设置面板用于调整退避、上限与备用模型等参数,目标用户是经常跑长任务、遭遇限流或额度耗尽而被迫手动输入"继续"的 DSH 用户。

典型工作流是:在 dsh web 设置页打开「自动续跑」总开关后,默认规则表即可覆盖 429 限流、额度耗尽、上下文超限、孤儿轮等常见失败;命中规则后插件会按策略处理,例如上下文超限时自动压缩后再续跑,连续失败则自动切换到备用模型继续。用户也可在规则表里添加自定义 HTTP 状态码(如 529、520)或机器码(如 UNKNOWN)以触发专属动作,所有续跑、换模型与停止事件都会写入活动日志。

依赖方面,插件以 @deepseek-ai/dsh 作为宿主,package.json 通过 engines.dsh 声明最低支持版本,并附带验证表记录每个发行版实际跑通的 dsh 版本(当前为 0.3.x 适配 0.1.7-rc.2);license 未在仓库中明示,开箱可用、首次运行无需手动配置,仅需在 dsh web 设置页确认开关、规则顺序以及下拉选定的 provider 与模型即可投入使用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

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

把 weibaohui/dsh-continue 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

@weibaohui/dsh-continue

DSH plugin npm version

自动续跑插件: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. 失败发生时插件自动介入;会话里会收到续跑与停止原因的通知,活动日志在设置页可查

联系我 :飞书群

link

版本兼容性

本插件与 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 声明最低支持版本;本表记录实际验证版本,二者配合使用。

← 上一个 Prev url-manager 下一个 Next dsh-autogate →