Introduction¶
When running long-running tasks in DeepSeek Harness (DSH), a conversation turn may end abnormally due to 429 rate limiting, quota exhaustion, or empty model responses. The built-in dsh-llm in DSH retries a few times within a single step, but once step-level retries are exhausted, the entire turn stops there, requiring a manual “continue” message to resume the task.
The community plugin dsh-auto-continue (maintained by spix18) addresses this: after a turn ends due to a recoverable error class, it waits for a moment and sends continue on your behalf, allowing long tasks to self-recover within the rate limit window instead of hard-stopping.
What is this¶
dsh-auto-continue is an Auto-continue workflow plugin for DSH. Its positioning is: when a turn fails due to rate limiting, quota issues, empty responses, or custom error codes, it automatically initiates a follow-up turn with continue after dsh-llm step-level retries have been exhausted. It repeats this until the turn succeeds or a configurable consecutive failure limit is reached.
The plugin is released in the standard Cordis dual-half form (npm package name dsh-auto-continue, current README version 0.4.7, license MIT). Community directory page: skillhub.cn/plugins/spix18/dsh-auto-continue; Source code and docs: github.com/spix18/dsh-auto-continue.
Core Features¶
Turn-level Auto Continue¶
The plugin listens for turn/end events. If the ending reason is a retryable error (or an extended error code you define), it backs off for a random 1–2 seconds (a fixed interval, not exponential growth, to slide past the rate limit window), and then sends a continue message via the agent’s followup to start a new turn.
Built-in always-matched error codes include: RATE_LIMIT (429), QUOTA, ACCOUNT_QUOTA, EMPTY_RESPONSE. These match DSH documentation, matching LlmFailure.code exactly without parsing error text.
SERVER, TIMEOUT, and TRANSPORT are not built-in auto-continue targets: dsh-llm already retries these within the step, and a turn-level continue would stack retries.
Consecutive Failure Limit & Session Isolation¶
Consecutive auto-continue failures within the same session accumulate a count; any normal turn end or a manual message sent by you resets the count to zero. Once the Consecutive failure limit (default 20, configurable 1–100) is reached, auto-continue stops, waiting for your intervention. Other sessions are unaffected.
Custom Error Codes¶
In the settings page, you can append comma- or newline-separated error codes; matching performs a recursive search on the entire error object, making it easy to capture vendor codes nested in cause.
UI & Persistence¶
- A quick switch pill at the bottom of the input area composer allows temporary enable/disable without leaving the conversation.
- The sidebar Settings → Auto-Continue is rendered via the official DSH slot API, without relying on DOM scraping.
- Settings are written to
~/.dsh/dsh-auto-continue.json.
The browser half registers in conversation.input.left (list slot) and settings.section; the Host half provides /api/dsh-auto-continue/* routes for the UI to poll status (approx. every 2 seconds, pausing when the tab is hidden).
Installation & Activation¶
Environment requirements: Node ≥ 20; DSH ≥ 0.2.0-rc.2.
First, install; then restart DSH (the browser side loads at startup); finally, open settings in the sidebar.
# 1. Install to web profile
dsh plugin --profile web add dsh-auto-continue
# 2. Restart DSH
# 3. Open Settings → Auto-Continue in the sidebar to configure as needed
If using the headless profile, replace --profile web with --profile headless (as per the original README example).
After installation, a quick switch appears at the bottom of the composer; default parameters are ready to work. You can set the Consecutive failure limit to 1–100 and add extra error codes as needed.
Configuration Guide¶
Settings Page¶
| Control | Function |
|---|---|
| Enable plugin | Master switch; when off, hides the pill and stops all auto-continue |
| Show the quick switch in the composer | Only hides the pill; background auto-continue remains active |
| Consecutive failure limit | 1–100, default 20 |
| Additional auto-continue error codes | Extra error codes, separated by commas or newlines |
Profile / Patch Optional Overrides¶
You can declare this in cordis.patch.yml or profile configuration:
- id: auto-continue
name: dsh-auto-continue
config:
maxRetries: 20 # How many consecutive failures before giving up
continueMessage: "continue" # Text sent in the follow-up turn
errorCodes: ["invalid_request_error"]
Typical Workflow¶
Understanding the plugin’s position in the stack helps determine whether to enable auto-continue:
LLM returns 429 / Quota exhausted / Empty response
↓
dsh-llm step-level retry (built-in ~5 times, 500ms → 10s backoff)
↓
Retries exhausted → turn ends with reason.kind === 'error' or 'max-tokens'
↓
dsh-auto-continue intervenes
↓
Random wait 1–2 s → send "continue" → new turn begins
↓
Repeat if still failing, until success or consecutive failure limit reached
For long script generation, multi-step agent workflows, or connecting to APIs prone to 429s, this layer of “last line of defense” can reduce task interruptions caused by transient rate limiting. If errors belong to server/timeout/transport classes and are already being retried at the step level, you usually don’t need this plugin to stack another layer of continue.
Applicable Scenarios & Notes¶
Suitable for: Users developing or running agents within a DSH web (or headless) profile who frequently encounter recoverable 429s, quota limits, or empty responses and want to reduce manual “continue” clicks.
Notes:
- The plugin runs with the same permissions as the DSH process; please read the source code and the MIT license before installing to assess whether to include it in your environment.
- The community directory skillhub.cn has no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem emphasizes “everything is a plugin”, and this package is a community-maintained workflow extension.
- Auto-continue consumes extra turns and quota; the consecutive failure limit is set to avoid infinite loops. Please adjust the limit and custom error codes based on vendor rate limiting policies.
- The README provides local checkout and
node test/run.mjsverification methods; for daily installation, use the npm package and thedsh plugin addcommand mentioned above.
Conclusion¶
dsh-auto-continue supplements DSH step-level retries with a layer of turn-level recovery: it identifies failure classes like rate limits, quotas, and empty responses, automatically sends continue after a backoff, and offers control over behavior and limits via the composer quick switch and settings page.
- Directory page: https://www.skillhub.cn/plugins/spix18/dsh-auto-continue
- GitHub: https://github.com/spix18/dsh-auto-continue