DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Plugin Model Dispatch — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
P

dsh-plugin-model-dispatch

Plugin Model Dispatch

DSH plugin: per-session model switching for main agent, subagents, and plan mode / 为 DSH 的主会话、子代理与计划模式分别选择模型与思考强度

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:kolawong/dsh-plugin-model-dispatch#7f9d671e9da05486e62eabef640d3a2f2a0f7c00
READMECompatibilityVersions

Compatibility and provenance

Plugin Model Dispatch is published as dsh-plugin-model-dispatch and currently resolves to version 1.1.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/12/2026

Versions

1.1.1stable
10/12/2026

Related plugins

Loading related plugins…

Latest
1.1.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/12/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Usage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with a compact price glance card above the sidebar's Settings rowClient Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilitiesPer-model capability declarations (image input and reasoning efforts) for custom pi-ai providers, edited in place on the Models settings cards; writes the official llm-pi-ai settings namespace, no DSH source changes.Codex Subscriptiondsh-codex-subscriptionUse ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images, and Fast modeCommandcode Provider@mars-sea/dsh-commandcode-providerUnofficial DeepSeek Harness LLM provider plugin for Command Code, ported from pi-commandcode-provider (MIT). Registers the 'commandcode' provider route with a Models-page card and live model catalog.

README

dsh-plugin-model-dispatch

English | 简体中文

Give the main model, your subagents, and plan mode their own model and reasoning effort — from the chat bar, in one menu.

The model menu above the composer: model rows, the reasoning-effort slider, and the two composer chips

DeepSeek Harness ships a model picker for the main model. This plugin keeps that control and adds the two routes it does not cover — the model that delegated subagents run on, and the model plan mode thinks with — then puts all three in one menu that behaves like a native control.

RouteSet it fromApplies to
Main modelchat-bar main chip · settings row 1the current session, through the native DSH switching API
Subagent modelchat-bar subagent chip · settings row 2subagents started later in this session
Planning modelsettings row 3plan mode only; the pre-plan main model is restored afterwards

Table of contents

  • Features
  • Install
  • Usage
    • Chat bar
    • Settings
    • Plan mode
    • Subagents
  • Routing rules
  • Persistence
  • Compatibility
  • Development
  • Troubleshooting
  • Known limitations
  • Credits
  • License

Features

  • Two composer chips, wearing the host's own material. The input bar carries a main chip (the host's model glyph) and a subagent chip (a branch glyph); the icon alone tells them apart, while the tooltip and accessible name keep the full Main · model · effort label. Both are borderless 28px chips that only show a surface on hover, exactly like the neighbouring native controls. While the subagent route inherits, its chip reads Follows main instead of repeating the main model name.

    The two composer chips

  • One menu for every route. Search across models and providers, provider groups, favorites, recents, and reasoning effort — the same menu is used by the chat bar and the settings rows. It is built from the host menu's material (translucent blurred card, elevation shadow, 4px padding, 34px rows, 13px type, l2 hairlines), so it reads as a first-party control rather than a plugin overlay.

  • Reasoning effort as a discrete slider. One stop per level, plus a leading provider default stop so "don't specify an effort" is a visible state instead of hidden behaviour. The scale is drawn under the rail (so it never seams the filled run), the current level is named in the header row, and the control is draggable and keyboard-operable.

    The reasoning-effort slider

  • Live apply — no confirm row. A model pick, a slider move, or a restore writes through immediately. A slider drag coalesces into a single write when it settles, writes are serialized, and a failed write rolls the row back and shows the real error. The menu stays open, so picking a model can be followed straight by an effort change; Esc or a click outside only closes the menu and never undoes a live choice.

  • Plan-mode auto switching. Entering plan mode switches to the planning model; approving the plan or /plan off restores the pre-plan main model and effort before the first execution request. The review panel shows which model will be restored.

  • Per-session subagent overrides. A chat-bar subagent pick is stored as a durable override for that session and never touches the settings default; one click restores the settings default.

Install

Requires DeepSeek Harness 0.2.0-rc.2 (other 0.2.x versions need a compatibility check — see Compatibility).

dsh plugin --profile web add git@github.com:kolawong/dsh-plugin-model-dispatch.git

Replace web with the profile you actually use (desktop, …). Then fully quit and reopen DSH: the host half needs a recomposition, and refreshing the page only reloads the client half.

lib/ in this repository holds the prebuilt host and client bundles, so installing needs no local build step.

Manual install (link a local checkout)
// <DSH_HOME>/profiles/<profile>/package.json
{
  "dependencies": { "dsh-plugin-model-dispatch": "link:/path/to/dsh-plugin-model-dispatch" },
  "dsh": { "profile": { "bundles": ["…", "dsh-plugin-model-dispatch"] } }
}

Create the matching node_modules link (the profile directory is the resolution anchor), then restart DSH.

Usage

Chat bar

Two chips sit at the right of the composer, next to the permission and preset controls:

ChipWhat it does
Main (model glyph)Switches the current session's model through the native API. The chip shows the effective route and its effort in the tooltip.
Subagent (branch glyph)Picks the model for subagents started later in this session, stored as a session override. Reads Follows main while nothing is overridden.

