@sshirkit/dsh-orchestrator 0.8.7 → 0.8.8
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/README.md +13 -39
- package/README.zh.md +13 -39
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
</div>
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
**A powerful model plans, low-cost models do the work — the dispatch mode plugin with hard tool isolation for DeepSeek Harness**
|
|
12
|
+
#### **A powerful model plans, low-cost models do the work — the dispatch mode plugin with hard tool isolation for DeepSeek Harness**
|
|
13
13
|
|
|
14
|
-
[](https://github.com/SShiRkiT/dsh-orchestrator)
|
|
15
15
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
16
16
|
[](https://github.com/SShiRkiT/dsh-orchestrator)
|
|
17
17
|
[](https://nodejs.org)
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
[](https://github.com/SShiRkiT/dsh-orchestrator/stargazers)
|
|
21
21
|
[](https://www.npmjs.com/package/@sshirkit/dsh-orchestrator)
|
|
22
22
|
|
|
23
|
-
**English** | [简体中文](README.zh.md) · [Key differences](#why-do-you-need-this-plugin-alongside-native-subagent-and-agent-team) · [Core Features](#core-features) · [Installation](#installation) · [
|
|
23
|
+
**English** | [简体中文](README.zh.md) · [Key differences](#why-do-you-need-this-plugin-alongside-native-subagent-and-agent-team) · [Core Features](#core-features) · [Installation](#installation) · [Configuration](#configuration) · [Contributing & Community](#contributing--community)
|
|
24
24
|
|
|
25
25
|
</div>
|
|
26
26
|
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
In the dedicated **Dispatch mode panel** below the composer, the main-agent and subagent model routes are fully independent:
|
|
36
36
|
- **Main Agent**: choose your strongest flagship model to focus on clarifying requirements, splitting tasks, correcting course, and accepting final results.
|
|
37
37
|
- > For example, `gpt-astra-6` or `claude-opus-5.5`
|
|
38
|
-
- **Subagent**: choose a
|
|
38
|
+
- **Subagent**: choose a slightly less capable but very inexpensive model with high throughput. **Every Worker launched through `delegate` or `orchestrate` must share this low-cost route**
|
|
39
39
|
- > For example, `deepseek-v4.1-flash` or `gpt-luna-6`
|
|
40
|
-
- **
|
|
40
|
+
- **Anti-burn protection**: dispatch fails with an error if no subagent model is configured
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
## In your `prompt` or `AGENTS.md`, you can instruct the main agent in the current workspace to pass `provider` / `model` parameters when dispatching subagents, specifying which model to use for the current `session` \ `workspace`
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|

|
|
@@ -50,15 +50,15 @@ Instead of relying on prompts asking the main model to use subagents more often,
|
|
|
50
50
|
- **Main Agent stripped of all execution tools**:
|
|
51
51
|
<div align="center">
|
|
52
52
|
|
|
53
|
-
>
|
|
53
|
+
> ### DEFAULT_ALLOWED_TOOLS permits only 12 planning, delegation, and read-only session tools by default
|
|
54
54
|
>
|
|
55
55
|
> _`delegate`, `orchestrate`, `send_message`, `interrupt_agent`, `todo_write`, `ask_user_question`, `compress`, and five read-only session log tools._
|
|
56
56
|
>
|
|
57
|
-
>
|
|
57
|
+
> ### All file access, search, and terminal tools, plus any future MCP or third-party plugin tools, are automatically hidden and blocked at execution time
|
|
58
58
|
>
|
|
59
|
-
>
|
|
59
|
+
>_(`read` / `edit` / `write` / `apply_patch`), (`grep` / `glob`), (`bash` / `pwsh`), `subagent` / `workflow`_
|
|
60
60
|
>
|
|
61
|
-
>
|
|
61
|
+
> ### Even nested calls through run_code are blocked. To allow additional tools, check them under Allowed Tools on the right of the panel.
|
|
62
62
|
</div>
|
|
63
63
|
|
|
64
64
|
- **Subagents retain the full toolchain**: dispatched Workers are exempt from the gate and read or write files, run tests, and inspect errors in their own contexts. When finished, they return only a concise conclusion for the main agent to review.
|
|
@@ -93,9 +93,8 @@ Low-cost Subagents can occasionally get stuck on complex shell escaping or error
|
|
|
93
93
|
---
|
|
94
94
|
<div align="center">
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
### Why Do You Need This Plugin Alongside Native `subagent` and `Agent Team`?
|
|
97
97
|
</div>
|
|
98
|
-
|
|
99
98
|
DSH includes native `subagent` / `workflow` tools, and the official `@deepseek-ai/dsh-experimental-agent-team-profile` (Agent Team) is also available. However, intensive development still exposes three pain points — the problems at the heart of **DSH Orchestrator**'s distinctive design:
|
|
100
99
|
|
|
101
100
|
| Pain point | Native `subagent` / official `Agent Team` | DSH Orchestrator (unique to this plugin) |
|
|
@@ -114,7 +113,7 @@ DSH includes native `subagent` / `workflow` tools, and the official `@deepseek-a
|
|
|
114
113
|
|
|
115
114
|
| Item | Requirement |
|
|
116
115
|
| --- | --- |
|
|
117
|
-
| **Host environment** | DeepSeek Harness Desktop / Web GUI
|
|
116
|
+
| **Host environment** | DeepSeek Harness Desktop / Web GUI |
|
|
118
117
|
| **Node.js** | `>= 22` (bundled with the DSH Desktop runtime) |
|
|
119
118
|
| **Plugin form** | Cordis backend service patch (`cordis.patch.yml`) + Web GUI client extension (`lib/client.js`) |
|
|
120
119
|
| **UI language** | Adapts to Chinese / English (`zh-CN` / `en-US`) |
|
|
@@ -128,7 +127,7 @@ DSH includes native `subagent` / `workflow` tools, and the official `@deepseek-a
|
|
|
128
127
|
|
|
129
128
|
| Plugin version | Supported DSH host | Notes |
|
|
130
129
|
| --- | --- | --- |
|
|
131
|
-
| `@sshirkit/dsh-orchestrator >= 0.8.3` (current version: `0.8.
|
|
130
|
+
| `@sshirkit/dsh-orchestrator >= 0.8.3` (current version: `0.8.8`) | **DSH `>= 0.2.2-rc.2 < 0.2.3-0`** | Verified against `0.2.2-rc.2` / `0.2.2-rc.3`. Since `0.2.2-rc.2`, the host has flattened the subagent spec, removed the `Symbol.for('dsh.subagent.deliverPrompt')` delivery entry point and `agents.roots()`, and added the `wait_agent` tool. It is therefore **incompatible with `0.2.2-rc.1` and earlier**. Note: although the host adds `wait_agent`, the plugin **intentionally keeps its default whitelist at 12 tools and excludes `wait_agent`**. Blocking polling can leave the main agent idling and misjudging timeouts; supervision already replaces polling with one summary plus one decision. If needed, allow it manually in the panel's `allowedTools` list. |
|
|
132
131
|
| `dsh-orchestrator 0.8.0 – 0.8.2` | **DSH `<= 0.2.2-rc.1`** | Tested against `0.2.1-rc.3` and `0.2.2-rc.1`. Since `0.8.0`, the plugin has depended on `@deepseek-ai/dsh-tools`. |
|
|
133
132
|
| `dsh-orchestrator <= 0.7.3` | DSH releases predating plugin `0.8.0` | Early standalone tool-registration architecture, without a dependency on `@deepseek-ai/dsh-tools`. |
|
|
134
133
|
|
|
@@ -163,21 +162,6 @@ dsh plugin --profile desktop add @sshirkit/dsh-orchestrator
|
|
|
163
162
|
|
|
164
163
|
<div align="center">
|
|
165
164
|
|
|
166
|
-
## Quick Verification
|
|
167
|
-
|
|
168
|
-
</div>
|
|
169
|
-
|
|
170
|
-
After installing the plugin and restarting DSH, open the **Dispatch** settings panel below the message composer and make sure **Enable dispatch mode** is on.
|
|
171
|
-
|
|
172
|
-
1. Select a `Provider` and `Model` for subagents. Both are required for the default route. Delegation stops with an error if either is missing.
|
|
173
|
-
2. Start a new session and send a short read-only request.
|
|
174
|
-
|
|
175
|
-
> Delegate a read-only task to one subagent. Ask it to list the files in the current working directory and summarize what it finds for me.
|
|
176
|
-
|
|
177
|
-
3. Check the tool call history. The main agent should call only `delegate` and should leave file access and command execution to the subagent. The subagent should run independently on the selected low-cost model and return its summary to the main agent automatically.
|
|
178
|
-
|
|
179
|
-
<div align="center">
|
|
180
|
-
|
|
181
165
|
## Configuration
|
|
182
166
|
|
|
183
167
|
</div>
|
|
@@ -200,16 +184,6 @@ All configuration fields are volatile (dynamic configuration), with no DSH resta
|
|
|
200
184
|
> Note: the main agent's default model is stored in the host's `agent-default-model`, read and written directly by the same Dispatch mode panel, and applies to newly created sessions. Subagent model changes apply to the next delegation.
|
|
201
185
|
|
|
202
186
|
|
|
203
|
-
<div align="center">
|
|
204
|
-
|
|
205
|
-
## Troubleshooting
|
|
206
|
-
|
|
207
|
-
</div>
|
|
208
|
-
|
|
209
|
-
- **Delegation fails because the subagent model is missing (`workerProvider` / `workerModel` is empty).** The plugin never silently falls back to the more expensive main-agent model. Select the subagent's `Provider` and `Model` in the **Dispatch** panel. The change takes effect on the next delegation.
|
|
210
|
-
- **The plugin conflicts or does not load after upgrading from `dsh-orchestrator`.** The package moved to `@sshirkit/dsh-orchestrator` in `v0.8.4`. Uninstall the old plugin first, install the new one, then fully quit and restart DSH.
|
|
211
|
-
- **Changing the default main-agent model did not affect the current session.** The host stores the default in `agent-default-model` and uses it for new sessions. In an existing session, switch models using the selector at the top of the conversation.
|
|
212
|
-
|
|
213
187
|
<div align="center">
|
|
214
188
|
|
|
215
189
|
## Contributing & Community
|
package/README.zh.md
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
</div>
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
**强模型主脑规划 + 便宜模型统一打工 —— DeepSeek Harness 的「硬隔离调度模式」插件**
|
|
12
|
+
#### **强模型主脑规划 + 便宜模型统一打工 —— DeepSeek Harness 的「硬隔离调度模式」插件**
|
|
13
13
|
|
|
14
|
-
[](https://github.com/SShiRkiT/dsh-orchestrator)
|
|
15
15
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
16
16
|
[](https://github.com/SShiRkiT/dsh-orchestrator)
|
|
17
17
|
[](https://nodejs.org)
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
[](https://github.com/SShiRkiT/dsh-orchestrator/stargazers)
|
|
21
21
|
[](https://www.npmjs.com/package/@sshirkit/dsh-orchestrator)
|
|
22
22
|
|
|
23
|
-
**简体中文** | [English](README.md) · [核心差异](#为什么有了原生-subagent-和-agent-team还需要这个插件) · [核心特性](#核心特性) · [安装](#安装) · [
|
|
23
|
+
**简体中文** | [English](README.md) · [核心差异](#为什么有了原生-subagent-和-agent-team还需要这个插件) · [核心特性](#核心特性) · [安装](#安装) · [配置说明](#配置说明) · [参与贡献](#参与贡献)
|
|
24
24
|
|
|
25
25
|
</div>
|
|
26
26
|
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
在输入框下方的**「调度模式」专属面板**中,主代理与子代理的模型路由完全解耦:
|
|
36
36
|
- **主代理(Main Agent)**:配置为你最强的旗舰模型专门负责需求澄清、任务切分、途中纠偏与最终结果验收。
|
|
37
37
|
- > 例如 `gpt-astra-6`、`claude-opus-5.5` 等
|
|
38
|
-
- **子代理(Subagent
|
|
38
|
+
- **子代理(Subagent)**:配置为能力稍弱但极其便宜、高吞吐的模型**所有通过 `delegate` 和 `orchestrate` 派出的 Worker 强制共用这条便宜路由**
|
|
39
39
|
- > 例如 `deepseek-v4.1-flash`、`gpt-luna-6` 等
|
|
40
|
-
-
|
|
40
|
+
- **防烧钱保护**:如果未配置子代理模型,派发时会直接报错拦截
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
## 可以在`prompt` 或 `AGENTS.md`中要求当前工作区域的main agent派发子代理时传输 `provider` / `model` 参数来指定当前`会话` \ `工作区`使用你指定的模型进行
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|

|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
- **主代理被彻底收缴执行工具**:
|
|
51
51
|
<div align="center">
|
|
52
52
|
|
|
53
|
-
>
|
|
53
|
+
> ### DEFAULT_ALLOWED_TOOLS 默认只放行 12 项规划、委派与会话只读工具
|
|
54
54
|
>
|
|
55
55
|
> _`delegate`、`orchestrate`、`send_message`、`interrupt_agent`、`todo_write`、`ask_user_question`、`compress` 与 5 项只读会话日志工具。_
|
|
56
56
|
>
|
|
57
|
-
>
|
|
57
|
+
> ### 所有文件读写、搜索、终端,以及未来新增的任何 MCP / 第三方插件工具,一律自动隐藏并在执行层强制拦截
|
|
58
58
|
>
|
|
59
|
-
>
|
|
59
|
+
>_(`read` / `edit` / `write` / `apply_patch`)、(`grep` / `glob`)、(`bash` / `pwsh`)、 `subagent` / `workflow`_
|
|
60
60
|
>
|
|
61
|
-
>
|
|
61
|
+
> ### 连 run_code 嵌套偷调也拦。需要额外放行时,在面板右侧 Allowed Tools 勾选即可。
|
|
62
62
|
</div>
|
|
63
63
|
|
|
64
64
|
- **子代理独享完整工具链**:被派出的 Worker 不受闸门限制,在各自独立的上下文中读写文件、跑测试、看报错,完工后只把干净的结论交回主代理验收。
|
|
@@ -93,9 +93,8 @@
|
|
|
93
93
|
---
|
|
94
94
|
<div align="center">
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
### 为什么有了原生 `subagent` 和 `Agent Team`,还需要这个插件?
|
|
97
97
|
</div>
|
|
98
|
-
|
|
99
98
|
DSH 客户端自带了 `subagent` / `workflow`,官方也有 `@deepseek-ai/dsh-experimental-agent-team-profile`(Agent Team),但它们在实际高强度开发中仍有三个痛点——而这正是 **DSH Orchestrator** 独有的设计核心:
|
|
100
99
|
|
|
101
100
|
| 痛点场景 | 原生 `subagent` / 官方 `Agent Team` | DSH Orchestrator(本插件独有) |
|
|
@@ -114,7 +113,7 @@ DSH 客户端自带了 `subagent` / `workflow`,官方也有 `@deepseek-ai/dsh-
|
|
|
114
113
|
|
|
115
114
|
| 项目 | 要求 |
|
|
116
115
|
| --- | --- |
|
|
117
|
-
| **宿主环境** | DeepSeek Harness Desktop / Web GUI
|
|
116
|
+
| **宿主环境** | DeepSeek Harness Desktop / Web GUI |
|
|
118
117
|
| **Node.js** | `>= 22`(内置于 DSH Desktop 运行时) |
|
|
119
118
|
| **插件形态** | Cordis 后端服务补丁(`cordis.patch.yml`)+ Web GUI 客户端扩展(`lib/client.js`) |
|
|
120
119
|
| **界面语言** | 中 / 英双语自适应(`zh-CN` / `en-US`) |
|
|
@@ -128,7 +127,7 @@ DSH 客户端自带了 `subagent` / `workflow`,官方也有 `@deepseek-ai/dsh-
|
|
|
128
127
|
|
|
129
128
|
| 插件版本 | 适配的 DSH 宿主 | 说明 |
|
|
130
129
|
| --- | --- | --- |
|
|
131
|
-
| `@sshirkit/dsh-orchestrator >= 0.8.3`(当前版本 `0.8.
|
|
130
|
+
| `@sshirkit/dsh-orchestrator >= 0.8.3`(当前版本 `0.8.8`) | **DSH `>= 0.2.2-rc.2 < 0.2.3-0`** | 已验证 `0.2.2-rc.2` / `0.2.2-rc.3`。宿主自 `0.2.2-rc.2` 起扁平化了 subagent spec、移除了 `Symbol.for('dsh.subagent.deliverPrompt')` 投递入口与 `agents.roots()`,并新增 `wait_agent` 工具;因此**不兼容 `0.2.2-rc.1` 及更早版本**。注意:宿主虽新增了 `wait_agent`,但本插件默认白名单**有意维持 12 项、不予放行 `wait_agent`**——阻塞式轮询等待会让主代理陷入空转与超时误判,巡检机制已用「一条摘要 + 一次决策」替代轮询;确有需要时可在面板 `allowedTools` 中手动勾选放行。 |
|
|
132
131
|
| `dsh-orchestrator 0.8.0 – 0.8.2` | **DSH `<= 0.2.2-rc.1`** | 已实测支持 `0.2.1-rc.3`、`0.2.2-rc.1`。自 `0.8.0` 起引入 `@deepseek-ai/dsh-tools` 依赖。 |
|
|
133
132
|
| `dsh-orchestrator <= 0.7.3` | `0.8.0` 之前的旧版 DSH | 早期独立工具注册架构,未依赖 `@deepseek-ai/dsh-tools`。 |
|
|
134
133
|
|
|
@@ -163,21 +162,6 @@ dsh plugin --profile desktop add @sshirkit/dsh-orchestrator
|
|
|
163
162
|
|
|
164
163
|
<div align="center">
|
|
165
164
|
|
|
166
|
-
## 快速验证
|
|
167
|
-
|
|
168
|
-
</div>
|
|
169
|
-
|
|
170
|
-
安装并重启 DSH 后,在会话输入框下方打开「调度模式」设置面板,确认「启用调度模式」已打开。
|
|
171
|
-
|
|
172
|
-
1. 为子代理选择 `Provider` 与 `Model`。两项均为默认路由必填项,任一未配置时,使用默认路由的委派会报错并停止。
|
|
173
|
-
2. 新建会话,发送一条只读测试指令。
|
|
174
|
-
|
|
175
|
-
> 请委派一个子代理只读检查当前工作目录的文件列表并汇总给我。
|
|
176
|
-
|
|
177
|
-
3. 查看工具调用记录,确认主代理只调用了 `delegate`,没有直接调用文件读写或命令执行工具。子代理应按所选的低成本模型独立执行,结束后自动将总结交给主代理。
|
|
178
|
-
|
|
179
|
-
<div align="center">
|
|
180
|
-
|
|
181
165
|
## 配置说明
|
|
182
166
|
|
|
183
167
|
</div>
|
|
@@ -200,16 +184,6 @@ dsh plugin --profile desktop add @sshirkit/dsh-orchestrator
|
|
|
200
184
|
> 注:主代理的默认模型保存在宿主的 `agent-default-model` 中,由同一个「调度模式」面板直接读写,对新创建的会话生效;子代理模型改动从下一次委派起立即生效。
|
|
201
185
|
|
|
202
186
|
|
|
203
|
-
<div align="center">
|
|
204
|
-
|
|
205
|
-
## 常见排障
|
|
206
|
-
|
|
207
|
-
</div>
|
|
208
|
-
|
|
209
|
-
- **委派时报未配置子代理模型(`workerProvider` / `workerModel` 为空)**。插件不会静默回退到成本较高的主代理模型。请在「调度模式」面板选好子代理的 `Provider` 与 `Model`,下一次委派立即生效。
|
|
210
|
-
- **从旧版 `dsh-orchestrator` 升级后插件冲突或未生效**。自 `v0.8.4` 起,插件已迁移到 `@sshirkit/dsh-orchestrator`。请先卸载旧版,再安装新版,最后完全退出并重启 DSH。
|
|
211
|
-
- **修改主代理默认模型后,当前会话未变化**。默认模型写入宿主的 `agent-default-model`,对新建会话生效。已有会话可在顶部的模型选择器中切换。
|
|
212
|
-
|
|
213
187
|
<div align="center">
|
|
214
188
|
|
|
215
189
|
## 参与贡献
|