DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

dsh-smart-model-router

Smart Model Router

面向 DeepSeek Harness 的任务和配额感知型虚拟 Auto 模型路由器

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

npx -y @deepseek-ai/dsh plugin --profile web add github:chuankris/dsh-smart-model-router#3521bafe2e0226414eb9e172f238774dfa6767e3
README兼容性版本

兼容性与来源证明

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

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/8/27

版本

0.7.1stable
2026/8/27
0.7.0stable
2026/8/27
0.6.8stable
2026/8/27
查看其余 5 个版本收起版本
0.6.4stable
2026/8/27
0.6.3stable
2026/8/27
0.6.2stable
2026/8/27
0.2.2stable
2026/8/24
0.2.0stable
2026/8/23

相关插件

正在加载相关插件…

最新版
0.7.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/8/27
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

README

dsh-smart-model-router

A host-plane Cordis plugin for DeepSeek Harness that adds a virtual Auto model. Explicit model selections pass through unchanged. Selecting Auto chooses a real provider/model for each step from task difficulty and optional quota pressure.

Why

Model catalogs make manual selection easy, but a useful default must answer two separate questions:

  1. How much capability does this task need?
  2. Which quota pool should be conserved right now?

This plugin answers both at the agent/request extension point. The resolved real provider, model, and reasoning effort are then written by DSH to the normal request/header, so replay and audit observe the route actually used rather than the virtual Auto alias.

Behavior

The default candidate set targets the ChatGPT subscription adapter: Spark, 5.4 Mini, and 5.6 Sol. Each candidate declares operator-estimated quality, speed, economy, task affinities, modalities, and quota bucket.

Routing is a multi-stage utility decision rather than a four-tier keyword lookup:

  1. Extract semantic and structural features for coding, analysis, writing, risk, agentic work, long context, images, constraints, tool history, and step depth.
  2. Query the live DSH model registry and reject unavailable or modality-incompatible candidates.
  3. Score eligible candidates across quality, speed, economy, task affinity, quota headroom, and reserve pressure.
  4. Select deterministically and log the winner, score, demand, quota, alternatives, and rejected candidates.

Quality receives more weight as demand rises; speed and economy receive more weight for low-demand work. If quota retrieval fails, capability and task routing continue. See the routing design for the formula, open-source references, evidence policy, and evaluation limits.

Explicit selection always wins

The plugin only rewrites this exact virtual route:

dsh-auto/dynamic

Any concrete selection—Codex, DeepSeek, Kimi, GLM, or another registered provider—is returned by identity and is never overridden.

Install

dsh plugin --profile web add dsh-smart-model-router

Restart DSH Web, then choose Auto (difficulty + quota) from the model selector. To make Auto the default for new sessions, set:

agent-default-model:
  provider: dsh-auto
  model: dynamic

in ~/.dsh/settings.yaml.

Configuration

The bundle inserts one host plugin row. Override it in your profile's cordis.patch.yml:

- id: smart-model-router
  config:
    displayName: Auto (capability + quota)
    quotaStatusUrl: http://127.0.0.1:3080/api/dsh-chatgpt-subscription/status
    quotaCacheMs: 60000
    policy:
      qualityWeight: 1
      speedWeight: 0.36
      economyWeight: 0.44
      quotaWeight: 0.65
      reservePercent: 8
      reservePenalty: 1.4
    quota:
      enabled: true
    # candidates is an array of provider/model, modalities, quotaBucketId,
    # quality/speed/economy estimates, and per-task affinity weights.

All candidates, estimates, affinities, policy weights, quota reserves, and endpoint settings are Cordis config; deployments do not need to edit source. The complete default candidate objects are in src/core.js.

Architecture

  • Host plane: routing and quota state are shared across sessions.
  • Virtual adapter: registers Auto in the standard model catalog and fails closed if unresolved.
  • agent/request waterfall: calls next(), preserves explicit selections, and replaces only the Auto alias.
  • Reconstructability: DSH logs the resolved concrete route in request/header before dispatch.
  • Lifecycle: adapter and event registrations belong to the plugin Fiber and disappear on unload/HMR.

Quota integration

Version 0.2 reads the authenticated dsh-chatgpt-subscription status endpoint through loopback HTTP. This keeps the plugin standalone but is the main upstream-integration limitation: a provider-neutral read-only quota Service would remove the HTTP and fixed-port coupling. The router deliberately treats the signal as optional.

Development

npm install --ignore-scripts
npm run check
npm run benchmark
npm run smoke:real-dsh
npm run pack:check

The test suite covers feature extraction, utility scoring, capability rejection, quota reserves, explicit-selection precedence, missing quota, virtual model registration, routing, and real DSH mount/unload lifecycle. The transparent regression corpus currently contains 12 representative tasks; it is a policy drift check, not a scientific model-quality benchmark.

Security and privacy

The plugin sends no task text to a classifier service. Classification is local. The optional quota fetch targets the configured URL and reads only quota percentages. Configure a trusted loopback or authenticated endpoint.

Known limitations and upstream path

  • Local semantic features remain a deterministic approximation; trained routers such as RouteLLM or RoRF can outperform them when representative preference labels exist.
  • Default quality, speed, economy, and affinity values are operator estimates, not vendor benchmark facts. Deployments should calibrate them on their workloads.
  • The current quota source follows the community ChatGPT subscription plugin's HTTP API rather than a DSH quota capability.
  • The virtual adapter is a compatibility technique until DSH has a first-class virtual route registry.

The intended upstream path is to propose a provider-neutral quota-status capability and a first-class virtual model route abstraction, then migrate this plugin onto those APIs. The policy engine and tests are intentionally independent of the HTTP transport to support that migration.

License

MIT

相关插件

继续浏览 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 模型。