DeepSeek Harness 插件

plugin

通过 settings.yaml 为子代理派发配置默认模型,支持单模型与多模型轮换/随机分配策略。

跳到安装方式

来源信息

GitHub 仓库
dingminhua/dsh-subagent-default-model
最近更新
2026年8月18日
分类
模型与服务商
GitHub stars
0

安装

默认先复制一段 Prompt,让 Agent 读页面和仓库;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读页面和仓库。

请先不要安装。阅读这个 DeepSeek Harness 插件,说明它解决什么问题、会访问哪些文件、网络或密钥,以及如何安装和卸载。

插件页面:https://deepseekplugins.org/zh/plugins/dingminhua/dsh-subagent-default-model~23plugin
GitHub:https://github.com/dingminhua/dsh-subagent-default-model/tree/main/plugin
插件名:dsh-subagent-default-model#plugin
作者:dingminhua
安装命令:dsh plugin --profile web add github:dingminhua/dsh-subagent-default-model#path:/plugin

确认前不要执行安装命令。

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

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)