DeepSeek Harness 插件

dingminhua/dsh-subagent-default-model#plugin

Star 数 ★ 0 分类 模型与账号接入 收录于 2026-08-18

通过 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 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
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

MIT

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →