omdsh-dev/dsh-llm-fallbacks ↗★ 6
dsh-llm-fallbacks
Automatic provider/model fallback chains for DeepSeek Harness agents when LLM requests keep failing (retry exhausted, auth, quota, rate limit)
AI Analysis
核心用途是保障 Agent 任务的执行稳定性。适合运行长周期、关键任务,需要防止因单一 API 故障导致任务中断的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:omdsh-dev/dsh-llm-fallbacksREADME
Read the full README ↗Minimal configuration
Add a fallbacks: section to the dsh settings document (default $DSH_HOME/settings.yaml):
fallbacks:
enabled: true # feature switch; defaults to false — set explicitly to enable
rootChain: # block 1: root agent's chain, tried in order after the primary model fails
- anthropic/claude-3-5-sonnet
- openai/*
roles: # block 2: declare role entities first, then let rules reference them
list:
- id: reviewer # unique id (/^[a-z0-9-]{1,32}$/); "inherit" is reserved
persona: Code-review subagents
chain:
- openai/gpt-4o-mini
fallback: inherit-root # default: role chain, then append rootChain
rules:
- origin: subagent # all subagents → reviewer role (own chain + inherited root)
role: reviewer
No rule match → the built-in inherit → rootChain. enabled defaults to off — with no chains configured the plugin is a complete no-op. Full reference (role entities, fallback strategies, rules, selectors, preset roles) → docs/configuration.md.
Upgrade note (behavior change): an existing
fallbacks:section without an explicitenabledkey resolves tofalseafter upgrading — addenabled: trueto keep the plugin active.