Back to directory

dsh-subagent-default-model

In a curated listMaintenance: Active

dingminhua/dsh-subagent-default-model

Configurable default model for subagent delegations via settings.yaml, with single-model and multi-model round-robin/random strategies.

View on GitHub
$ dsh plugin --profile desktop add dsh-subagent-default-model

16

stars

1

forks

JavaScript

Language

MIT

License

2026-08-16

Created

2026-11-19

Last push

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

  1. 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

  2. 02

    Or install the npm package directly: `npm install dsh-subagent-default-model`

    $ npm install dsh-subagent-default-model

  3. 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

DSH integrationNative runtime

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 settings
  • Multi-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 guaranteed
  • Cross-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 retry
  • Route 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.
2026-08-162026-11-19v2.2.6

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.

08Data and sources

  • Author-claimedgithub.com64fb6b297099…

    一个独立的 [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/deepseek-harness) bundle 插件。它只处理省略了 `agentOptions` 的子代理请求;…

  • Author-claimedgithub.com64fb6b297099…

    - **原生设置卡片**:可在 `设置 → 插件配置 → 子代理默认模型` 中完成配置。

  • Author-claimedgithub.com64fb6b297099…

    - **完整覆盖派发入口**:包装 0.2.x 的 `startActivation()` 与旧版 `start()` / `startContinuable()`,覆盖 `subagent`、`spawn_teammate` 以及其他调用…

  • Author-claimedgithub.com64fb6b297099…

    派发请求已带 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.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.