鱼皮AI导航
鱼皮AI导航
  • 主页
  • 社区
  • AI工具
  • AI知识库
  • AI提示词
  • MCP
  • Skills
  • AI学习资源
  • AI资讯
  • GitHub开源
登录/注册

daruma#dsh-daruma

LLM 订阅抽风时的自动故障转移与备用渠道:在内置重试放弃后接管,对连续 429/5xx 或终止性错误跳闸持久化断路器,把下一个请求切到链上的其他渠道,并配有 Web 面板手动挑选备用渠道。

模型接入
访问 GitHub
文档README

dsh-daruma

Daruma resilience plugin for DeepSeek Harness — detects model-request failures and fails over to another channel to keep long tasks alive.

How it works

dsh-daruma is a native Cordis plugin. It sits downstream of the in-box dsh-llm-retry on the agent/request-error waterfall: retry owns the same-channel retry budget, and when it gives up it delegates (via next()) to daruma. daruma then:

  1. records the failure against the current channel's circuit-breaker state;
  2. when the channel trips (failureBudget consecutive failures, or a terminal code like QUOTA / INVALID_CREDENTIAL / CONTEXT_WINDOW_EXCEEDED), it arms the next routable channel and returns { kind: 'retry' };
  3. on the retry turn, the agent/request waterfall swaps the request config onto the armed channel.

Channel health persists to ~/.dsh/daruma/channel-health.json, so a tripped channel stays cooled-down across restarts.

Visible failover notices in the conversation

When a channel switch happens mid-turn, the web client renders a small daruma row inside the conversation flow (anchored at the failover event, right where it occurred): mt::glm-5.3 failed (RATE_LIMIT) → trying deepseek-official::deepseek-v4-flash, with the budget usage (failover 2/3 · turn 3 step 1) on hover.

This works through the host's plugin-extensible conversation engine: the client registers a definition claiming daruma/failover session events plus a keyed renderer for its node kind, mirroring how in-repo retries render. The notice is live-only — out-of-repo session events are not yet persisted by the harness, so rows do not survive a page reload or a resumed session.

Install

▼
bash
复制代码
dsh plugin --profile web add dsh-daruma # from npm # or from a checkout: dsh plugin --profile web add link:./packages/daruma-core link:./packages/dsh-daruma

Configure

Add a dsh-daruma entry to your profile's cordis.patch.yml (or rely on the bundle defaults) with an ordered failover chain:

▼
yaml
复制代码
- id: dsh-daruma name: dsh-daruma config: channels: - provider: mt model: deepseek-v4-pro - provider: mt model: glm-5.2 failureBudget: 3 cooldownMs: 30000 giveUpBudget: 8

Each channel is a { provider, model } pair reachable by the LLM adapter registry (same names you use in the settings model selector).

Development

▼
bash
复制代码
pnpm --filter dsh-daruma build pnpm --filter dsh-daruma test
模型接入

快捷安装

复制到终端去安装插件

dshplugin--profilewebaddgithub:SISCHOI/daruma#path:/packages/dsh-daruma

温馨提示

装插件等于在本机跑第三方代码,权限与你相同,能读文件、用凭据、访问网络,工具审批管不到。请只装可信来源,并尽量锁定 commit。

站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
🔥热门工具
朱雀AI检测朱雀AI检测
朱雀AI检测助手朱雀AI检测助手
LovartLovart
老鱼简历老鱼简历
WritePass官网WritePass官网
面多多面多多
CursorCursor
星月写作星月写作
零感AI零感AI
墨得问题墨得问题
dsh 插件推荐
dsh-subscriptions
通过 OAuth 将 ChatGPT Codex、Claude、Grok 与 Antigravity 订阅注册为 DeepSeek Harness 的 LLM 提供方,无需为其配置 API Key。
dsh-zhipu-toolkit
智谱 BigModel GLM 双端点模型目录(Coding Plan 与普通 API),支持实时模型发现与实测校准的思考档位映射,提供凭据、端点与默认推理档的可视化设置卡片。
dsh-qwen38-compaction-fix
针对 NInfer 托管的 qwen3.8-27b 网关的压缩修复:在 dsh 上下文压缩与会话标题调用中关闭思考,避免 xhigh 推理耗尽全部输出预算;同一思路适用于其他启动方式,本包仅面向 NInfer。
dsh-model-sync
一键同步 / 自动同步供应商模型列表,与 /v1/models 保持一致。
dsh-openrouter-provider-advisor
按量化、速度、缓存重度价格、上下文和可用率为当前 DSH 模型推荐 OpenRouter 供应商,并支持一键切换以帮助降低 token 成本。