
Dsh Model Router
by tianji-qingtian · tianji-qingtian/dsh-model-router
模型路由与成本优化器:简单问题 flash 直答、故障自动降级、会话 token/缓存/成本实时面板 | Model router & cost optimizer for DeepSeek Harness: flash quick-answers for simple questions, failure fallback, live token/cache/cost panel
Install Dsh Model Router
Likely fails to load: not on npm, needs a build, and ships no `prepare` script — a git install fetches sources, not built artifacts, so the entry point is never produced.
This install is expected to fail
prepare script to run it, and is not published to npm — so nothing produces the compiled output the loader then goes looking for.Three things would fix it, all of them on the author's side: publish the package to npm, add a prepare script that builds on install, or commit the build output to the repository. Until one of those happens, the command below is here so you can reproduce the failure, not so you can install it.
What would be run — expected to install and then fail to load
# 1. add the bundle to a profile — --profile my-profile points at $DSH_HOME/profiles/my-profile
dsh plugin --profile my-profile add github:tianji-qingtian/dsh-model-router
# 2. verify: the bundle should show up as a layer in the resolved config
dsh --profile my-profile --dump-config
# 3. boot the profile
dsh --profile my-profileBefore you run it
- A plugin runs with your permissions once loaded: it can read your files, use your credentials and reach the network. Tool approvals do not sandbox it.
- Installing from git resolves a moving branch. Pin a commit —
github:tianji-qingtian/dsh-model-router#<commit-sha>— so the code you reviewed is the code you install.
Prerequisites
- API key
- Not required.
- Network access
- Not required at runtime.
- Language
- JavaScript — a git install pulls this source, not build output.
Install check
Every field the verdict was derived from, so you can re-derive it yourself
| Field checked | Result | Weight | What the spec says about it |
|---|---|---|---|
| lifecycleScripts | pass | info | no install-time scripts |
| dsh.bundle | pass | fatal | package.json declares a `dsh.bundle` layer |
| dsh.bundle.patch file | pass | fatal | patch file present at `cordis.patch.yml` |
| npm registry | missing | warn | `dsh-model-router` is not published to npm |
| prepare script | missing | fatal | needs a build but ships no `prepare` script — a git install fetches sources, not built artifacts |
- Verdict reason
- git-only + needs build + no prepare script
- package.json read
- package.json
- Rules applied from
- docs/user/develop/basic/publish.md
- Checked at
- 2026-08-15
From the README
Excerpt as published by the author, plain text, unedited
Model Router & Cost Optimizer for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (`dsh`). Answers simple questions directly on the cheap model (zero prefix, no cache tax), degrades gracefully on transient provider failures, and shows live per-session token / cache-hit / cost figures right under the composer. > The harness is in developer preview and iterates quickly — expect compatibility-breaking changes. > 中文说明见 [README.zh.md](README.zh.md)。 - **Cheap-model judge routing** — clearly heavy work (strong keywords / long payloads) goes straight to the main model with zero added latency. Everything else is decided by a **zero-prefix flash judge call** (`SIMPLE` / `AGENTIC`, one word, 64-token cap, thinking off). The judge also sees the last assistant reply, so context-dep
Topics
GitHub topics on this repository
More in Model Router Flash Pro
Ranked by similarity inside the cluster, not alphabetically
Dsh Dardar
benzhoupo
DSH 插件:在模型选择框左侧显示当前 DeepSeek V4 Pro / V4 Flash 的 codexradar IQ,每 5 分钟刷新(CC BY 4.0)
Dsh Gal
LoserFox
DSH Galgame 模式:前台 flash GM 即兴演出 + 后台 pro 真实干活的双 agent 视觉小说舞台(独立插件)
Dsh Client Pricing
Miyazawai
会话顶栏实时显示 DeepSeek API 价格(峰谷定价 / 现行一口价,flash / pro 自动切换) | DeepSeek Harness client plugin: live DeepSeek API pricing badge (peak/off-peak, flash/pro) in the session header
Dsh Composer Polish
tianji-qingtian
DeepSeek Harness plugin: one-click ✨ polish for composer drafts — flash rewrite, auto fill-back · DeepSeek Harness 插件:输入框草稿一键 ✨ 润色,flash 改写、自动回填
Dsh Pro
hikaoxx-tech
DSH Pro - a customized DeepSeek Harness VS Code extension