Introduction¶
In DeepSeek Harness (DSH), the main session often delegates tasks to subagents through delegation tools such as subagent. The subagent’s model and reasoning effort are typically determined by the static agentOptions in the agent-plane preset, and plugins cannot directly rewrite that combination. If you want a setup where “there is one global default model, but you temporarily switch to another model for a particular conversation,” and you do not want to modify the preset or add parameters to the tool schema, you need to intervene at a lower layer in the request configuration.
The following introduces the community plugin dsh-subagent-models (maintainer: Garybot126; category: Model Inference): configure profile-level defaults on the settings page, and use the “⤳ Subagent” capsule next to the input box to override provider, model, and reasoning effort per conversation.
What Is This¶
dsh-subagent-models allows you to freely switch the model and effort level used by subagents in DSH. The implementation is split into a Host side (routing storage + agent/request overrides, see index.js) and a Web side (settings page, composer chip, full-width editing card, see client.js); at runtime it does not depend on the dsh package and requires no build step. The current version is 0.1.0, licensed under MIT (© Gary Gai).
Core Features¶
Two Configuration Entry Points¶
| Location | Purpose |
|---|---|
| Settings → Subagent | The global default routing used when delegating to subagents under the current profile |
| Composer → “⤳ Subagent” chip | Per-session overrides; “Reset to Global” clears the session-level settings |
Both selectors are based on the runtime LLM catalog (ctx.llm): models are grouped by provider; the effort list comes from the levels declared for that model in resolveModelInfo().reasoning.efforts, so it will not offer effort levels the model does not support.
How It Works¶
The delegation tool subagent is defined in the agent-plane preset and carries static agentOptions; the plugin cannot rewrite the preset combination. At the next layer, this plugin replaces the frozen call configuration via an agent/request waterfall rule:
- The listener only rewrites sub-Agents owned by other live Agents; the top-level Session is not modified.
- Works with the official
subagenttool: no preset changes required, and no model-selection parameters added to the tool. - Takes effect on the subagent’s next request; no restart or new conversation required.
subagent,subagent_fork, and Agent Teams members are all treated as delegated subagents.
Priority¶
Effective order (highest to lowest):
session preset route → session default → global preset route → global default → no override
When no override is configured (no override), subagents keep the combination defined at preset creation time, and behavior is identical to not installing the plugin. The README states: the presets[...] level is implemented and persisted, but the currently shipped preset does not pass agentPreset to delegation tools, so in practice the two default levels are the primary ones that take effect.
Persisted Data¶
Data file: $DSH_HOME/plugin-data/subagent-models.json (it may also be located at ~/.dsh/plugin-data/), hot-loaded by mtime; manual editing works as well. Example structure:
{
"version": 1,
"global": {
"default": { "provider": "deepseek-official", "model": "deepseek-flash", "effort": "low" },
"presets": {}
},
"sessions": {
"<sessionId>": { "default": { "provider": "...", "model": "...", "effort": null }, "presets": {} }
}
}
Capability disclosure: it only reads and writes the JSON above; besides the loopback HTTP prefix /plugin/subagent-models used by the Web UI, it does not bind any additional ports; it does not read conversation content, credentials, or other files.
Installation and Activation¶
Run the following under the target profile (commands from the repository README):
# npm
dsh plugin --profile <profile> add dsh-subagent-models
# Or install directly from the repository
dsh plugin --profile <profile> add github:Garybot126/dsh-subagent-models
If the plugin line is not hot-loaded, you need to restart dsh once after installation.
The plugin runs with the permissions of the current dsh process; before installing, it is recommended to review the GitHub source and the MIT license, and decide whether to include it in your environment.
Typical Usage¶
- Install the plugin and restart dsh if necessary.
- Open Settings → Subagent and choose provider, model, and effort as the default routing for subagents under this profile.
- In a conversation where you want to temporarily switch models, click “⤳ Subagent” next to the Composer and set an override for that session; select “Reset to Global” when not needed.
- Use delegation capabilities such as
subagentas usual; subagents will use your selected routing on their next request.
The README was verified on dsh 0.2.1-rc.2 (desktop profile): an invalid model id causes subagent failure, and storage clearing restores it; using different models such as deepseek-v4-pro + max succeeds; GET /plugin/subagent-models/state and POST /plugin/subagent-models/route return 200 and update the on-disk JSON; both the settings area and the Composer chip are registered as active slots.
Use Cases and Notes¶
Who it is for: DSH users who want to switch the model and reasoning effort for delegated subagents either globally or per conversation, without modifying the agent-plane preset or extending subagent tool parameters.
Relationship to similar plugins (as listed in the README): the market already includes dsh-subagent-custom (task-type routing), dsh-subagent-model-picker (per-session picker), dsh-subagent-default-model (settings.yaml defaults), dsh-model-settings (settings panel), dsh-orquestrator (fixed forced routing), etc. This plugin deliberately keeps a small surface: no task categories, no extra model parameters, no preset editing—only two layers (profile and conversation), a live catalog, and one override point.
Limitations (important to know):
subagent_forksubagents are also overridden; forks share a prefix with the parent, and switching models reduces KV cache reuse—if you care about performance, you can avoid overriding forks or keep the preset’s ownagentOptions.- An effort level not supported by the selected model will fail during adapter validation; the plugin will not silently downgrade.
- Overrides take effect per request; context window and metering metadata follow the effective routing, while subagent creation options still retain the values from the preset.
Conclusion¶
dsh-subagent-models uses a global default on the settings page plus a Composer session chip to inject provider, model, and effort for delegated subagents at the agent/request layer. It is compatible with the official delegation tools and requires no preset changes. The community catalog and DeepSeek / 幻方 have no official affiliation; it belongs to the independent plugin ecosystem.
- Catalog page: https://www.skillhub.cn/plugins/Garybot126/dsh-subagent-models
- Repository: https://github.com/Garybot126/dsh-subagent-models