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 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目