Configurable default model for subagent delegations via settings.yaml, with single-model and multi-model round-robin or random strategies.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:dingminhua/dsh-subagent-default-model#path:/plugin
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time. Only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Default model for subagent delegations in DeepSeek Harness (DSH), configurable via ~/.dsh/settings.yaml.
When a subagent is created without an explicit model, this plugin injects the configured default — so every subagent, subagent_fork, and any tool that omits agentOptions routes through it. Explicit per-call overrides always win; an absent or incomplete settings section keeps the historical behavior (children inherit the parent route).
Features
- Single model — all subagents run on one configured model.
- Multi-model — a
modelslist withround-robinorrandomstrategy spreads parallel subagents across models. - Hot-reload — settings changes apply to the very next delegation.
- Clean teardown — Cordis disposal restores the original service methods.
Install
dsh plugin --profile web add dsh-subagent-default-model
Configuration
Add to ~/.dsh/settings.yaml:
# Single model
subagent-default-model:
provider: deepseek-official
model: deepseek-v4-pro
# Or multiple models
subagent-default-model:
provider: deepseek-official
models:
- deepseek-v4-pro
- deepseek-v4-flash
strategy: round-robin # round-robin | random
| Field | Type | Default | Description |
|---|---|---|---|
provider |
string | — | Provider for string-type model entries. |
model |
string | — | Single model id (backward compatible). |
models |
array | [] |
List of model entries (string or {provider, model} pair). |
strategy |
string | round-robin |
Selection strategy: round-robin or random. |
How it works
Explicit agentOptions on the request
→ subagent-default-model settings
→ inherit parent session route
The plugin wraps the host ctx.subagents service (start / startContinuable), so it covers every delegation path — built-in subagent / subagent_fork tools and any custom tool that calls the service without providing agentOptions.
License
Links
More in this category
Mars-Sea/dsh-commandcode-provider★ 58
Unofficial Command Code LLM provider: registers a `commandcode` route with a live model catalog and reasoning-effort support.
franksong2702/dsh-codex-connect★ 24
Connect ChatGPT OAuth and OpenAI Codex models to DeepSeek Harness, with opt-in search and image tools.
WSL043/dsh-codex-subscription★ 12
Built-in ChatGPT OAuth provider for Codex models, selectable subscription web search, backend quota for standard Codex and Spark, and a DSH settings UI; no API key or Codex CLI required.
WNJXYK/dsh-codex-oauth★ 10
Use a ChatGPT/Codex subscription in DeepSeek Harness with GPT models, image generation, web search, subscription quota reporting, model and feature controls, and browser or device-code OAuth sign-in.
suntianc/dsh-codex-auth★ 9
Reuses the Codex CLI ChatGPT login as an `openai-codex` LLM route and adds GPT Auth controls to DSH Web settings.
btspoony/dsh-llm-fallbacks★ 8
Role-based LLM retry & fallback strategies.