plugin
by dingminhua
通过 settings.yaml 为子代理派发配置默认模型,支持单模型与多模型轮换/随机分配策略。
Configurable default model for subagent delegations via settings.yaml, with single-model and multi-model round-robin or random strategies.
安装
dsh plugin --profile web add github:dingminhua/dsh-subagent-default-model#path:/pluginGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
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. - Reasoning strength — optionally specify
reasoningEffortper model entry (e.g.high,medium,low); the Web UI loads available efforts from the model catalog. - 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
Release / Publish
本插件不发布到 npm,通过 Git 发布。安装方式为
file:本地依赖,提交代码推送到 GitHub 即可完成发布。
发布流程:
# 1. 更新版本号(plugin/package.json)和 CHANGELOG.md
# 2. 提交并打标签
git add -A
git commit -m "feat: ..."
git tag v0.3.0
git push origin main --tags
# 3. 同步到本地 web profile 的 file: 依赖
cd ~/.dsh/profiles/web && pnpm install
⚠️ Web profile 依赖变动注意(模块双胞胎):对
~/.dsh/profiles/web执行pnpm install/add/remove后,必须先运行bash ~/.dsh/scripts/fix-module-twins.sh看到末尾「自检通过:全部 SAME」后,重启 dsh web 进程。否则工具调用会全部失败(报reading 'prepare'),且该会话历史会被污染需新开会话。 该脚本幂等,重复执行无害。
说明:
- 插件的 web profile 安装方式为
"dsh-subagent-default-model": "file:/Users/dmh2002/GithubProject/dsh-subagent-default-model/plugin"(见~/.dsh/profiles/web/package.json) - 代码修改后,
pnpm install会把file:依赖的最新文件同步到 web profile,然后刷新页面即可生效 - 如需全新安装:
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
# With reasoning strength
subagent-default-model:
provider: deepseek-official
models:
- model: deepseek-v4-reasoner
reasoningEffort: high
- provider: other-provider
model: gpt-5.6
reasoningEffort: max
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, reasoningEffort?} pair). |
strategy |
string | round-robin |
Selection strategy: round-robin or random. |
reasoningEffort |
string | — | Optional reasoning strength for a model entry (e.g. high, max). |
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
原始 README: https://github.com/dingminhua/dsh-subagent-default-model/blob/main/plugin/README.md ↗
同类插件
查看全部 →
agent-vision-toolkit
为纯文本模型"看图“设计更好的视觉工具箱和技能,支持多图理解,图片问答,前端UI还原、GUI 自动化等,并可选无缝接入多个主流agent,直接识别粘贴图片| A vision toolkit and skill designed for text-only llms — image Q&A, long-screenshot OCR, frontend UI restoration, and GUI automation, with optional seamless integration for Codex, Claude Code, Pi, Oh My Pi, and OpenCode

api-relay-audit
从 DeepSeek Harness 对 AI API 中转站和 LLM 代理运行本地安全审计,生成 Markdown 报告,覆盖提示词注入、模型替换信号、工具调用改写、错误泄漏、流完整性和按 profile 启用的 Web3 风险。

OpenStory
✨ OpenStory 现已支持 DeepSeek Harness 插件! 现在可以通过 dsh-openstory 将 OpenStory 多智能体推演接入 DeepSeek Harness,让 agent 直接启动模拟、查看角色、下达指令并逐回合推进故事。查看 DSH 插件配置与使用指南。

phi
pi的编码代理 ∞ 提供者、子代理、hashline编辑和权限门

anysearch-dsh
DeepSeek Harness(DSH)的 AnySearch 网络搜索提供方与高级搜索工具。

codex-switch
Codex Switch 是一个 macOS 工具,一键配置 Codex 的自定义 API,同时保留官方 OpenAI 登录。保存后 Codex 的模型选择器里只会出现你选的那个 provider 的模型。也支持 Claude Code 的官方 / 自定义 API 切换。Codex Switch is a lightweight helper for configuring multiple coding-agent API routes. For Codex, it keeps Official OpenAI and a custom API provider configured in parallel, registers the custom model in Codex's mod