DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Delegate Router — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-delegate-router

Delegate Router

将轻量级子代理任务委派给更低成本的模型:为 DeepSeek Harness 子代理调用提供自动 Flash/Pro 路由、/delegate 覆盖、预算上限和路由账本面板。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-delegate-router@0.4.3
README兼容性版本

兼容性与来源证明

Delegate Router 以 dsh-delegate-router 发布,当前版本为 0.4.3。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.4.3stable
2026/9/15
0.4.2stable
2026/9/14
0.4.1stable
2026/9/8
查看其余 8 个版本收起版本
0.4.0stable
2026/8/20
0.3.0stable
2026/8/17
0.2.4stable
2026/8/16
0.2.3stable
2026/8/16
0.2.2stable
2026/8/16
0.2.1stable
2026/8/16
0.2.0stable
2026/8/16
0.1.0stable
2026/8/16

相关插件

正在加载相关插件…

最新版
0.4.3
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
590.2 kB
文件数
13
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 2
周下载
352
安全扫描
✓ v0.4.3 扫描通过
最近提交
2026/9/15
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

README

dsh-delegate-router

English · 中文

Automatic Flash/Pro routing for DeepSeek Harness subagent calls.

Your main conversation keeps running on a strong model (e.g. V4 Pro). When the agent delegates a task to a subagent, this plugin classifies the task and sends light tasks to a cheap model (e.g. V4 Flash) while heavy tasks stay on the strong model — deterministically, without relying on the model's cooperation. Every decision is recorded in a ledger you can inspect from the sidebar (⚡ 分派记录).

  • Auto routing — light tasks run on Flash, heavy tasks stay on Pro.
  • DIY rules — all rules live in ~/.dsh/dsh-delegate-router.json: keyword lists, the short-task threshold, the budget cap, and the Beijing peak-hour demotion.
  • Manual overrides — per-call provider/model parameters on the subagent / subagent_fork tools.
  • /delegate command — per-session mode: /delegate auto | off | flash-all, plus /delegate status to print the routes in force.
  • Decision ledger — the ⚡ 分派记录 panel lists every routed delegation (task, route, trigger) for the active session.

Why

DeepSeek V4 Flash costs exactly one third of V4 Pro on every line (official pricing, effective 2026-08-17; peak/off-peak only scales both). Stock DSH runs every subagent on the parent's model — a search task delegated from a Pro session costs the full Pro rate. Measured on real sessions: 4 routed runs, ~156K tokens, ¥0.32 actual (Flash) vs ¥0.96 hypothetical (Pro) — 66.7% saved on every routed task. Run node scripts/measure-savings.mjs against your own ~/.dsh/sessions to reproduce.

Rules (in order)

  1. explicit per-call provider/model → used as-is (manual)
  2. /delegate off → inherit; /delegate flash-all → all Flash
  3. session tokens over budgetCapTokens → Flash (budget)
  4. keyword dominance scoring: heavy wins ties, but a strictly-light task beats one incidental heavy word (auto-heavy / auto-light)
  5. task text ≤ shortTaskMaxChars → Flash (auto-short)
  6. unmatched + Beijing peak hours (default 9–12, 14–18) → Flash (peak)
  7. unmatched + unknownToFlash: true (opt-in, aggressive) → Flash (auto-unknown)
  8. otherwise → inherit the parent model

Task text = the subagent call's description + prompt. Matching is precise: pure-ASCII keywords use word boundaries (list never matches specialist, design never matches designer); CJK keywords shorter than two characters are ignored.

Works great with dsh-routing-suite

dsh-routing-suite owns the thinking-mode / persona layer; this plugin owns the child-model cost layer. They stack: light subagent tasks get routed to Flash by this plugin, then run under the router preset's flash-optimized persona. The routing suite's own experiments (P11/P24) found the optimal weak persona is flash-specific and that spec-style personas actively hurt Flash — so Flash + that router preset is the best-matched combination for cheap delegation, and this plugin supplies the automatic Flash routing for it.

Honest measurement

Relative prices are guaranteed by the official price table (Flash = 1/3 of Pro on every line, 2026-08-17 peak/off-peak pricing). Absolute numbers depend on how much work a run does — LLM runs are nondeterministic, so compare per token (or same-task), never raw totals. scripts/measure-savings.mjs prices your real session logs with the official table; read it before quoting numbers.

Install

dsh plugin --profile web add dsh-delegate-router

Configure

All knobs are optional and live in ~/.dsh/dsh-delegate-router.json:

{
  "flashProvider": "opencode-go",
  "flashModel": "deepseek-v4.1-flash",
  "proProvider": "opencode-go",
  "proModel": "deepseek-v4-pro",
  "mode": "auto",
  "lightKeywords": ["search", "搜索", "查找", "总结", "summarize", "list", "列出"],
  "heavyKeywords": ["refactor", "重构", "implement", "实现", "debug", "调试"],
  "shortTaskMaxChars": 120,
  "peakDemoteUnknown": true,
  "unknownToFlash": false,
  "peakHours": [[9, 12], [14, 18]],
  "budgetCapTokens": 0
}
  • shortTaskMaxChars: 0 disables the short-task rule; peakDemoteUnknown: false disables peak-hour demotion; unknownToFlash: true sends ANY unmatched task to Flash (aggressive — leave false unless you are sure); budgetCapTokens: 0 disables the cap.
  • Providers can also come from DSH_DELEGATE_ROUTER_FLASH_PROVIDER / DSH_DELEGATE_ROUTER_FLASH_MODEL / DSH_DELEGATE_ROUTER_PRO_PROVIDER / DSH_DELEGATE_ROUTER_PRO_MODEL env vars.
  • Config edits apply to the next delegation — no DSH restart needed. Switch mode at runtime with /delegate auto | off | flash-all, and print the routes in force with /delegate status.

Development

npm install
npm run smoke              # manifest sanity
node scripts/test-routing.mjs   # deterministic rule checks
node scripts/measure-savings.mjs # real savings over ~/.dsh/sessions
node scripts/e2e-panel-loop.mjs  # browser E2E against a test instance

License

MIT

Acknowledgements

Built for the DeepSeek Harness plugin ecosystem — thanks to the community on LINUX DO for feedback and testing.

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Usage@linxin666/dsh-usagedsh Web GUI 的使用统计插件:检测各提供商余额和编码计划配额,并提供实时令牌使用记录,以及当前提供商的专属宠物气泡Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage Stats@ychris12138/dsh-usage-statsdsh Web GUI 的令牌使用热力图、提供商余额和订阅配额Codex Connectdsh-codex-connect用于 DeepSeek Harness 的 ChatGPT OAuth 和 Codex 模型。