rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
zhuzhujunandy/dsh-model-router
Tiered model routing plugin for DeepSeek Harness (DSH): route delegated work to fast/medium/heavy model tiers with DoD verification, cross-provider fallback, background delegation, and per-conversation budget modes.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zhuzhujunandy/dsh-model-router
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Tiered model routing for DeepSeek Harness (DSH) — use the cheapest model that can do the job, automatically.
A monorepo containing the DSH plugin and its admin UI.
| Package | Description |
|---|---|
| dsh-model-router | DSH plugin — routing protocol, delegate tool, escalation ladder, guardrails |
| dsh-model-router-admin | Admin web UI — configuration dashboard and activity monitoring |
^0.1.1-rc.2# Clone the repo
git clone https://github.com/zhuzhujunandy/dsh-model-router.git
cd dsh-model-router
# Install dependencies
npm install
# Build all packages
npm run build
# Add the plugin to your DSH profile
dsh plugin --profile web add /path/to/dsh-model-router/dsh-model-router
Then add the plugin row to ~/.dsh/profiles/web/cordis.patch.yml:
- insert:
- id: model-router
name: 'dsh-model-router'
Restart DSH (dsh web), then run /tiers in the Web GUI to verify.
delegate tool — one model-facing tool that routes work to the right tier automatically.blocking enforcement runs a Definition-of-Done checklist and a grader PASS gate; FAIL re-grades, then hard-blocks and escalates.run_in_background: true returns a jobs jobId (one-shot) or a durable subagentId (continuable, continued via send_message).model-router adapter classifies requests by task type, forwards to the right tier model, and falls back across providers transparently.UNSUPPORTED_REASONING_EFFORT.normal / budget / quality / deep routing profiles; single pins every request and delegation to one fixed model (no routing).dsh-model-router/
├── dsh-model-router/ # DSH plugin (TypeScript)
│ ├── src/ # TypeScript source
│ ├── lib/ # Compiled output
│ ├── package.json
│ └── README.md
├── dsh-model-router-admin/ # Admin UI (React + Vite)
│ ├── src/ # React components
│ ├── dist/ # Built assets
│ └── package.json
├── package.json # Workspace root
├── LICENSE
└── README.md
# Build the plugin
npm run build:plugin
# Build and serve admin UI
npm run build:admin
npm run dev:admin
# Run tests
npm run test
See the plugin README for full configuration reference.
- id: model-router
name: 'dsh-model-router'
config:
tiers:
fast: { provider: ark-code, model: deepseek-v4-flash-ga-260731, costRatio: 1, maxTokens: 8192 }
medium: { provider: ark-code, model: glm-5.3, costRatio: 5, maxTokens: 16384 }
heavy: { provider: ark-code, model: deepseek-v4-pro-ga-260813, costRatio: 20, maxTokens: 32768 }
defaultTier: medium
modes:
normal: { defaultTier: medium }
budget: { defaultTier: fast }
quality: { defaultTier: medium }
deep: { defaultTier: heavy }
single: { defaultTier: medium, single: { provider: ark-code, model: deepseek-v4-pro-ga-260813, maxTokens: 32768 } }
Built for DeepSeek Harness
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、llm-routing。