Opening either chip gives the same menu: search, provider groups, favorites (★, hover-revealed, remembered per browser), recents, the effort slider, and — for the subagent route — a restore to settings default row.

The same menu in dark mode

Settings

Web settings → 模型切换 / Model switch holds three rows, each with a one-line scope hint:

RowMeaning
New-session default modelWritten to the native agent-default-model entry. Changing the model inside a chat does not change it.
Subagent default modelUsed by subagents of any session that has no override.
Planning modelUsed while plan mode is active.

Plan mode

  1. Entering plan mode saves the session's current provider / model / reasoningEffort atomically and switches to the planning model.
  2. Approving the plan (or /plan off) restores that saved route before the first execution request is assembled.
  3. If a restore fails it is retryable and never strands the session on the planning model; the approval panel names the model that will come back.

Subagents

  • A delegation started with explicit model options keeps them — the plugin only fills in a route where the native call left it open.
  • The subagent chip and the settings default apply to newly started subagents; running ones keep their model.
  • Subagent sessions themselves do not participate in plan switching or subagent overrides.

Routing rules

DecisionPrecedence (highest first)
Subagent modelsession override → settings default → native parent-model inheritance → explicit start options in the tool call
Plan modelplanning model while plan mode is active → restored session route afterwards
Main modelsession selection (native API) → new-session default from settings

Defaults and sessions stay independent: the settings rows store new-session defaults, while chat picks and plan switches only affect the current session. The host adapter isolates the native selectModel "save as deployment default" side effect with AsyncLocalStorage, so only that call chain is intercepted.

Persistence

DataLocation
Settings defaults (subagent default, planning model)DSH profile config (volatile fields — editable from the settings page or the config file)
New-session main-model defaultThe native agent-default-model entry
Session subagent overrides$DSH_HOME/storages/model-switch/session-overrides.json
Pre-plan main model (cleared after a successful restore)$DSH_HOME/storages/model-switch/plan-main-models.json
Menu favorites / recentsBrowser localStorage (per browser, not synced)

Compatibility

  • Host: DSH 0.2.0-rc.2. The plugin follows the 0.2.x extension surfaces (volatile Config + configForms, session projections, the session model-selection API, planMode) and patches nothing in the DSH core, so one-click upstream upgrades stay painless.
  • Newer hosts need ≥1.1.0. Since 1.1.0 subagent routing wraps all three native start paths — start / startContinuable (rc.2) and startActivation (newer hosts). On a host that only exposes startActivation, 1.0.x is silently bypassed into plain parent-model inheritance.
  • Client: the browser half ships as a DSH client bundle (lib/client.js) and needs the host half loaded; a page refresh alone is not enough after a first install.

Development

pnpm install
pnpm test        # vitest — 69 tests
pnpm build       # tsc (host + client projects) + tsdown client bundle

Iterating on the UI only:

./node_modules/.bin/tsc -p tsconfig.client.json && ./node_modules/.bin/tsdown

Test coverage: route-merge precedence, session-override storage and concurrent writes, plan-boundary enter / restore / restart / reject paths, session-versus-default selection isolation, route validation rejections, client save races, stale-catalog adaptation, and concurrent delegation isolation.

tsc -p tsconfig.json (the host project) type-checks against the @deepseek-ai/* peers that the profile resolves. If this package's own node_modules happens to hold a second copy of those packages, branded types differ between the copies and the host project reports mismatches; the client project, the bundle build, and the test suite are unaffected.

Troubleshooting

SymptomCause / fix
Chips or settings rows missing after installThe host half was not recomposed — fully quit and reopen DSH (a page refresh only reloads the client half).
Subagents always use the parent modelOn hosts newer than rc.2 this needs ≥1.1.0 (see Compatibility); also check that no stale start-only host is in use.
A model is missing from the menuThe provider failed to load its catalog — the menu header shows a partial-catalog warning and the model appears once the provider responds.
Saving reports an invalid routeThe combination is not in the provider's live catalog; pick the model from its own provider group and retry.
Settings changed but a chat did notExpected: chat picks and plan switches are per-session, settings rows are new-session defaults.

Known limitations

  • Tightly coupled to DSH 0.2.0-rc.2 internals (configForms, session projections, session controller, plan mode) — re-run the suite after a DSH upgrade.
  • Plan-boundary detection depends on the native exit_plan_mode result wording; a DSH wording change delays the restore (the plan/mode event is the fallback).
  • Subagent sessions intentionally do not participate in plan switching or subagent overrides.
  • Menu favorites and recents are per-browser (localStorage); they are not part of the session or the profile.

Credits

  • Original design and the 0.1.x implementation: lincong1987/dsh-model-switch (MIT) — this plugin builds on that work.
  • The 0.2.x adaptation, plan-mode switching, session overrides, route validation, and the current UI were rewritten and extended in this repository.

License

MIT

Every catalog model is delegatable. Subagent routing reads the host's live model catalog, so an explicit child selection and list_subagent_models keep working in existing sessions even when rc.2 captured an older allowlist. Models added later are available on the next delegation; removed routes and unsupported efforts are rejected up front.

  • Route validation before saving. Overrides and child creation validate the exact provider/model/effort through the host's resolveCallConfig; an invalid combination fails immediately with the real reason instead of failing inside a run.