@sshirkit/dsh-orchestrator 0.9.1 → 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 CHANGED
@@ -4,14 +4,15 @@
4
4
 
5
5
  <div align="center">
6
6
 
7
- # DSH Orchestrator
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
- #### **A powerful model plans, low-cost models do the work — the dispatch mode plugin with hard tool isolation for DeepSeek Harness**
13
+ ![dsh-orchestrator pixel-art cover](docs/images/hero-banner.png)
13
14
 
14
- [![version](https://img.shields.io/badge/version-0.8.8-4176E6?style=flat-square)](https://github.com/SShiRkiT/dsh-orchestrator)
15
+ [![version](https://img.shields.io/badge/version-v1.0.0-4176E6?style=flat-square)](https://github.com/SShiRkiT/dsh-orchestrator)
15
16
  [![dsh-plugin](https://img.shields.io/badge/DeepSeek%20Harness-dsh--plugin-4176E6?style=flat-square)](https://github.com/deepseek-ai/deepseek-harness)
16
17
  [![platform](https://img.shields.io/badge/platform-Web%20GUI%20%7C%20Desktop-5c6bc0?style=flat-square)](https://github.com/SShiRkiT/dsh-orchestrator)
17
18
  [![node](https://img.shields.io/badge/node-%3E%3D22-339933?style=flat-square&logo=nodedotjs&logoColor=white)](https://nodejs.org)
@@ -20,179 +21,239 @@
20
21
  [![GitHub stars](https://img.shields.io/github/stars/SShiRkiT/dsh-orchestrator?style=flat-square&logo=github)](https://github.com/SShiRkiT/dsh-orchestrator/stargazers)
21
22
  [![npm](https://img.shields.io/npm/v/@sshirkit/dsh-orchestrator?color=cb3837)](https://www.npmjs.com/package/@sshirkit/dsh-orchestrator)
22
23
 
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
+ **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
- ## Core Features
31
- </div>
34
+ # What It Adds
32
35
 
33
- ### 1. A powerful Main Agent and low-cost Subagents (independent panel, immediate updates)
34
36
 
35
- In the dedicated **Dispatch mode panel** below the composer, the main-agent and subagent model routes are fully independent:
36
- - **Main Agent**: choose your strongest flagship model to focus on clarifying requirements, splitting tasks, correcting course, and accepting final results.
37
- - > For example, `gpt-astra-6` or `claude-opus-5.5`
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
- - > For example, `deepseek-v4.1-flash` or `gpt-luna-6`
40
- - **Anti-burn protection**: dispatch fails with an error if no subagent model is configured
41
37
 
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`
38
+ It works smoothly alongside DSH's built-in collaboration tools and fills four practical gaps in intensive development:
39
+ </div>
43
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.
44
43
 
45
- ![Dispatch Mode Panel](docs/images/dispatch-panel.png)
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.
46
+
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.
50
+
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.
46
53
 
47
- ### 2. A hard whitelist gate: the main agent plans and accepts results; subagents execute
54
+ ---
48
55
 
49
- Instead of relying on prompts asking the main model to use subagents more often, the plugin installs two guards at DSH's tool-definition outlet (`tools.definitions`) and execution layer (`tools.guard`), using a **whitelist-driven** approach. The definition layer trims the tool table visible to the model in real time, treating global tools and tools in scopes such as `ops_*` equally; the execution layer rejects any calls that slip through. Both layers read the current configuration on every request or call, without creating `tools.restrict` event storms, avoiding tool-visibility churn and prompt-cache invalidation from the official tool-hiding mechanism.
50
- - **Main Agent stripped of all execution tools**:
51
56
  <div align="center">
52
57
 
53
- > ### DEFAULT_ALLOWED_TOOLS permits only 12 planning, delegation, and read-only session tools by default
54
- >
55
- > _`delegate`, `orchestrate`, `send_message`, `interrupt_agent`, `todo_write`, `ask_user_question`, `compress`, and five read-only session log tools._
56
- >
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
- >
59
- >_(`read` / `edit` / `write` / `apply_patch`), (`grep` / `glob`), (`bash` / `pwsh`), `subagent` / `workflow`_
60
- >
61
- > ### 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
+
62
60
  </div>
63
61
 
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.
65
- - **Switch at any time**: turn off Enable dispatch mode to restore host tools without reopening the session. Plugin dispatch tools remain disabled, and gates for a bound inspection turn still take priority.
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.
72
+
73
+ ---
74
+
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.
83
+
84
+ ---
85
+
86
+ ### 3. Prevent Collisions Before Editing, Check Receipts at Handoff
87
+
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.
90
+
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.
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.
103
+
104
+ ![Dispatch Mode Panel](docs/images/dispatch-panel.png)
105
+
106
+ ---
66
107
 
67
- ### 3. Periodic background inspection of event logs and correction by the powerful model
108
+ ### 5. Scheduled Background Check-Ins
68
109
 
69
- Low-cost Subagents can occasionally get stuck on complex shell escaping or errors. The plugin includes a background inspector driven entirely by logs:
70
- - **Reading the logs makes no model calls**: a background timer directly reads running Workers' session event logs at the configured interval (600 seconds by default), summarizes elapsed time, rounds, new tool calls, and the latest output, then combines them into a notice that wakes the main agent. Reading and summarizing make no LLM requests
71
- - 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.
72
- - **The powerful model makes a quick assessment**: after receiving an inspection summary, the main agent needs only a small number of tokens to decide:
73
- - **A) Progress is normal**: reply with one line, `巡检:正常`, and end the turn while the subagent continues.
74
- - **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.
75
- - **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`.
76
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.
77
115
 
78
116
  ![Example inspection notice and correction](docs/images/patrol-notice.png)
79
117
 
80
- *Inspection and correction in practice: a low-cost subagent got stuck on shell quotes and backslash escaping. After a scheduled inspection woke the main agent, it supplied the correct syntax directly through `send_message` to get the worker back on track.*
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.
81
126
 
82
- ### 4. `delegate` and `orchestrate`, built for dispatch mode
127
+ ---
128
+
129
+ ### 7. Batch Jobs and Multi-Step Pipelines — List It and Let It Run
83
130
 
84
- - **`delegate` (asynchronous tasks on demand / parallel fan-out)**:
85
- 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.
86
- **`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`.
87
- - **`orchestrate` (declarative batch pipelines)**:
88
- 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.
89
- **`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.
90
- - **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.
91
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.
92
134
 
93
135
  ---
136
+
94
137
  <div align="center">
95
138
 
96
- ### Why Do You Need This Plugin Alongside Native `subagent` and `Agent Team`?
139
+ # Tool Reference
140
+
97
141
  </div>
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:
99
142
 
100
- | Pain point | Native `subagent` / official `Agent Team` | DSH Orchestrator (unique to this plugin) |
101
- | --- | --- | --- |
102
- | **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**. |
103
- | **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. |
104
- | **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):
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 |
105
151
 
152
+ ---
106
153
 
107
154
  <div align="center">
108
155
 
109
- ## Requirements
156
+ # Installation & Requirements
110
157
 
111
158
  </div>
112
159
 
113
-
114
160
  | Item | Requirement |
115
161
  | --- | --- |
116
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`**) |
117
164
  | **Node.js** | `>= 22` (bundled with the DSH Desktop runtime) |
118
- | **Plugin form** | Cordis backend service patch (`cordis.patch.yml`) + Web GUI client extension (`lib/client.js`) |
119
- | **UI language** | Adapts to Chinese / English (`zh-CN` / `en-US`) |
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`) |
120
167
 
121
168
  <div align="center">
122
169
 
123
- ### DSH host version compatibility
170
+ # Version Compatibility
124
171
 
125
172
  </div>
126
173
 
127
-
128
- | Plugin version | Supported DSH host | Notes |
129
- | --- | --- | --- |
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. |
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`. |
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`. |
133
-
134
- > 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`.
135
-
136
- ---
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. |
137
178
 
138
179
  <div align="center">
139
180
 
140
- ## Installation
181
+ # Installation
141
182
 
142
183
  </div>
143
184
 
144
- Select Add from GitHub on the DSH plugin page. All three forms below are accepted; paste one into the input field. The first is recommended because it is the least likely to be misinterpreted by the client:
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):
145
188
 
146
189
  ```text
147
190
  https://github.com/SShiRkiT/dsh-orchestrator
148
191
  github:SShiRkiT/dsh-orchestrator#main
149
- SShiRkiT/dsh-orchestrator#main
192
+ @sshirkit/dsh-orchestrator
150
193
  ```
151
194
 
195
+ **Option 2: CLI**
196
+
152
197
  ```bash
153
- # Equivalent CLI installation
198
+ # Install from GitHub
154
199
  dsh plugin --profile desktop add https://github.com/SShiRkiT/dsh-orchestrator
155
- # npm installation (available after publication to npm)
200
+ # Or install from npm
156
201
  dsh plugin --profile desktop add @sshirkit/dsh-orchestrator
157
202
  ```
158
203
 
159
- > After installation, **fully quit and reopen DSH** (client plugins are composed at startup and do not support hot updates). When upgrading, **uninstall the old version** from the plugin page before adding this repository again or `@sshirkit/dsh-orchestrator` (available after publication to npm); two installed copies will compete over the same tool declarations.
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.
160
205
 
161
206
  ---
162
207
 
163
208
  <div align="center">
164
209
 
165
- ## Configuration
210
+ # Dispatch Panel & Configuration
166
211
 
167
212
  </div>
168
213
 
169
- All configuration fields are volatile (dynamic configuration), with no DSH restart required. Execution gates reread them on each call, tool surfaces on the next request, and subagent routes on the next dispatch.
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):
170
227
 
171
228
  | Field | Default | Description |
172
229
  | --- | --- | --- |
173
- | `enabled` | `true` | Master switch for dispatch mode. Turning it off restores host tools, while `delegate` / `orchestrate` remain disabled and bound inspection Todo/normal-declaration gates still take priority. |
174
- | `workerProvider` / `workerModel` | `""` | Default subagent model route (required; dispatch fails if unconfigured and never silently inherits the main-agent model). |
175
- | `workerReasoningEffort` | `""` | Subagent reasoning effort. Leave empty to let the selected model use its own default. |
176
- | `allowedTools` | 12 built-in tools | Whitelist-driven: the main agent may use only the listed tools; other host, MCP, and plugin tools are automatically hidden and disabled. Check or uncheck tools under Allowed Tools on the right of the panel to allow or disable them; changes apply on the next message. |
177
- | `superviseEnabled` | `true` | Master switch for background subagent inspection, in the host plugin settings card. |
178
- | `superviseIntervalSeconds` | `600` | Inspection interval in seconds, from 10 to 86400. Changes take effect immediately while workers are running. |
179
- | `superviseMaxNoticesPerChild` | `3` | Maximum inspection notices per subagent (0–20). Unless unlimited inspection is enabled, `0` disables inspection. Running subagents remain registered; raising the value above 0 or enabling unlimited inspection restores due-time checks. |
180
- | `superviseUnlimited` | `false` | Enables unlimited inspections. Ignores the `superviseMaxNoticesPerChild` limit (including `0`) and continues inspecting at each interval until the subagent stops, delivers, or ends. Notice titles omit the denominator (`第 N 次`). |
181
- | `superviseNotifyOnNoProgress` | `false` | Whether to notify even when the subagent log has no new activity (effectively always enabled when `superviseUnlimited` is on), in the host plugin settings card. |
182
- | `restoreTodoOnSupervision` | `true` | Silently restores Todo UI state via `todo/write` from an eligible snapshot during supervision, with no model history entry or model token cost. Like `superviseEnabled` / `superviseNotifyOnNoProgress`, this appears in the host plugin settings card, outside the input-bar shortcut popup. |
183
-
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.
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.
185
245
 
246
+ ---
186
247
 
187
248
  <div align="center">
188
249
 
189
- ## Contributing & Community
250
+ # Contributing & Community
190
251
 
191
252
  </div>
192
253
 
193
- The Chinese README is maintained first, and this English version is kept in sync. These resources cover the project design, how to contribute, and where to ask for help.
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:
194
255
 
195
- - Project glossary [`CONTEXT.md`](CONTEXT.md)
256
+ - Project glossary [`GLOSSARY.md`](docs/GLOSSARY.md)
196
257
  - Architecture decision records (ADRs) [`docs/adr/`](docs/adr/)
197
258
  - Release notes [`docs/releases/`](docs/releases/)
198
259
  - Contribution guide [`.github/CONTRIBUTING.md`](.github/CONTRIBUTING.md)
@@ -203,7 +264,7 @@ The Chinese README is maintained first, and this English version is kept in sync
203
264
 
204
265
  <div align="center">
205
266
 
206
- ## License
267
+ # License
207
268
 
208
269
  </div>
209
270