跳过主要内容
Y

dsh-model-router

yunxiao11xie/dsh-model-router

串行模型编排层:内置国内现役模型档案(DeepSeek、GLM、豆包、混元、MiniMax、MiMo、Kimi、千问、GPT)的 delegate 工具。主代理拆解任务、按子任务特征自选模型并必填选型理由、串行等待结果、宽松兜底到默认模型;每条路由都先经会话模型选择策略校验。需在「插件 → Subagent → Model selection」勾选要用的路由(仅对新会话生效)并配置好对应模型的 provider。与其他 model-router 插件的插件 id 相同,只装其中一个。

安装

dsh plugin --profile web add github:yunxiao11xie/dsh-model-router

README

dsh-model-router

A serial model-orchestration layer for the DeepSeek Harness: a delegate tool that lets the main agent split a request into subtasks and hand each one to the model that fits it best, chosen against a built-in catalog of current Chinese-market models.

The main agent keeps the orchestrator role. Each delegate call starts a child agent on the chosen route with a fresh context, waits for its result, and returns it inline — one subtask at a time, serially, so results are reviewed before the next step.

Requirements

  • DeepSeek Harness with the Web UI. The package declares a dsh.bundle manifest, is Host-only (no browser half), and its engines.dsh is >=0.2.0-rc.1 || >=0.2.1-rc.1 || >=0.2.2-rc.1.
  • Model selection must be allowed by the Session policy: open Plugins → Subagent → Model selection, enable it, tick the routes you want, then start a new Session (the policy is recorded per new Session). Without a recorded policy, only the parent Session's current route may be used — delegate refuses and says exactly that.

Install

dsh plugin add yunxiao11xie/dsh-model-router

Built-in catalog (calibrated 2026-11)

ModelProviderFits
deepseek-flash (V4.1-Flash)deepseek-accountfrontend, UI, fast iteration, vision
deepseek-v4-prodeepseek-accounthard reasoning, complex analysis
glm-5.3zai-coding-cnbackend, engineering rigor, review
glm-5.3-flashzai-coding-cnmultimodal, fast frontend work
doubao-seed-evolvingvolcengineChinese writing, agent work (evergreen id)
hunyuan-turbos-latesttencentChinese documents, low cost (evergreen id)
MiniMax-M3.1-Flashminimaxlong context, batch work
mimo-v2.6-pro-ultraspeedalibaba (Bailian)high-volume light tasks
kimi-k3.1-pro / kimi-k3moonshotlong-context research, Chinese writing
qwen3.8-max / qwen3.8-flashalibabareasoning, presentations; cheap documents
gpt-6-astra / gpt-6.1-solopenaigeneral reasoning, English writing

Entries whose provider is not configured are simply refused with guidance until you add the provider. Override any entry or add your own in the plugin config:

- id: model-router
  name: dsh-model-router
  config:
    defaultModel: deepseek-flash
    models:
      - id: glm-5.3
        provider: zai-coding-cn
        strengths: [coding, backend, review]
        notes: ...
        cost: medium

How the agent uses it

The plugin injects a short system-prompt section listing the catalog and a routing method: split the request, judge what each subtask needs (kind of work, language, rigor, speed), match against strengths, and state the match in the required reason field. Any work type fits — code, documents, slides, translation, research.

Behavior rules:

  • Serial: one delegation at a time; the tool waits for the result.
  • Auditable: every call records why that model was chosen.
  • Lenient fallback: a model id outside the catalog falls back to defaultModel, and the result says so.
  • Policy-checked: routes must be allowed by the Session model-selection policy and have a mounted provider; refusals explain what to do.

License

MIT

相关插件