Skip to main content
A

dsh-retry-and-switch

anonex2/dsh-retry-and-switch

Retries transient model-request failures per session, optionally cycling through an ordered provider, model, and reasoning-effort pool.

Install

dsh plugin --profile web add github:anonex2/dsh-retry-and-switch

README

DSH Retry & Switch

Per-session automatic retries and model switching for DeepSeek Harness. Keep retrying the current route or rotate through an ordered pool of providers, models, and reasoning strengths.

简体中文

Install

dsh plugin --profile web add dsh-retry-and-switch

View on npm · Source code · DSH plugin catalog

Features

  • Enable or disable retries independently for each conversation session.
  • Configure the delay between attempts (default: 3 seconds) and an optional retry limit (blank means unlimited).
  • With an empty model pool, retry the session's current provider, model, and reasoning strength.
  • Add models from configured providers to an ordered pool. Each entry can use the model's advertised reasoning strength or the provider default.
  • See retry progress in a brief on-screen toast. It is not added to the conversation and cannot affect model context.

Configure

Open a conversation and select the circular-arrow control in the session header. Enable Retry & Switch, set the delay and optional retry limit, and optionally select models for the pool. The checked models are tried in the order shown. A route is the combination of provider, model, and reasoning strength.

When the pool is empty, each failed request retries the exact route that failed. With a configured pool, if the failed route matches entry A, the first retry uses A again, then advances through B, C, and wraps to A. If the failed route is not in the pool, retries start at the first entry.

Data and limitations

  • Settings are stored separately for each session using DSH storage.
  • Retry notices are UI-only; they are not user messages, model context, or session history.
  • Recent notice status is held temporarily in Host memory, bounded, and expires. A disconnected page or Host restart can miss a notice.
  • The model catalog comes from providers configured in DSH. The plugin does not copy credentials, prompts, or model responses into notices.
  • Retry & Switch handles transient model-request failures while DSH is running. It does not recover a crashed Host, retry tool failures, or override cancellation. Retry chains reset when a step or turn ends.

Troubleshooting

If the control is missing or unavailable, make sure the plugin is enabled in the active DSH profile and check the Host startup log for import or activation errors. After installing or updating, refresh the page; Host-side changes may require your usual DSH restart procedure.

When reporting a problem, include your DSH and plugin versions plus a sanitized error message. Do not attach credentials, session logs, or private conversation content.

Related plugins