MIT JavaScript DSH bundle plugin that gives `agentOptions`-less subagents a configured default model, adds round-robin / random assignment plus cross-provider failover (`dsh plugin add`).
DSH integration
Native runtime
Author-claimed
Safety audit
Unaudited
Last verified
2026-11-23
License
MIT
01What can it help you accomplish?
Give every subagent that omits `agentOptions` a configured default model route
Subagent delegations pinned to one `provider`/`model` route, or to an entry taken from a `models` list by `strategy`
DSH users who want delegated subagents on a cheaper or different model than the parent session, without editing the parent route
Fan parallel subagents out across several models and fail over between providers when one route breaks
Round-robin or random assignment at dispatch time, plus in-list failover to another provider's model on connection-class or auth-class failures
Teams running parallel subagent fan-out against quota-limited or multi-provider keys
Make the model a subagent is actually running on visible to both the user and the subagent
A route line in the trajectory / chat view, and one real prompt line injected into the subagent's own context
Operators debugging which `provider/model` a subagent used, and subagents asked to report their own model
02How to install into DeepSeek Harness
Prerequisites
- A DeepSeek Harness host in the 0.1.7 line or anywhere in 0.2.x — all nine `@deepseek-ai/*` peers are declared `>=0.1.7-rc.1 <0.3.0-0`
- A named DSH profile (`desktop` in the README examples); restart the DSH process after adding, updating or removing the bundle
Installation steps
- 01
Install the published npm version with the DSH plugin command: `dsh plugin --profile desktop add dsh-subagent-default-model` (swap `desktop` for your profile name)
$ dsh plugin --profile desktop add dsh-subagent-default-model
- 02
Or install the npm package directly: `npm install dsh-subagent-default-model`
$ npm install dsh-subagent-default-model
- 03
Configure a route in the settings card (设置 → 插件 → dsh-subagent-default-model) or in the profile patch `~/.dsh/profiles/<profile>/cordis.patch.yml`
Verify the integration
Not specified by the author
Rollback
- Run `dsh plugin --profile desktop remove dsh-subagent-default-model` and restart DSH — the bundle then stops loading
- Config left behind in the profile patch no longer takes effect and can be deleted by hand
03DSH integration and capability boundaries
Native DSH bundle plugin: installed with `dsh plugin --profile desktop add dsh-subagent-default-model`, it wraps the host's subagent dispatch entry points and ships a native settings card under `设置 → 插件配置 → 子代理默认模型` in the DSH settings panel
Default model routing for subagents
a subagent dispatch that omits `agentOptions`→one configured `provider`/`model` route (or an entry from `models[]` picked by `strategy`)
dispatches that already carry `agentOptions` are passed through untouched and never read the plugin settingsMulti-model strategies (`round-robin` / `random`)
`models` list with 2+ route entries plus `strategy`→deterministic list-order rotation, or a random pick at dispatch time
`random` does not check which routes were already used, so an even 5/5-like split is not guaranteedCross-provider failover
a subagent run whose `models` list has 2+ entries with `failoverEnabled` left at its default `true`→next route per `strategy` — possibly another provider's model — with the inherited `reasoningEffort` dropped
auth-class switches write a warn log that the provider key may be invalidon hosts 0.2.2+ the switch pre-selects a route for later steps and the current turn gets the real error instead of a transparent retryRoute visibility (UI line + prompt injection)
the route the subagent is actually running on→a `provider/model` line in the trajectory / chat view, and one prompt line in the subagent's own context (`injectRouteContext` defaults to `true`)
the injected line only appears from step 2 onward, so a subagent that finishes in one step never sees it
04Who is it for? When not to use it?
Good for
- DSH users who want delegated subagents on a cheaper or different model than the parent session, without editing the parent route
- Teams running parallel subagent fan-out against quota-limited or multi-provider keys
- Operators debugging which `provider/model` a subagent used, and subagents asked to report their own model
Not for
- The peer range is `>=0.1.7-rc.1 <0.3.0-0`: the 0.1.7 line and the whole 0.2.x line are supported, 0.3.0 and later are not. On hosts 0.2.2+ the failing step itself cannot be retried on another model — the plugin pre-selects a healthy route for later steps/turns and lets the real error through.
05Compatibility, maintenance and safety notes
- The peer range is `>=0.1.7-rc.1 <0.3.0-0`: the 0.1.7 line and the whole 0.2.x line are supported, 0.3.0 and later are not. On hosts 0.2.2+ the failing step itself cannot be retried on another model — the plugin pre-selects a healthy route for later steps/turns and lets the real error through.
- Explicit model choice always wins: a dispatch that already carries `agentOptions` is passed through untouched, a non-empty `models` list beats the legacy single `model` field, and invalid entries are ignored so the run falls back to the parent session route.
- Failover applies to subagents only and needs at least two models; the main agent loop is unaffected, and once every in-list route has failed the real error is released instead of retried forever.
- `subagent_fork` children keep the parent route by default (`applyToForkChildren: false`) so the inherited prefix stays KV-cache friendly; turning it on makes that prefix be recomputed once on the new model.
MIT · active, last push 2026-11-19, latest release v2.2.6
06Frequently asked questions
How do I install it into DeepSeek Harness?
Use the DSH plugin command `dsh plugin --profile desktop add dsh-subagent-default-model` (replace `desktop` with your profile name), or install the npm package with `npm install dsh-subagent-default-model`. Restart the DSH process after adding, updating or removing the bundle — plain settings edits do not need a restart.
Which subagent requests does it touch?
Only requests that omit `agentOptions`. A dispatch that already carries an explicit model is passed through untouched and never reads the plugin settings, and other callers of `ctx.subagents` are covered too because it wraps `startActivation()` plus the older `start()` / `startContinuable()` — that includes `subagent` and `spawn_teammate`.
Which DeepSeek Harness versions are supported?
All nine `@deepseek-ai/*` peers are declared `>=0.1.7-rc.1 <0.3.0-0`: the 0.1.7 line and the whole 0.2.x line, prereleases included. Behaviour differs by host — on 0.2.1 and older a failed request is retried on another model immediately, while from 0.2.2 the plugin pre-selects a healthy route for later steps and lets the real quota or auth error end the current turn.
Does it change fork subagents or the main agent?
No by default. `subagent_fork` children inherit the parent conversation, so `applyToForkChildren: false` keeps them on the parent route and preserves KV-cache reuse; enabling it recomputes that inherited prefix on the new model. Failover also stays inside subagents and needs at least two `models` entries — the main agent loop is untouched.
How do I remove it?
Run `dsh plugin --profile desktop remove dsh-subagent-default-model` and restart DSH so the bundle stops loading. Config left in the profile patch no longer takes effect and can be deleted by hand.
07Related DSH workflows
dsh-agent-teams
by nanmicoder
AgentTeams 多智能体团队协作插件:自然语言驱动建团队、拉成员、拆任务声明依赖、成员间消息直达,Web 右上角活动面板
dsh-blender-plugin
by sixtysevenlf
Adds tools for Blender scene editing, viewport capture, render profiling, headless work, and verification.
dsh-free-search
by dddmuc
DSH 免费搜索插件,执行联网检索。
dsh-bili-scroll
by c1overzz
Schedules Bilibili discovery, reads subtitles, writes daily reports, and optionally posts a comment tagging you.
08Data and sources
一个独立的 [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/deepseek-harness) bundle 插件。它只处理省略了 `agentOptions` 的子代理请求;…
- **原生设置卡片**:可在 `设置 → 插件配置 → 子代理默认模型` 中完成配置。
- **完整覆盖派发入口**:包装 0.2.x 的 `startActivation()` 与旧版 `start()` / `startContinuable()`,覆盖 `subagent`、`spawn_teammate` 以及其他调用…
派发请求已带 agentOptions → 原样放行,完全不碰(不读本插件设置)
This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-11-23. Found an error? Submit a correction.
Best DeepSeek Harness Plugins
Twelve plugins worth installing first — picked from the whole catalog, across every category.
