通过 settings.yaml 为子代理派发配置默认模型,支持单模型与多模型轮换/随机分配策略。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:dingminhua/dsh-subagent-default-model#path:/plugin
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本。请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 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
链接
同类插件
Mars-Sea/dsh-commandcode-provider★ 58
非官方 Command Code 模型接入插件:注册 `commandcode` 路由,带实时模型目录与推理强度支持。
franksong2702/dsh-codex-connect★ 24
通过 ChatGPT OAuth 将 OpenAI Codex 模型接入 DeepSeek Harness,并提供可选的搜索与图片工具。
WSL043/dsh-codex-subscription★ 12
内置 ChatGPT OAuth 的 Codex 模型提供方:可切换订阅联网搜索,在设置页显示普通 Codex 与 Spark 独立额度;无需 API Key 或 Codex CLI。
WNJXYK/dsh-codex-oauth★ 10
在 DeepSeek Harness 中使用 ChatGPT/Codex 订阅接入 GPT 模型、图像生成与 Web 搜索,并支持订阅额度显示、模型与功能控制,以及浏览器或设备码 OAuth 登录。
suntianc/dsh-codex-auth★ 9
复用 Codex CLI 的 ChatGPT 登录态注册 `openai-codex` LLM 路由,并在 DSH Web 设置中提供 GPT Auth 控件。
btspoony/dsh-llm-fallbacks★ 8
基于角色的模型重试与备用策略。