sd1g1
dsh-subagent-model-override
DeepSeek Harness 插件:全局强制进程内子代理会话使用统一 LLM 路由
- Stars
- 0
- Language
- JavaScript
- Created
- Aug 16, 2026
- Updated
- Aug 16, 2026
Introduction
@local/dsh-subagent-model-override
Host 平面 DeepSeek Harness 插件:强制所有进程内子代理的模型请求统一走一条配置的 LLM 路由,与 Agent preset 无关。
它在根作用域 agent/request 瀑布上监听,只有当不可变的会话头中
delegationDepth > 0 时才改写调用。这覆盖了普通的 subagent、subagent_fork、
workflow 子代理、Ralph 轮次、嵌套子代理以及恢复的子代理会话。顶层会话不受影响。
安装
通过 DSH bundle 安装(推荐)
dsh plugin --profile web add github:sd1g1/dsh-subagent-model-override
重启 DSH 后,bundle 会自动把 subagent-model-override 行加入 Web profile 的组合树。
也可以直接编辑 profile 的 package.json,把包加入 dependencies 和
dsh.profile.bundles。
手动安装
在 ~/.dsh/profiles/web/cordis.patch.yml 中加入:
- insert:
- id: subagent-model-override
name: '@local/dsh-subagent-model-override'
配置
在 ~/.dsh/settings.yaml 中配置:
subagent-model-override:
provider: opencode-go
model: deepseek-v4-flash
reasoningEffort: max
默认值即上面所示的值。保存 settings 后,后续子代理请求读取的路由会随之改变。