@sshirkit/dsh-orchestrator 0.9.2 → 1.0.0
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 +142 -93
- package/README.zh.md +144 -95
- package/docs/images/dispatch-panel.png +0 -0
- package/docs/images/hero-banner.png +0 -0
- package/lib/api.js +1 -0
- package/lib/catalog.js +2 -1
- package/lib/client.js +131 -44
- package/lib/delegate-status.js +125 -0
- package/lib/delegate.js +299 -59
- package/lib/gate.js +57 -15
- package/lib/git-audit.js +383 -0
- package/lib/index.js +1185 -173
- package/lib/orchestrate.js +313 -89
- package/lib/reconcile.js +590 -0
- package/lib/retry.js +68 -5
- package/lib/rules.js +15 -2
- package/lib/state-store.js +455 -0
- package/lib/supervise.js +593 -87
- package/lib/timeline.js +464 -0
- package/lib/tool-surface.js +69 -21
- package/lib/worktree-manage.js +244 -0
- package/lib/worktree-tool.js +38 -0
- package/lib/worktree.js +687 -0
- package/lib/write-audit.js +333 -0
- package/lib/write-lease.js +161 -7
- package/lib/write-scope-tool.js +29 -0
- package/lib/write-scope.js +14 -18
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,14 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
<div align="center">
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# dsh-orchestrator
|
|
8
8
|
|
|
9
9
|
</div>
|
|
10
10
|
|
|
11
|
+
#### **Main-agent model plans, subagent models execute in isolation — the Dispatch · Supervise · Coordinate · Aggregate orchestrator plugin for DeepSeek Harness**
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+

