shenzhantu/dsh-subagent-model ↗★ 0
dsh-subagent-model
DSH 子代理模型独立配置插件,支持为子代理单独设置模型与推理强度。
AI 分析
核心用途是允许用户为 `delegate_subagent` 派生的子代理独立配置模型、提供商和推理强度,避免与主模型同源造成的资源浪费。适合需要精细化控制子代理成本和性能的复杂任务用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:shenzhantu/dsh-subagent-model說明文件
閱讀完整 README ↗使用
- 打开任意会话,composer 底部官方模型菜单左侧会出现「子代理」按钮,显示当前子代理模型与推理强度。
- 点开 → 一级菜单选「子代理模型」「推理强度」或「子代理档位」→ 二级菜单里点选,即选即存。
- 之后主 agent 所有
delegate_subagent委派的子代理都运行在该模型与档位上;子代理树标签[provider/model·强度|档位]可直接核对。 - 想换回默认行为?模型选成与主模型相同、档位选「继承」即可(DSH 原生 subagent 通道不受影响)。
配置存储
- 全局子代理模型保存在
$DSH_HOME/data/dsh-subagent-model/config.json(默认~/.dsh/data/dsh-subagent-model/config.json):
{
"sub": {
"provider": "kimi-coding",
"model": "kimi-for-coding",
"reasoningEffort": "off",
"profile": "minimal"
}
}
reasoningEffort可省略 = 使用该模型的适配器默认推理强度。profile可省略或inherit= 与主 agent 相同的人格与工具面;取值为preset:(与 Agent 预设同源,含插件预置的preset:quick/preset:research)。- 旧版
dsh-model-manager的配置会在首次启动时自动迁移;旧版存储的quick/research档位 id 也会自动迁移为preset:quick/preset:research。