插件目录 / Developer / dsh-dual-auto
dsh-dual-auto
未验证 lengquan88
功能简介
Dual-model auto-routing plugin for DeepSeek Harness: low-cost direct / high-cost upgrade + escape-learning closed loop
未验证 — 尚未实测
Dual-model auto-routing plugin for DeepSeek Harness: low-cost direct / high-cost upgrade + escape-learning closed loop 尚未验证——请自行安装测试。
「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-dual-auto
Dual-model auto-routing plugin for the DeepSeek Harness (dsh).
Low-cost direct / high-cost upgrade with an escape-learning closed loop.
Install
pnpm add @lengquan88/dsh-dual-auto
Enable
Add one row to your profile's cordis.patch.yml:
- insert:
- id: dual-auto
name: '@lengquan88/dsh-dual-auto'
Restart dsh web. The tools dual_model_route, dual_model_run, anddual_model_mark become available in every session.
Tools
| Tool | Purpose |
|---|---|
dual_model_route |
Six-criteria routing decision (length / context / domain coverage / rule conflict / confidence / novelty → six labels). Fingerprints that escaped once are force-upgraded. |
dual_model_run |
Decision + real model call: direct → deepseek-v4-flash, upgrade → deepseek-v4-pro (auto-degrade to flash on failure, marked degraded). Probe tasks auto-validate against a gold set — wrong direct answers trigger escape learning. |
dual_model_mark |
Mark the quality of a direct result. correct=false learns the fingerprint and rewrites the disk log marker; the same fingerprint is force-upgraded next time. |
Persistence
State persists to output/dsh_router_{fingerprints,stats}.json anddsh_router_decision_log.jsonl — interoperable with the project's Pythondao/model_router.py (v2 dict fingerprints load directly).
Links
- npm: https://www.npmjs.com/package/@lengquan88/dsh-dual-auto
- Source mirror (atomgit): https://atomgit.com/guaikepa/zhonghua/tree/main/dsh-dual-auto
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-dual-auto」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:lengquan88/dsh-dual-auto Headless(CLI)profile:
dsh plugin --profile headless add github:lengquan88/dsh-dual-auto 实测报告
尚未 L3 验证——若已跑过,见下方失败备注。