DeepSeek Harness plugin

plugin

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

Jump to install

Source facts

Repository
dingminhua/dsh-subagent-default-model
Latest update
Aug 18, 2026
Category
Models & Providers
GitHub stars
0

Install

Start with a prompt that asks an agent to read the source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to read the page and repository first.

Do not install anything yet. Read this DeepSeek Harness plugin and explain what it does, which files, networks, or credentials it can access, and how to install and remove it.

Plugin page: https://deepseekplugins.org/plugins/dingminhua/dsh-subagent-default-model~23plugin
GitHub: https://github.com/dingminhua/dsh-subagent-default-model/tree/main/plugin
Plugin: dsh-subagent-default-model#plugin
Author: dingminhua
Install command: dsh plugin --profile web add github:dingminhua/dsh-subagent-default-model#path:/plugin

Do not run the install command until I confirm.

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-subagent-default-model

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 models list with round-robin or random strategy 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
FieldTypeDefaultDescription
providerstringProvider for string-type model entries.
modelstringSingle model id (backward compatible).
modelsarray[]List of model entries (string or {provider, model} pair).
strategystringround-robinSelection 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

[MIT](LICENSE)