dsh-plugin-subagent-bridge 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-subagent-bridge",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Subagent bridge: lets Codex delegate a task to DeepSeek Harness the way it would spawn a subagent (one call, waits for the answer), plus a codex_dispatch tool for the reverse direction.",
|
|
6
6
|
"keywords": [
|
|
@@ -121,6 +121,33 @@ DSH **自带** `subagent` 工具(和这座桥无关,是它自己的能力,
|
|
|
121
121
|
|
|
122
122
|
DSH 自己的委派深度上限是 1:worker(depth 0)能开子 agent(depth 1),子 agent 不能再往下开。所以不会无限递归。
|
|
123
123
|
|
|
124
|
+
## 指定 worker 用哪个模型
|
|
125
|
+
|
|
126
|
+
`dsh_task`、`dsh_spawn`、`dsh_followup` 都支持 `model`。默认不传,worker 跟随会话默认模型。
|
|
127
|
+
|
|
128
|
+
```json
|
|
129
|
+
{ "prompt": "…", "cwd": "/repo", "model": "zai-coding-cn/glm-5.3", "reasoningEffort": "max" }
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
- 写法是 **`provider/model`**,中间一个斜杠;
|
|
133
|
+
- **只写模型名**(`"glm-5.3"`)会沿用当前默认 provider——省事但容易踩空,见下;
|
|
134
|
+
- `reasoningEffort` 可选,取值随模型(`low` / `medium` / `high` / `max` 等),模型不支持该档会直接报错;
|
|
135
|
+
- 不传 `model` 的调用行为完全不变,不要为了"保险"而乱传。
|
|
136
|
+
|
|
137
|
+
什么时候值得指定:
|
|
138
|
+
|
|
139
|
+
| 场景 | 做法 |
|
|
140
|
+
| --- | --- |
|
|
141
|
+
| 任务要长上下文 / 大文件 | 挑窗口大的模型 |
|
|
142
|
+
| 要跨模型复核同一件事 | 第二次派发换另一家的模型 |
|
|
143
|
+
| 便宜模型够用(改文档、跑格式) | 显式指定小模型省钱 |
|
|
144
|
+
| 用同一个 worker 干不同类型活 | `dsh_followup` 里换 `model` |
|
|
145
|
+
|
|
146
|
+
**只写模型名的坑**:`glm-5.3`、`deepseek-v4.1-flash` 这类模型同时挂在多个 provider 下(`zai-coding-cn`、`opencode-go`、`newapi`…),只写名字会落到当前默认 provider 上,可能和你想的不是同一家。**要么写全 `provider/model`,要么先确认当前默认是什么。**
|
|
147
|
+
|
|
148
|
+
写错了(`/glm-5.3`、`a/b/c`)桥会在**发 prompt 之前**报错,不会白跑一轮。
|
|
149
|
+
|
|
150
|
+
|
|
124
151
|
## 怎么写 prompt
|
|
125
152
|
|
|
126
153
|
worker **看不到你这段对话**,它只有 `prompt` 和 `cwd`。写成可以独立开工的工单:
|