본문으로 건너뛰기
L

dsh-dual-auto

lengquan88/dsh-dual-auto

듀얼 모델 자동 라우팅 플러그인: 저비용 직접 처리 / 고비용 업그레이드와 escape-learning 폐루프(직접 처리의 오답이 자동으로 지문을 학습하여 다음번 같은 지문은 강제 업그레이드)를 제공하며, 영속화되고 Python ModelRouter와 상호 운용됩니다.

설치

dsh plugin --profile web add github:lengquan88/dsh-dual-auto

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, 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).

License

MIT

관련 플러그인