Neptune810/dsh-model-router ↗★ 0

@neptune810/dsh-model-router

Flash-only reasoning-effort routing for DeepSeek Harness: classifies each step by its shape and sets the DeepSeek flash model's reasoning effort to match. The model never changes; effort max is opt-in. 适合使用 DeepSeek Flash 模型,希望通过自动调节推理努力度来优化成本与效果的用户。

Package
@neptune810/dsh-model-router
Compatibility
Unverified
Version
0.3.0
License
MIT
Last updated
Sep 15, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Neptune810/dsh-model-router

Configuration

The plugin reads its config from its row in the profile's cordis.patch.yml:

- id: model-router
  config:
    mode: auto            # auto | off
    model: deepseek-flash
    allowMax: false       # true enables max for auto routing and manual selection alike
    maxFallback: high     # where max collapses when allowMax is false
    escalateOnErrors: 2   # failed tool results needed to step up
    escalateOnRepeats: 3  # identical retries needed to step up
    scoring:
      turnPerPoint: 0     # raise this to let long sessions weigh more (not recommended)
    routes:
      trivial:     { effort: off }
      standard:    { effort: low }
      engineering: { effort: high }
      hard:        { effort: max }

DSH_MODEL_ROUTER=off|auto overrides mode at boot.

KeyDefaultMeaning
modeautooff passes every request through, except the manual-max clamp
providerdeepseek-officialonly this provider is ever touched
modeldeepseek-flashthe one model this plugin drives
familyPattern^deepseek-(flash|v4)conversation models it may take over; a pro session is pulled back to flash
allowMaxfalsewhether max is reachable at all
maxFallbackhighwhat max collapses to
demoteManualMaxtruealso demote a manually selected max
leaveImageStepstruesteps carrying images keep the caller's model
imagePolicykeepset to flash to route image steps too (the flash model has native vision)
escalateOnErrors2failure-evidence threshold
escalateOnRepeats3repeated-call threshold
maxEscalations2most classes a single task may climb
carryUnresolvedtruecarry one step up from an unresolved failure