morphlinglan/dsh-llm-fallback

morphlinglan★ 0JavaScriptLast synced: 2026-08-16

Open on GitHub

DeepSeek Harness plugin: provider/model fallback chain for the agent loop.

README excerpt

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 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): 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 …

View full README on GitHub →
Agentsdsh-pluginagent

Category