dsh-retry-boost
让 DeepSeek Harness 自动重试商汤 429/QUOTA 等瞬时网关故障直到任务完成——启动时给所有 llm-pi-ai provider 热注入加固版 retryPolicy,再也不用手动发「继续」。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hhb1028/dsh-retry-boost说明文档
阅读完整 README ↗配置项
在合并进 profile 的 cordis.patch.yml roster 行(或 DSH 的插件配置界面)里调整:
| 键 | 默认值 | 含义 |
|---|---|---|
strategy | fill | fill = 只处理没有显式 retryPolicy 的 provider;boost = 对显式配置的也合并缺失错误码并抬高上限;force = 全部替换为插件策略 |
mode | normal | normal = 有界重试;always = 无限重试(⚠️ 慎用,永远重试下去) |
maxRetries | 50 | normal 模式下的重试次数上限 |
initialDelayMs | 1000 | 首次退避延迟 |
maxDelayMs | 60000 | 退避上限 |
jitterRatio | 0.2 | 抖动比例(0–1) |
retryableCodes | 上面 8 个码 | 需要重试的失败码 |