dsh-my-go
DSH plugin: Sisyphus agent orchestration — star topology, single-line blocking, 7 specialist sub-agents (Hermes/Explore/Librarian/Looker/Hephaestus/Prometheus/Oracle) with per-type model binding, go_work/continue/need_help/forward communication tools, Web UI tree panel and settings. 适合需要精细配置多工种智能体协作与模型绑定的复杂任务。
설치
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:daizihan233/dsh-my-go配置
host 半(lib)注册 settings 命名空间 dsh-my-go,client 半提供设置页
(WebUI「MyGO 编排」),broker 半只读取:
| 配置项 | 默认值 | 说明 |
|---|---|---|
agents..provider | 不指定(继承) | 该工种的 provider 路由;缺省时继承父会话渠道 |
agents..model | 不指定(继承) | 该工种的模型;缺省时继承父会话模型 |
agents..reasoningEffort | 不指定 | 期望思考档位(如 high/max);只在模型实际支持时应用,否则走模型默认 |
agents..dsv4p0813 | false | 是否对该工种启用 DSV4P0813 两阶段引导补丁 |
agents..peakRouting | false | 是否启用错峰路由(按北京时间高峰/非高峰切换 provider/model) |
agents..peakProvider | 不指定(继承) | 高峰时段(梁文峰)渠道;缺省继承父会话渠道 |
agents..peakModel | 不指定(继承) | 高峰时段(梁文峰)模型;缺省继承父会话模型 |
agents..offpeakProvider | 不指定(继承) | 非高峰时段(梁文谷)渠道;缺省继承父会话渠道 |
agents..offpeakModel | 不指定(继承) | 非高峰时段(梁文谷)模型;缺省继承父会话模型 |
错峰路由(peak routing)
勾选「错峰路由」后,该工种在派发时按北京时间(UTC+8,无夏令时)判断当前时段:
- 高峰时段(周一至周五 09:00-12:00、14:00-18:00,含 09:00/14:00、不含 12:00/18:00)→ 使用「梁文峰」子配置(
peakProvider/peakModel); - 其余时段(周末、午休 12:00-14:00、夜间与凌晨)→ 使用「梁文谷」子配置(
offpeakProvider/offpeakModel)。
未勾选时行为与旧版完全一致(只用顶层 provider / model)。未配置的
peak/offpeak 字段保持「继承父会话(Sisyphus)」语义,与顶层字段相同。
思考档位与 DSV4P0813 补丁开关不受错峰路由影响,两个时段共用。
工种模型绑定
自 tisitan.7 起,插件不再内置任何模型名/渠道名——所有工种默认空绑定,
子代理完全继承环境默认路由(与 Sisyphus 同渠道同模型)。需要按工种分流
(快活走便宜模型、重活走强模型)时,在 DSH 设置页「MyGO 编排」逐工种填写,
或直接编辑 ~/.dsh/settings.yaml:
dsh-my-go:
hermes:
model: your-cheap-model # 高频体力活:便宜快模型
explore:
model: your-cheap-model
librarian:
model: your-cheap-model
looker:
model: your-multimodal-model # 看图需要多模态能力
hephaestus:
provider: your-gateway # provider 缺省 = 继承父会话渠道
model: your-mid-model
reasoningEffort: high # 仅当该模型实际支持此档位时应用
prometheus:
provider: your-gateway
model: your-strong-model
reasoningEffort: max
oracle:
provider: your-gateway
model: your-strong-model
reasoningEffort: max
字段缺省即不覆盖。model 在派发前会经 llm.listModels 校验真实存在
才应用(不存在则跳过并回落父会话模型,日志 warn);reasoningEffort
跟随 DSH 模型目录,模型不支持所配档位时留空走适配器默认。
建议分工:Sisyphus / Hephaestus 用中等能力模型,Hermes / Explore / Librarian / Looker 用便宜轻量模型,Prometheus / Oracle 用最强模型。
插件 config 键(broker 行为调参)
以下为插件级 config(dsh plugin add 的 config / bundle 层),与上面的
settings 命名空间正交;默认值即旧硬编码口径(tisitan.8 起截断阈值可配):
| config 键 | 默认值 | 说明 |
|---|---|---|
disposeEndGraceMs | 500 | agent/disposed 后等待 subagent/end 的宽限期,超时兜底清槽推进队列 |
queueRetryBaseMs | 1000 | 队列派发失败回补后的线性退避基数(1×/2×/3×,上限 3 次后放弃) |
statusHistoryLimit | 12 | orchestration_status 展示的历史条数 |
statusConclusionMax | 400 | orchestration_status 单条结论截断长度(failed 记录不截断) |
helpContentMax | 240 | orchestration_status 单条求助内容截断长度 |
subagentPromptMax | 200 | list_subagents prompt 摘要及会话 label 的 prompt 摘要截断长度 |
编排台账(history,上限 200 条)持久化在
/dsh-my-go/orchestration-ledger.json(DSH_HOME 缺省
~/.dsh),进程重启后读回——跨重启 continue 已完工子代理经 harness
coldResume 续聊可用。