syncended/deepseek-harness-retry
Adds configurable retries with exponential backoff for transient model failures, plus recovery of provably unfinished work after a restart.
Handles the model failures that succeed on a second attempt. It joins the Host agent/request-error waterfall, lets DSH's own recovery policies decide first, and only then applies a bounded exponential-backoff fallback for the provider-neutral error codes you configure — two retries after an ordinary original failure by default, and up to five with a longer delay for the explicit Codex servers are currently overloaded failure. Waits are abort-aware, so user cancellation and plugin disposal stop them; provider routes are matched as exact strings for allow- and denylists, not as prefixes or patterns; and permanent failures such as AUTH, INVALID_REQUEST, MISSING_CREDENTIAL, UNKNOWN_MODEL and context overflow are not retried, because repeating those costs money and repeats side effects. Retries appear as standard non-surface llm/retry and llm/retry-started events and never enter model-visible history. Interrupted-session recovery is deliberately narrow: after a crash or restart it continues only provably unfinished work, fails closed on a completed assistant message, a manual abort, a tool call missing a durable result, a subagent or an existing inbox item, and opens one deterministic continuation turn over the persisted history rather than pretending the old response stream survived.
Install
dsh plugin --profile web add -w @syncended/dsh-retryThe README's line, -w included — some pnpm-backed profiles need the workspace-root flag, and the README says so in the same breath. The package declares a DSH bundle, so the CLI inserts the Host plugin as model-error-retry and no manual plugin entry is required; restart the selected profile after installing or upgrading. Defaults apply immediately; to customize, edit the existing model-error-retry row in $DSH_HOME/profiles/<profile>/cordis.patch.yml rather than adding a duplicate row with the same id.
Compatibility
Node.js 20 or newer, and DeepSeek Harness 0.1.0-rc.7+ or 0.1.1-rc.2+. It requires the built-in @deepseek-ai/dsh-llm-retry plugin and tells you not to remove it, because this plugin extends those policies rather than replacing them. 0.2.3 supports DSH 0.1.5-rc.2 session snapshots while retaining the older session event API, and the upgrade note is specific: if retryable errors end with Cannot read properties of undefined (reading 'length') instead of scheduling a retry, you are on 0.2.2 or earlier. There is no dedicated UI, so session events and Host logs are the authoritative diagnostics.
Details
- Repo: syncended/deepseek-harness-retry
- Category: Infrastructure & Deployment
- Stars: 0
- Version: 0.2.3 (npm)
Alternatives
steven-kid/deepseek-harness-desktop · sorsama/deepseek-harness-relay · feiyang-dev/DeepSeek-Harness-Desktop