DeepSHPlugins
dsh-dual-auto 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-dual-auto

工具與整合TypeScriptMIT

雙模型 Auto 路由外掛:低成本模型直返 / 高成本模型升級 + 逃逸學習閉環(直返答錯自動學習指紋,同指紋下次強制升級),狀態持久化並與 Python ModelRouter 互通。

2 Starslengquan88 更新時間 2026-08-25
訪問 GitHub 倉庫
dsh-dual-auto 專案預覽

專案介紹

中文

雙模型 Auto 路由外掛:低成本模型直返 / 高成本模型升級 + 逃逸學習閉環(直返答錯自動學習指紋,同指紋下次強制升級),狀態持久化並與 Python ModelRouter 互通。

English

Dual-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), persisted and interoperable with the Python ModelRouter.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
lengquan88
倉庫
lengquan88/dsh-dual-auto
GitHub Stars
2
Forks
0
開發語言
TypeScript
許可證
MIT
最近推送
2026-08-25
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

54/ 100
維護活躍
89
文件與實用資訊
67
生態關注度
14
安裝便捷訊號
100
專案宣告訊號
100

近 17 天仍在更新;關注度尚低(2);標準命令一鍵安裝。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add @lengquan88/dsh-dual-auto

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

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

ToolPurpose
dual_model_routeSix-criteria routing decision (length / context / domain coverage / rule conflict / confidence / novelty → six labels). Fingerprints that escaped once are force-upgraded.
dual_model_runDecision + 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_markMark 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

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案