|
|
13
14
|
|
|
14
|
-
[](https://github.com/SShiRkiT/dsh-orchestrator)
|
|
15
16
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
16
17
|
[](https://github.com/SShiRkiT/dsh-orchestrator)
|
|
17
18
|
[](https://nodejs.org)
|
|
@@ -20,191 +21,239 @@
|
|
|
20
21
|
[](https://github.com/SShiRkiT/dsh-orchestrator/stargazers)
|
|
21
22
|
[](https://www.npmjs.com/package/@sshirkit/dsh-orchestrator)
|
|
22
23
|
|
|
23
|
-
**English** | [简体中文](README.zh.md) · [
|
|
24
|
+
**English** | [简体中文](README.zh.md) · [What It Adds](#what-it-adds) · [Core Advantages](#seven-core-advantages) · [Tool Reference](#tool-reference) · [Installation & Compatibility](#installation--requirements) · [Panel & Configuration](#dispatch-panel--configuration) · [Contributing](#contributing--community)
|
|
24
25
|
|
|
25
26
|
</div>
|
|
26
27
|
|
|
28
|
+
**dsh-orchestrator** is a main/subagent orchestration plugin for local DeepSeek Harness (DSH) engineering sessions: hard guardrails keep the **main agent** focused on understanding requirements, breaking down tasks, overseeing progress, and final review, while **subagents** handle concrete implementation in parallel and in isolation.
|
|
29
|
+
|
|
30
|
+
---
|
|
27
31
|
|
|
28
32
|
<div align="center">
|
|
29
33
|
|
|
30
|
-
|
|
34
|
+
# What It Adds
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
It works smoothly alongside DSH's built-in collaboration tools and fills four practical gaps in intensive development:
|
|
31
39
|
</div>
|
|
32
40
|
|
|
41
|
+
**Keep the main model thinking, not doing chores**
|
|
42
|
+
> Hides and blocks file and terminal tools on the main agent so your flagship model doesn't drift into reading code or editing files directly.
|
|
43
|
+
|
|
44
|
+
**Isolated workspaces for every write task — merge only after review**
|
|
45
|
+
> Write tasks run in parallel inside separate temporary Git working directories by default, leaving your active checkout untouched and never merging into your main branch without approval.
|
|
33
46
|
|
|
34
|
-
|
|
47
|
+
**Background check-ins during work, delivery checks at handoff**
|
|
48
|
+
> Periodically watches running subagents in the background so stuck or drifting work can be nudged back on track via `send_message`;
|
|
49
|
+
> Verifies changed file scopes and required deliverables at handoff, and still reconciles state after restarts.
|
|
35
50
|
|
|
36
|
-
|
|
51
|
+
**One-shot parallel batches and multi-step pipelines**
|
|
52
|
+
> Run repetitive batches or multi-step pipelines without writing custom scripts — list the items and stages to advance automatically up to your concurrency cap, with single-item failures isolated.
|
|
53
|
+
|
|
54
|
+
---
|
|
37
55
|
|
|
38
|
-
> ###### _The definition layer trims the tools visible to the model in real time; the execution layer rejects any calls that slip through._
|
|
39
|
-
> ###### _Both layers read the current configuration on every request or call without using `tools.restrict`, avoiding the tool-visibility churn and prompt-cache invalidation that come with the host's tool-hiding mechanism._
|
|
40
|
-
- #### The main agent loses access to execution tools:
|
|
41
56
|
<div align="center">
|
|
42
57
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
> ###### _`delegate`, `orchestrate`, `send_message`, `interrupt_agent`, `todo_write`, `ask_user_question`, `compress`, and five read-only session log tools._
|
|
46
|
-
>
|
|
47
|
-
> ###### All file access, search, and terminal tools, plus any future MCP or third-party plugin tools, are automatically hidden and blocked at execution time
|
|
48
|
-
>
|
|
49
|
-
> ###### _(`read` / `edit` / `write` / `apply_patch`), (`grep` / `glob`), (`bash` / `pwsh`), `subagent` / `workflow`_
|
|
50
|
-
>
|
|
51
|
-
> ###### Even nested calls through `run_code` are blocked. To allow additional tools, check them under Allowed Tools on the right of the panel.
|
|
58
|
+
# Seven Core Advantages
|
|
59
|
+
|
|
52
60
|
</div>
|
|
53
61
|
|
|
54
|
-
|
|
55
|
-
|
|
62
|
+
### 1. Keep the Main Model Thinking, Not Doing Chores
|
|
63
|
+
|
|
64
|
+
This plugin puts a double lock on the main model — tools it shouldn't touch are both hidden and blocked, keeping it focused on planning, delegation, tracking, and review.
|
|
65
|
+
|
|
66
|
+
Hands-on work is left to subagents. Flip the master switch off anytime to restore DSH to normal without restarting the session.
|
|
67
|
+
|
|
68
|
+
- Allows 9 management actions by default
|
|
69
|
+
> `delegate`, `orchestrate`, `delegate_status`, `worktree_manage`, `send_message`, `interrupt_agent`, `todo_write`, `ask_user_question`, `compress`
|
|
70
|
+
- Automatically allows native Agent Teams task-board tools (`team_task_*`) when enabled;
|
|
71
|
+
- All other file, search, and terminal tools are hidden by default and can be toggled live in the right-hand panel.
|
|
56
72
|
|
|
57
73
|
---
|
|
58
74
|
|
|
59
|
-
### 2.
|
|
75
|
+
### 2. Dedicated Isolated Directory per Task — Merge Only When Satisfied
|
|
76
|
+
|
|
77
|
+
When multiple subagents edit code at once, the biggest risk is overwriting each other or messing up your active workspace.
|
|
78
|
+
Inside a Git repo, the plugin spins up a separate temporary working directory for each write task by default.
|
|
79
|
+
Finished work is never merged into your main branch behind your back — you or the main model inspect the changes first, then explicitly merge or discard them.
|
|
80
|
+
|
|
81
|
+
> Managed via `worktree_manage` to list, inspect diffs, merge (`merge` / `squash` / `ff-only`), discard, or prune;
|
|
82
|
+
> Supports switching between auto-isolation, strict isolation, and shared workspace modes. Once a directory is cleaned up or discarded, associated retired subagents are permanently locked so later messages can never write back into your main checkout by mistake.
|
|
60
83
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- **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**
|
|
65
|
-
- > For example, `deepseek-v4.1-flash` or `gpt-luna-6`
|
|
66
|
-
- **Anti-burn protection**: dispatch fails with an error if no subagent model is configured
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
### 3. Prevent Collisions Before Editing, Check Receipts at Handoff
|
|
67
87
|
|
|
68
|
-
|
|
88
|
+
When not using isolated directories, if two subagents try to edit overlapping files, the plugin blocks the conflict before startup. Each writable subagent declares its own `writeScope` to bound what it may change; if another subagent passes an overlapping `writeScope`, it is rejected with an error automatically.
|
|
89
|
+
At handoff, the plugin also checks whether a subagent touched files outside its scope or missed required deliverables, and flags read-only tasks that attempted to write. You can see every subagent's progress and audit status at a glance.
|
|
69
90
|
|
|
70
|
-
|
|
91
|
+
> Write tasks declare their allowed scope (`writeScope`), with optional tamper-check fingerprints (`expectedFingerprints`) and required output lists (`expectedTargets`);
|
|
92
|
+
> Call `delegate_status` anytime to inspect running, audited, and pending-review status across all subagents.
|
|
71
93
|
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
### 4. Dispatch Mode Panel
|
|
97
|
+
|
|
98
|
+
In the **Dispatch** panel next to the composer, main-agent and subagent models are configured completely separately:
|
|
99
|
+
- Both the default main model and default subagent model can be set explicitly.
|
|
100
|
+
|
|
101
|
+
> Pass `provider` / `model` (and optional `reasoning_effort`) via your prompt or `AGENTS.md` to specify the subagent model for a particular turn or workspace;
|
|
102
|
+
> The workspace's main-agent model can still be switched independently in DSH's native model selector for that session.
|
|
72
103
|
|
|
73
104
|

|
|
74
105
|
|
|
75
106
|
---
|
|
76
107
|
|
|
77
|
-
###
|
|
108
|
+
### 5. Scheduled Background Check-Ins
|
|
78
109
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
- However, **waking the Main Agent for judgment and steering still consumes Main Agent tokens**: supervision compresses continuous polling into one summary plus one decision; it does not make the entire supervision feature free.
|
|
82
|
-
- **The powerful model makes a quick assessment**: after receiving an inspection summary, the main agent needs only a small number of tokens to decide:
|
|
83
|
-
- **A) Progress is normal**: reply with one line, `巡检:正常`, and end the turn while the subagent continues.
|
|
84
|
-
- **B) Correct course**: call `send_message` to inject corrective instructions directly into the running subagent, specifying the right approach or telling it to skip a blocker.
|
|
85
|
-
- **C) Stop wasted work promptly**: call `interrupt_agent` to interrupt a subagent that has gone off track. If it is later reactivated with `send_message`, supervision automatically resumes and resets its notice count.
|
|
110
|
+
On long-running tasks, a subagent may occasionally get stuck in an error loop, wander into the wrong directory, or go off on a tangent.
|
|
111
|
+
The plugin checks running subagents' activity logs in the background at your configured interval and folds recent progress into a short report for the main model to decide on — nudging drifting workers right back on track via `send_message`.
|
|
86
112
|
|
|
113
|
+
> Reading logs and summarizing progress spends zero model quota; a small amount of main-model quota is only used when waking the main model to review or steer;
|
|
114
|
+
> Steer via `send_message` or stop via `interrupt_agent`; check-in interval, notice cap, and "Unlimited checks" are all adjustable live in the panel, alongside silent Todo list restoration.
|
|
87
115
|
|
|
88
116
|

|
|
89
117
|
|
|
90
|
-
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
### 6. Seamless Hot Reloads, Honest Cold-Restart Reconciliation
|
|
121
|
+
|
|
122
|
+
When the plugin hot-reloads, running subagents stay connected and background check-ins continue seamlessly. Even if you fully quit and reopen DSH, the plugin first reconciles state automatically: confirmed-stopped subagents safely release their file locks, and tasks missing pre-dispatch records are honestly marked as "audit incomplete".
|
|
123
|
+
|
|
124
|
+
> Automatically uses the host's built-in storage to track worktrees, tasks, and file lock states (falling back to in-memory mode on older hosts with zero extra dependencies);
|
|
125
|
+
> After a full restart, interrupted old tasks are never blindly resumed, avoiding duplicate execution.
|
|
91
126
|
|
|
92
127
|
---
|
|
93
128
|
|
|
94
|
-
###
|
|
129
|
+
### 7. Batch Jobs and Multi-Step Pipelines — List It and Let It Run
|
|
95
130
|
|
|
96
|
-
-
|
|
97
|
-
Dispatch self-contained, independent tasks (goal + allowed files + acceptance commands + fallback on failure). Multiple calls in the same turn start multiple Workers in parallel. The plugin injects a Simplified Chinese response instruction into every subagent's prompt and requires it to finish with a final summary in its reply, without calling `send_message` to report to its parent; the closing message is delivered to the main agent automatically.
|
|
98
|
-
**`writeScope` (required, `string[]`)**: declare the files or directories this worker may modify. Supported forms are exact files (`src/index.js`), directories (`dir/` or `dir/**`), and the global root (`*`). Relative paths are normalized lexically against `cwd`, with case-insensitive deduplication on Windows. Omitting the field produces `write-scope-missing`; an empty array or invalid path produces `write-scope-invalid`.
|
|
99
|
-
- **`orchestrate` (declarative batch pipelines)**:
|
|
100
|
-
Process a batch of items (`items`, 1–64) through a fixed set of stages (`stages`, 1–8), with `maxConcurrency` (1–16, default 4) controlling concurrency. Supports single-stage parallel fan-out and multistage **per-item pipelines without a global barrier**: an item enters stage 2 as soon as its stage 1 finishes, without waiting for slower items. Supports strict stage-level JSON Schema validation and per-item failure isolation.
|
|
101
|
-
**`writeScope` (required, `string[]`)**: one top-level declaration applies to the entire batch, which **holds its write scope atomically**. The normalized scope is injected into each stage's prompt as a boundary reminder.
|
|
102
|
-
- **Single-writer exclusion (enforced before dispatch)**: `delegate` holds a lease per subagent; `orchestrate` holds one for the entire batch. Both share a process-wide lease table and check for overlaps across tools. Any overlap raises `write-scope-conflict` **before any subagent starts**, including the conflicting path, lease holder, expiration time, and `agentsStarted: 0`, preventing Workers from overwriting the same file concurrently. Leases are released idempotently on `subagent/end`, `agent/disposed`, in `orchestrate`'s `finally` (including errors and aborts), and when the plugin is unloaded, with a 30-minute TTL as a backstop against leaks.
|
|
131
|
+
For repetitive or multi-step jobs like "inspect → edit → verify across 20 files," you don't need to dispatch tasks one by one. Just provide the item list and stage sequence, and the plugin moves them forward within your concurrency limit: once an item finishes step 1 it jumps straight into step 2 without waiting on slower items, one failure never cancels the rest, and each step can enforce a strict output format.
|
|
103
132
|
|
|
133
|
+
> Powered by `orchestrate`, supporting 1–64 items × 1–8 stages and 1–16 concurrent workers (default 4), with optional per-stage JSON format checks; in isolated mode each item gets its own working directory reused across stages, excluded from background check-ins.
|
|
104
134
|
|
|
105
135
|
---
|
|
136
|
+
|
|
106
137
|
<div align="center">
|
|
107
138
|
|
|
108
|
-
|
|
139
|
+
# Tool Reference
|
|
140
|
+
|
|
109
141
|
</div>
|
|
110
|
-
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:
|
|
111
142
|
|
|
112
|
-
|
|
113
|
-
| --- | --- | --- |
|
|
114
|
-
| **The main agent keeps doing the work itself** | **Relies on compliance with soft prompts**: the main agent / Team Lead still has the full set of tools, including `read`, `edit`, and `bash`. After a few turns, it often starts reading files and running commands itself, quickly filling the main context. | **Whitelist-Driven Hard Gate**: the main agent receives only 12 core planning and delegation tools by default (`allowedTools`). All other host file and terminal tools, plus any future MCP or third-party plugin tools, are automatically hidden and blocked at execution time (including nested calls through `run_code`), **enforcing a Main Agent dedicated entirely to planning and acceptance, with Subagents doing all the execution**. |
|
|
115
|
-
| **Low-cost models get stuck or go off track** | **Runtime black box**: after dispatch, you can only wait for completion or timeout, or block and poll with `wait_agent`. | **Periodic background inspection of event logs + dynamic correction by the powerful model**: a background timer reads running Workers' session event logs directly (reading and summarizing make no model calls), summarizing elapsed time, rounds, new tool calls, and the latest output. A lightweight notice wakes the main agent when something looks abnormal or takes too long, so the powerful model can assess it and give targeted corrections. |
|
|
116
|
-
| **Large batches of similar tasks** | Native `workflow` asks the model to write arbitrary JavaScript, which can get out of control and does not enforce consistent model routing. | **Declarative `orchestrate` pipelines**: structured `items × stages` fan-out and multistage pipelines, with per-item failure isolation and strict JSON Schema validation. Subagents share the low-cost route by default. |
|
|
143
|
+
The plugin exposes 4 orchestration and review tools exclusively to the main agent (hidden from subagents):
|
|
117
144
|
|
|
145
|
+
| Tool | What It Does | Common Parameters | Good to Know |
|
|
146
|
+
| --- | --- | --- | --- |
|
|
147
|
+
| `delegate` | Async task dispatch; supports parallel fan-out in one turn | `prompt`, `description`, `writeScope` (required for writes), `readOnly`, `isolation`, `expectedFingerprints`, `expectedTargets`, `cwd`, `provider` + `model` | Main agent only; auto-allocates an isolated directory or file lock for writes; attaches audit results at handoff and includes background check-ins |
|
|
148
|
+
| `orchestrate` | Parallel batch & multi-stage pipelines | `items` (1–64), `stages` (1–8, optional `schema`), `maxConcurrency` (1–16, default 4), `writeScope`, `readOnly`, `isolation`, `cwd`, `provider` + `model` | Each item advances without waiting on slower ones; single-item failures stay isolated; reuses one isolated directory per item; runs synchronously without background check-ins |
|
|
149
|
+
| `delegate_status` | One-stop acceptance overview for all subagents in this session | `childId` (optional), `includeCompleted` (default `true`), `limit` (1–64, default 20) | Read-only; separates run state, audit status, file locks, and directories awaiting review; missing records never mean "passed" |
|
|
150
|
+
| `worktree_manage` | List, inspect, merge, discard, or prune isolated directories | `action` (`list`/`inspect`/`merge`/`discard`/`prune`), `worktreeId` / `childId`, `strategy` (`merge`/`squash`/`ff-only`), `autoStageDirty`, `deleteAfterMerge`, `force`, `dryRun` | Main agent only; passing audit ≠ merged to your branch; merge conflicts preserve the scene; cleaning up or discarding locks retired workers |
|
|
151
|
+
|
|
152
|
+
---
|
|
118
153
|
|
|
119
154
|
<div align="center">
|
|
120
155
|
|
|
121
|
-
|
|
156
|
+
# Installation & Requirements
|
|
122
157
|
|
|
123
158
|
</div>
|
|
124
159
|
|
|
125
|
-
|
|
126
160
|
| Item | Requirement |
|
|
127
161
|
| --- | --- |
|
|
128
162
|
| **Host environment** | DeepSeek Harness Desktop / Web GUI |
|
|
163
|
+
| **Host version** | `>= 0.2.2-rc.2 < 0.2.3-0` (verified through **`0.2.2-rc.5`**) |
|
|
129
164
|
| **Node.js** | `>= 22` (bundled with the DSH Desktop runtime) |
|
|
130
|
-
| **Plugin
|
|
131
|
-
| **UI language** |
|
|
165
|
+
| **Plugin architecture** | Cordis backend service patch (`cordis.patch.yml`) + Web GUI client extension (`lib/client.js`) |
|
|
166
|
+
| **UI language** | Bilingual auto-switching (`zh-CN` / `en-US`) |
|
|
132
167
|
|
|
133
168
|
<div align="center">
|
|
134
169
|
|
|
135
|
-
|
|
170
|
+
# Version Compatibility
|
|
136
171
|
|
|
137
172
|
</div>
|
|
138
173
|
|
|
139
|
-
|
|
140
|
-
|
|
|
141
|
-
|
|
|
142
|
-
|
|
|
143
|
-
| `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`. |
|
|
144
|
-
| `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`. |
|
|
145
|
-
|
|
146
|
-
> Check the host version before upgrading: see About in DSH or read `package.json` in the installation directory. **Plugin `0.8.3+` with a `0.2.2-rc.1` or older host fails outright when dispatching**; an older plugin with a `0.2.2-rc.2+` host is also unusable. If you cannot upgrade the host yet, stay on plugin `v0.8.2`.
|
|
147
|
-
|
|
148
|
-
---
|
|
174
|
+
| npm Package | Plugin Version | Supported DSH Host | Notes |
|
|
175
|
+
| --- | --- | --- | --- |
|
|
176
|
+
| `@sshirkit/dsh-orchestrator` | `v1.0.0` onward | **DSH `>= 0.2.2-rc.2 < 0.2.3-0`** | Actively maintained; verified through `0.2.2-rc.5`. Incompatible with `0.2.2-rc.1` and earlier. `wait_agent` is intentionally excluded from the default whitelist (event-driven delivery + sidecar supervision replace blocking polling); check it manually in the panel if needed. |
|
|
177
|
+
| `dsh-orchestrator` (earlier unscoped package) | `v0.8.0` – `v0.8.2` | **DSH `<= 0.2.2-rc.1`** | Stay on `v0.8.2` if you cannot upgrade the host yet. |
|
|
149
178
|
|
|
150
179
|
<div align="center">
|
|
151
180
|
|
|
152
|
-
|
|
181
|
+
# Installation
|
|
153
182
|
|
|
154
183
|
</div>
|
|
155
184
|
|
|
156
|
-
|
|
185
|
+
**Option 1: DSH GUI**
|
|
186
|
+
|
|
187
|
+
Open the DSH Plugins page, choose **Add Plugin → Install Third-Party Plugin**, and enter any of the following valid specifiers (the first URL or npm package name is recommended):
|
|
157
188
|
|
|
158
189
|
```text
|
|
159
190
|
https://github.com/SShiRkiT/dsh-orchestrator
|
|
160
191
|
github:SShiRkiT/dsh-orchestrator#main
|
|
161
|
-
|
|
192
|
+
@sshirkit/dsh-orchestrator
|
|
162
193
|
```
|
|
163
194
|
|
|
195
|
+
**Option 2: CLI**
|
|
196
|
+
|
|
164
197
|
```bash
|
|
165
|
-
#
|
|
198
|
+
# Install from GitHub
|
|
166
199
|
dsh plugin --profile desktop add https://github.com/SShiRkiT/dsh-orchestrator
|
|
167
|
-
#
|
|
200
|
+
# Or install from npm
|
|
168
201
|
dsh plugin --profile desktop add @sshirkit/dsh-orchestrator
|
|
169
202
|
```
|
|
170
203
|
|
|
171
|
-
>
|
|
204
|
+
> If the **Dispatch** panel does not appear on the right of the composer after first install or a client update, fully quit and restart DSH.
|
|
172
205
|
|
|
173
206
|
---
|
|
174
207
|
|
|
175
208
|
<div align="center">
|
|
176
209
|
|
|
177
|
-
|
|
210
|
+
# Dispatch Panel & Configuration
|
|
178
211
|
|
|
179
212
|
</div>
|
|
180
213
|
|
|
181
|
-
|
|
214
|
+
## Right-Side Composer "Dispatch" Panel
|
|
215
|
+
|
|
216
|
+
The bilingual panel adapts automatically to DSH's locale and provides live controls without restarts:
|
|
217
|
+
|
|
218
|
+
- **Enable dispatch mode**: toggles the main-agent whitelist gate immediately for open conversations;
|
|
219
|
+
- **Enable Git Worktree isolation by default**: controls `isolation: "auto"` behavior for Git write tasks;
|
|
220
|
+
- **Main agent / Subagent default model & reasoning effort**: searchable model picker; main writes host `agent-default-model` (new sessions only), subagent applies from the next dispatch;
|
|
221
|
+
- **Subagent check interval / check count / Unlimited checks**: adjusts sidecar supervision live while workers run;
|
|
222
|
+
- **Right-hand `Allowed Tools` checklist**: live search, toggle individual tools on/off, or one-click reset to defaults.
|
|
223
|
+
|
|
224
|
+
## Configuration Reference
|
|
225
|
+
|
|
226
|
+
All 13 user-configurable fields below are `volatile` (dynamic hot config, no restart required: execution gates reread per call, tool surfaces update on the next request, and worker routes apply on the next dispatch):
|
|
182
227
|
|
|
183
228
|
| Field | Default | Description |
|
|
184
229
|
| --- | --- | --- |
|
|
185
|
-
| `enabled` | `true` | Master switch for dispatch mode. Turning it off restores host
|
|
186
|
-
| `
|
|
187
|
-
| `
|
|
188
|
-
| `
|
|
189
|
-
| `
|
|
190
|
-
| `
|
|
191
|
-
| `
|
|
192
|
-
| `
|
|
193
|
-
| `
|
|
194
|
-
| `
|
|
195
|
-
|
|
196
|
-
|
|
230
|
+
| `enabled` | `true` | Master switch for dispatch mode. Turning it off restores the native host tool surface; `delegate` / `orchestrate` stay disabled and bound supervision-turn hard locks still take priority. |
|
|
231
|
+
| `worktreeIsolationEnabled` | `true` | Controls whether `isolation: "auto"` creates isolated Git Worktrees with `git diff` / `git log` audits for Git write tasks (non-Git directories fall back to snapshot audits). |
|
|
232
|
+
| `allowedTools` | Unset (9 base tools; plus 4 registered native Team tools when `allowAgentTeam: true`) | Explicit main-agent tool whitelist. An explicit array (including `[]`) **replaces** the defaults rather than appending; updated live by the panel's `Allowed Tools` checklist. |
|
|
233
|
+
| `allowAgentTeam` | `true` | Allows the gated main agent to use host native Agent Teams task-board tools (`team_task_*`). Setting `false` takes precedence over the whitelist. |
|
|
234
|
+
| `workerProvider` | `""` | Default worker route provider (required; fails loudly if unset alongside `workerModel` without a per-call override — never falls back to the main model). |
|
|
235
|
+
| `workerModel` | `""` | Default worker route model (required; same anti-burn guard as above). |
|
|
236
|
+
| `workerReasoningEffort` | `""` | Default worker reasoning effort; leave empty to let the chosen worker model use its own default. |
|
|
237
|
+
| `superviseEnabled` | `true` | Master switch for background sidecar supervision (in the host plugin settings card). |
|
|
238
|
+
| `superviseIntervalSeconds` | `600` | Sidecar supervision interval in seconds (`10–86400`); changes apply immediately to running workers. |
|
|
239
|
+
| `superviseMaxNoticesPerChild` | `3` | Maximum supervision notices per subagent (`0–20`). When unlimited checks are off, `0` disables supervision. |
|
|
240
|
+
| `superviseUnlimited` | `false` | Ignores `superviseMaxNoticesPerChild` (including `0`) and continues checking at each interval until the worker stops, delivers, or ends. |
|
|
241
|
+
| `superviseNotifyOnNoProgress` | `false` | Whether to notify even when a worker's log shows no new activity (in the host plugin settings card; effectively always on when `superviseUnlimited` is enabled). |
|
|
242
|
+
| `restoreTodoOnSupervision` | `true` | Silently restores Todo UI state via `todo/write` from an eligible snapshot during supervision, with no model history entry and zero token cost (in the host plugin settings card). |
|
|
243
|
+
|
|
244
|
+
> Note: The config schema also includes `toolCatalog`, an **internal read-only runtime mirror** published automatically by the plugin so the Web panel can render the host's complete registered tool list — no manual editing is needed. The main agent's default model lives in the host's `agent-default-model`, read and written by the same Dispatch panel.
|
|
197
245
|
|
|
246
|
+
---
|
|
198
247
|
|
|
199
248
|
<div align="center">
|
|
200
249
|
|
|
201
|
-
|
|
250
|
+
# Contributing & Community
|
|
202
251
|
|
|
203
252
|
</div>
|
|
204
253
|
|
|
205
|
-
The Chinese README is maintained first, and this English version is kept in sync. These
|
|
254
|
+
The Chinese README is maintained first, and this English version is kept in sync. These documents cover terminology, architecture decisions, contribution workflows, and support channels:
|
|
206
255
|
|
|
207
|
-
- Project glossary [`
|
|
256
|
+
- Project glossary [`GLOSSARY.md`](docs/GLOSSARY.md)
|
|
208
257
|
- Architecture decision records (ADRs) [`docs/adr/`](docs/adr/)
|
|
209
258
|
- Release notes [`docs/releases/`](docs/releases/)
|
|
210
259
|
- Contribution guide [`.github/CONTRIBUTING.md`](.github/CONTRIBUTING.md)
|
|
@@ -215,7 +264,7 @@ The Chinese README is maintained first, and this English version is kept in sync
|
|
|
215
264
|
|
|
216
265
|
<div align="center">
|
|
217
266
|
|
|
218
|
-
|
|
267
|
+
# License
|
|
219
268
|
|
|
220
269
|
</div>
|
|
221
270
|
|