deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
Infinite model-request retry for DeepSeek Harness, with exponential backoff and relay/proxy failure recovery.
为 DeepSeek Harness 提供模型请求无限重试、指数退避和不稳定中转站/代理恢复能力。
dsh-reconnect is a Host-side plugin for DeepSeek Harness (DSH). It retries failed model requests so temporary network failures do not interrupt an agent turn or a long-running task.
The plugin listens to the DSH agent/request-error waterfall event. After the built-in finite retry handler gives up, the Agent loop sends the same request again until it succeeds or the user stops the turn.
| Condition | Behavior |
|---|---|
QUOTA (insufficient balance or exhausted quota) |
Do not retry |
| Any other model-request error | Retry indefinitely until success or cancellation |
Permanent authentication, configuration, or context errors may continue retrying. Stop the current turn manually when such an error cannot recover.
1s -> 2s -> 4s -> ..., capped at 60sproviderRetryAfterMs when available, also capped at 60sllm/retry events so the Harness conversation UI shows the continuous retry count, ∞ limit, countdown, and failure reasonThe package is platform-independent. Choose one of the following methods.
dsh-reconnect-main directory as the plugin package.Windows PowerShell:
git clone https://github.com/MistRain-1/dsh-reconnect.git "$HOME\dsh-reconnect"
macOS:
git clone https://github.com/MistRain-1/dsh-reconnect.git "$HOME/dsh-reconnect"
Linux:
git clone https://github.com/MistRain-1/dsh-reconnect.git "$HOME/dsh-reconnect"
Windows PowerShell:
Invoke-WebRequest -Uri https://github.com/MistRain-1/dsh-reconnect/archive/refs/heads/main.zip -OutFile dsh-reconnect.zip
Expand-Archive -Path dsh-reconnect.zip -DestinationPath .
macOS:
curl -L https://github.com/MistRain-1/dsh-reconnect/archive/refs/heads/main.zip -o dsh-reconnect.zip
unzip dsh-reconnect.zip
Linux:
wget https://github.com/MistRain-1/dsh-reconnect/archive/refs/heads/main.zip -O dsh-reconnect.zip
unzip dsh-reconnect.zip
After downloading, register the package in the DSH Cordis composition:
- insert:
- id: reconnect
name: dsh-reconnect
Restart DSH after installing a persistent plugin package.
timer Service and agent/request-error waterfall eventdsh-reconnect 是一个 DeepSeek Harness (DSH) Host 端插件。模型请求失败时,插件会自动重新发送请求,避免临时网络故障、中转站不稳定或服务端波动导致 Agent 回合中断。
插件监听 DSH 的 agent/request-error 瀑布事件。内置有限重试策略放弃后,Agent 循环会重新发送同一个请求,直到请求成功或用户停止回合。
| 情况 | 处理 |
|---|---|
QUOTA(余额不足或额度耗尽) |
不重试 |
| 其他模型请求错误 | 无限重试,直到成功或取消 |
永久性的凭据、配置或上下文错误可能持续重试。遇到无法恢复的错误时,请手动停止当前回合。
1s -> 2s -> 4s -> ...,最长等待 60sproviderRetryAfterMs,优先使用该等待时间,同样封顶 60sllm/retry 事件,Harness 会话界面显示连续重试次数、∞、倒计时和错误原因本插件与操作系统无关,可以选择以下任意一种方式下载。
dsh-reconnect-main 目录作为插件包使用。Windows PowerShell:
git clone https://github.com/MistRain-1/dsh-reconnect.git "$HOME\dsh-reconnect"
macOS:
git clone https://github.com/MistRain-1/dsh-reconnect.git "$HOME/dsh-reconnect"
Linux:
git clone https://github.com/MistRain-1/dsh-reconnect.git "$HOME/dsh-reconnect"
Windows PowerShell:
Invoke-WebRequest -Uri https://github.com/MistRain-1/dsh-reconnect/archive/refs/heads/main.zip -OutFile dsh-reconnect.zip
Expand-Archive -Path dsh-reconnect.zip -DestinationPath .
macOS:
curl -L https://github.com/MistRain-1/dsh-reconnect/archive/refs/heads/main.zip -o dsh-reconnect.zip
unzip dsh-reconnect.zip
Linux:
wget https://github.com/MistRain-1/dsh-reconnect/archive/refs/heads/main.zip -O dsh-reconnect.zip
unzip dsh-reconnect.zip
下载完成后,将插件加入 DSH 的 Cordis 组合:
- insert:
- id: reconnect
name: dsh-reconnect
安装持久插件包后需要重启 DSH。
timer Service 和 agent/request-error 瀑布事件MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。