dsh-plugin-subagent-bridge 0.7.3 → 0.7.4
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.7.
|
|
3
|
+
"version": "0.7.4",
|
|
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": [
|
|
@@ -104,6 +104,23 @@ dsh_spawn({ "task_name": "continue_here", "fork_turns": "all",
|
|
|
104
104
|
`fork_turns: "all"` 会 fork 那个会话作为 worker 的起点(继承到最近一个已完成 turn),worker 的后续改动**不会**污染原会话。默认 `"none"` 是全新空会话。
|
|
105
105
|
|
|
106
106
|
|
|
107
|
+
## 让它自己并行(DSH 也有 subagent)
|
|
108
|
+
|
|
109
|
+
DSH **自带** `subagent` 工具(和这座桥无关,是它自己的能力,worker 在深度 0,可以开子 agent)。但它**默认不会用**——不提示就一个人串行干完。
|
|
110
|
+
|
|
111
|
+
任务能拆成互不依赖的几块时,在 prompt 末尾加一句:
|
|
112
|
+
|
|
113
|
+
> 这几块互不依赖,可以用你自己的 subagent 并行处理,最后汇总。
|
|
114
|
+
|
|
115
|
+
实测:4 个互不依赖的乘法 + 这句提示 → 它开了 **4 个 subagent 并行**,43 秒返回汇总,结果全对。不加这句,同样的活它串行做完。
|
|
116
|
+
|
|
117
|
+
判断标准和 Codex 的 proactive 策略一致:
|
|
118
|
+
|
|
119
|
+
- ✅ 子任务互不依赖、并行能省时间或提高质量 → 加这句
|
|
120
|
+
- ❌ 有先后依赖、要改同一批文件、验收标准还没想清 → 不要加,串行更稳
|
|
121
|
+
|
|
122
|
+
DSH 自己的委派深度上限是 1:worker(depth 0)能开子 agent(depth 1),子 agent 不能再往下开。所以不会无限递归。
|
|
123
|
+
|
|
107
124
|
## 怎么写 prompt
|
|
108
125
|
|
|
109
126
|
worker **看不到你这段对话**,它只有 `prompt` 和 `cwd`。写成可以独立开工的工单:
|