dsh-llm-fallback
DiscoveredDeepSeek Harness plugin: provider/model fallback chain for the agent loop.
dsh-llm-fallback
A DeepSeek Harness plugin that adds a provider/model fallback chain to the agent loop.
When a model request fails with an eligible error code (e.g. RATE_LIMIT from a 429, or QUOTA), instead of only retrying the same model, the plugin transparently moves to the next provider/model in the configured chain.
Install
dsh plugin --profile web add github:morphlinglan/dsh-llm-fallback
Then restart dsh web if it is already running.
Usage
Add an insert entry to the profile's cordis.patch.yml (or rely on the bundle default and configure it through your profile patch layer):
- insert:
- id: dsh-llm-fallback
name: dsh-llm-fallback
config:
codes:
- RATE_LIMIT
- QUOTA
scope: turn
fallbacks:
# Replace these with your own backup providers/models.
- provider: backup-provider-a
model: backup-model-a
- provider: backup-provider-b
model: backup-model-b
The providers/models above are placeholders only. Replace them with providers and models you actually have access to.
Config
| Field | Type | Default | Description |
|---|---|---|---|
codes | string[] | ["RATE_LIMIT", "QUOTA"] | Failure codes that trigger a fallback. |
fallbacks | { provider, model }[] | [] | Ordered chain of backup providers/models. |
scope | "step" | "turn" | "session" | "turn" | How long the sticky fallback selection persists. |
Scope behavior
step: each step starts on the primary model; only retries within one step walk the chain.turn: once a fallback is selected, it is reused for the rest of the current turn; the next turn tries the primary again.session: once a fallback is selected, it stays selected until the chain is exhausted; best when the primary is durably down.
License
MIT
Comments
Loading…
Similar plugins
by aaravarr
DeepSeek Harness (DSH) plugin — a subagent_with_model tool plus a live multi-panel subagent viewer.
★ 3
↓ 85/wk
MIT
JavaScript
Aug 20, 2026
dsh plugin --profile web add @aaravarr/dsh-subagent-maxby AGSQ11
A small DeepSeek Harness plugin that shows the actual provider/model used by a subagent directly inside the existing native subagent tool-call row.
★ 0
MIT
JavaScript
Aug 21, 2026
dsh plugin --profile web add dsh-subagent-model-visibilityby SeverusZh
Subagent Director: per-subagent LLM provider/model selection with role templates for DeepSeek Harness (dsh plugin)
★ 24
↓ 860/wk
MIT
TypeScript
Nov 4, 2026
dsh plugin --profile web add dsh-plugin-subagent-directorby YixiangTang
DeepSeek Harness’s plugin for launching agents in parallel
★ 0
MIT
JavaScript
Oct 30, 2026
dsh plugin --profile web add dsh-tool-subagent-batchby builtin-pb
The single plugin you need for DSH — build, test, diagnose, and maintain DeepSeek Harness plugins and core.
★ 7
MIT
JavaScript
Sep 19, 2026
dsh plugin --profile web add dsh-developerby cyanseek
Agent-first DeepSeek Harness plugin intelligence: verify existing plugins, identify missing capabilities, and generate build-ready briefs.
★ 7
MIT
JavaScript
Oct 27, 2026
dsh plugin --profile web add dsh-landscape