haochi72/dsh-auto-continue-429

Project Overview项目介绍

This is a purpose-built plugin for DeepSeek Harness (DSH) that automatically resumes conversations when a 429 rate limit or quota exhaustion error is returned by the DeepSeek LLM API. It follows the DSH Cordis plugin specification and includes both host-side logic and client-side UI components. There are three supported installation methods: installing from npm, installing directly from GitHub via the DSH CLI, or linking a local development copy for testing. After installation, you will need to restart DSH Desktop for the plugin to load correctly, and you should see a small capsule switch bar at the bottom of the dialog input area to confirm it loaded successfully.

The plugin triggers after DSH’s built-in per-step retries are exhausted, and automatically sends a continue message after a random 1 to 2 second backoff to start a new conversation turn. By default, it will only stop automatic retries for a session after 20 consecutive failures, and the failure count is reset any time a conversation turn completes successfully or you send a manual message. This plugin is ideal for users who frequently hit DeepSeek API rate limits or quota fluctuations, and want their conversations to recover automatically without manual intervention. It maintains separate failure counts for each active session, so stopping retries for one session does not affect any other ongoing conversations.

This plugin is released under the open source MIT license, so it is free to use, modify, and distribute per the license terms. It only stores less than 1KB of configuration data for switch states in the local file ~/.dsh/auto-continue-429.json, and does not access or read your DeepSeek API key or any other sensitive data. All internal communication runs over DSH’s built-in localhost loopback, so no external network requests are sent by the plugin. Users can customize the maximum number of consecutive retries between 1 and 100 in the settings page, and can also change the text of the continue message that is sent automatically.

这是一款专为 DeepSeek Harness(DSH)开发的原生插件,用于在 LLM 返回 429 限流或配额耗尽错误时自动恢复对话。它遵循 DSH 标准 Cordis 插件架构,同时提供宿主端逻辑和客户端 UI,支持通过 npm、GitHub 或本地开发链接三种方式安装,安装完成后重启 DSH Desktop 即可正常加载使用,无需额外配置基础环境。

当 DSH 内置的 step 级重试耗尽后,本插件会介入处理,随机等待 1 到 2 秒后自动发送 continue 指令开启新的对话轮次,默认连续失败 20 次后才停止该会话的自动恢复。任意一次对话正常结束或用户手动发送任意消息,都会重置所有会话的失败计数,适合经常遇到 DeepSeek API 限流、希望对话自动恢复无需手动干预的用户使用。

本插件采用 MIT 开源协议,完全免费使用,仅会在本地 ~/.dsh/auto-continue-429.json 保存不到 1KB 的开关状态配置,不访问用户 API Key,也不向外发送任何网络请求,所有通信都走 DSH 内置本地回环服务。用户可在设置页自定义连续失败的上限,范围支持 1 到 100 次,也可自定义发送的 continue 消息文本。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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 github:haochi72/dsh-auto-continue-429

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

READMEREADME

dsh-auto-continue-429

DeepSeek Harness(DSH)插件:遇到 429 限流 / 配额耗尽自动 continue 恢复对话,20 次连续失败才停,成功一次即清零。


✨ 功能特色

能力 说明
🔄 自动 Continue dsh-llm-retry 的 step 级重试耗尽后,自动发送 continue 开启新 turn
🚦 识别 429 与配额耗尽 监听 RATE_LIMIT(429)与 QUOTA(insufficient_quota 等)两类错误码
🎛 对话框底部开关 输入区底部「开/关」滑动开关,点击即切换,无需去设置页
⚙ 设置页主开关 「启用插件」主开关:停用后插件整体失效,对话框不再显示开关按钮(两开关互不联动)
🧮 连续失败计数 每会话独立计数:连续失败 20 次只停止该会话,任何一次 turn 正常结束即清零,互不影响
✋ 手动干预即清零 你主动发送任意消息后,所有会话积攒的失败计数全部归零(自动 continue 不算干预)
⏱️ 随机 1~2 秒退避 每次 429 后随机等待 1~2 秒发送 continue(不随重试次数增长)
🤫 无计数显示 开关条不显示当前失败次数;达到上限该会话自动停止,再发一条消息即清零
💾 设置持久化 开关状态/隐藏状态保存在 ~/.dsh/auto-continue-429.json

UI 交互示例:

┌─────────────────────────────────────────┐
│                                         │
│   对话内容                               │
│                                         │
│  [🟢429] [开]      ← 对话框底部开关条    │
│  (设置页停用插件后,此开关条自动隐藏)     │
└─────────────────────────────────────────┘

📦 安装

方式 1:已发布到 npm(发布后)

cd ~/.dsh/profiles/web
pnpm add dsh-auto-continue-429

方式 2:从 GitHub 安装

dsh plugin --profile web add github:haochi72/dsh-auto-continue-429

方式 3:本地开发链接

cd ~/.dsh/profiles/web
pnpm link /path/to/dsh-auto-continue-429

然后在 ~/.dsh/profiles/web/package.json 的 dsh.profile.bundles 数组末尾加上:

"dsh-auto-continue-429"

重启 DSH Desktop 生效。


🚀 使用

1. 确认加载成功

重启 DSH 后在对话框输入区底部,应该出现一个胶囊形的 「429」开关条(绿色=已开启)。

2. 控制开关

操作 效果
点击对话框底部的开关条 切换快捷开关(quickOn),绿色=开,灰色=关
设置页 → 429 自动 Continue 卡片 →「启用插件」 切换主开关(enabled),与对话框快捷开关互不联动
在设置页停用插件 对话框底部的开关条自动隐藏;重新启用后恢复显示
设置页 →「连续失败上限」 自定义失败多少轮后停止自动 continue(1-100)

3. 遇到 429 / 配额耗尽时的行为

LLM 返回 429 或配额耗尽(insufficient_quota)
  ↓
dsh-llm-retry 在当前 step 内重试 2 次(内置)
  ↓
重试耗尽 → turn 以 error(RATE_LIMIT / QUOTA) 结束
  ↓
★ 本插件介入
  ↓
等 1~2 秒(随机)→ 发送 "continue" → 新 turn 启动 ✅
  ↓
(如果又 429)
  ↓
等 1~2 秒(随机)→ 发送 "continue" → …(重复到第 20 次)
  ↓
如果某次 turn 正常结束(reason.kind ≠ error)→ 计数归零 🎉
  ↓
连续 20 次全失败 → 停止,等待手动介入

⚙️ 配置(可选)

插件提供以下 Schema 配置项(在 cordis.patch.yml 或 profile 配置中声明):

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-lab 下一个 Next dsh-anydoc-markdown →