dsh-dual-auto
Manifest validDual-model auto-routing plugin: low-cost direct / high-cost upgrade with an escape-learning closed loop (wrong direct answers auto-learn fingerprints, force-upgrading the same fingerprint next time),
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, and
dual_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 and
dsh_router_decision_log.jsonl — interoperable with the project's Python
dao/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
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.2 | — | — |
| 0.1.0 | — | — |
| 0.1.1 | — | — |
Similar plugins
by andrepontesmelo
DSH plugin: virtual model ids backed by pluggable routing algorithms (priority, round-robin) over real provider candidates, with transparent failover.
★ 0
MIT
JavaScript
Sep 11, 2026
dsh plugin --profile web add @andrepontesmelo/dsh-model-routerby BruceLanLan
Two-tier model routing: a strong tier plans, advises and reviews while a cheap tier implements, with plan-mode-aware auto routing, a high-impact escalation guard, failure auto-escalation, and subagent
★ 6
MIT
JavaScript
Sep 3, 2026
dsh plugin --profile web add dsh-tier-routerby CARVIN94
An AI routing gateway that runs as a DSH plugin. Adds a Routing System sidebar panel for suppliers, account pool, fallback combos and API keys, and serves an OpenAI-compatible endpoint at http://local
★ 7
MIT
TypeScript
Sep 15, 2026
dsh plugin --profile web add dsh-router-coreby ringoage
The visual, manual subagent-model picker for DeepSeek Harness — predictable per-session routing with global coverage of every in-process subagent path, complementary to auto-routing plugins.
★ 0
MIT
JavaScript
Aug 16, 2026
dsh plugin --profile web add dsh-subagent-model-pickerAutomatic model-tier routing for DeepSeek Harness: one user instruction enters, one tier decision comes out — complex intent is planned on the strong tier and implemented on the cheap tier, simple int
★ 0
↓ 796/wk
dsh plugin --profile web add dsh-autotierAuto-switch DeepSeek models: routes every request to the vision model when images are present, to the pro model for complex tasks, and to the fast model otherwise; includes a switch_model tool for man
★ 0
dsh plugin --profile web add dsh-deepseek-model-router