Preface¶
DeepSeek Harness (DSH) can already create sessions, dispatch prompts, cancel execution, and read logs in any workspace. When working across multiple projects in parallel, a common practice is to manually open multiple sessions, keep track of “which window is running which repo,” and repeatedly refresh logs waiting for results after dispatching tasks. This approach works, but it lacks a tool-level abstraction for naming, ownership relationships, and the “dispatch work — receive report” layer.
dsh-squad is a community plugin nilesh32236/dsh-squad (npm package name @nilesh32236/dsh-squad), maintained by nilesh32236. It creates and coordinates Worker sessions running in other workspaces from a single Orchestrator session: you mainly talk to the Orchestrator, which queues or injects tasks to each Worker, monitors progress in the background, collects reports, and handles Worker reports and escalation requests.
What This Is¶
In one sentence: dsh-squad adds a layer to DSH for “naming Workers, remembering Orchestrator ownership, and turning cross-project task dispatch into tool calls.”
The data flow can be summarized as: User → Orchestrator → multiple Workers (each in a different project directory) → Workers wake the Orchestrator via squad_report etc. and consolidate results. Each Worker uses its own persisted session log as the working source of truth; the plugin maintains the roster (a pointer list) as well as reports and escalations submitted by Workers.
Differences from Common Multi-Agent Approaches¶
Many multi-agent solutions force you to choose between blocking wait (Orchestrator idling) and polling (repeatedly checking status, consuming tokens). The README states that dsh-squad uses a different mechanism:
- Workers proactively wake the Orchestrator: when a Worker reports or escalates, the plugin delivers a message to the Orchestrator session; if the Orchestrator is idle it immediately starts a turn, if busy the message is queued after the current turn — no polling needed.
squad_watchis non-blocking: it registers a real DSH background job and immediately returns a job id, so the Orchestrator can continue planning while long tasks run; it gets woken with the result when done.- The fleet survives restarts: the roster is persisted; Worker sessions use the durable title
squad:<name>, so they can be identified by title even if state files are lost; on re-spawn it adopts the existing session instead of creating a duplicate.
Requirements¶
- DeepSeek Harness
>= 0.1.7-rc.1(consistent withengines.dshinpackage.json). - When using
squad_watch, the Harness Web profile must provide@deepseek-ai/dsh-tool-jobs; the README states the standard DSH web profile already includes it.
Installation and Enabling¶
Install from npm or GitHub (requires --profile web):
dsh plugin --profile web add @nilesh32236/dsh-squad
# Or install the same plugin directly from GitHub:
# dsh plugin --profile web add github:nilesh32236/dsh-squad
Enable the corresponding bundle in the plugin manager and then restart DSH — plugin JavaScript does not support hot reloading.
For local development linking, see the repo README (includes tools/dev-links.mjs); everyday installs from npm/GitHub do not need this script.
Orchestrator and Worker Tool Overview¶
Orchestrator Side¶
| Tool | Purpose |
|---|---|
squad_spawn |
Create or adopt Workers in other workspaces; idempotent by name; unknown cwd is registered as a new workspace |
squad_resume |
Re-attach all Workers and state what each needs; should be called first after every session restore or restart |
squad_brief |
One-click user-facing status summary: one line per Worker, pending decisions, suggested next steps |
squad_list |
Roster: projects, status, queued tasks, unread reports and escalations |
squad_assign |
Dispatch a task; queue starts an independent new turn, steer injects into the currently running turn; can also reply to an escalation |
squad_wait |
Block until Workers finish; mode: "all" collects the entire fan-out at once |
squad_watch |
Same conditions as squad_wait, but runs in the background and immediately returns a job id |
squad_status |
Details for a single Worker |
squad_collect |
Read reports and escalations and mark them as delivered |
squad_stop |
Cancel a Worker’s current turn; optionally keep or discard queued tasks |
squad_close |
Remove a Worker from the roster; the session log is retained |
Worker Side¶
| Tool | Purpose |
|---|---|
squad_report |
Submit results (done / partial / blocked) along with summary and artifacts; wakes the Orchestrator |
squad_escalate |
Request a decision from the Orchestrator that only it can make; wakes the Orchestrator |
Calling the above Worker tools from a non-Squad Worker session is rejected, so they are relatively safe to use in other scenarios. Orchestrator-side tools can address Workers by name or session id.
Task Delivery: queue and steer¶
Both are the same kind of persistent message, with different delivery targets:
| Mode | Delivery | Use case |
|---|---|---|
queue |
next-turn, a new turn after the current one ends |
Routine dispatch, without interrupting an ongoing turn |
steer |
next-step, injected at the next step boundary of the current turn |
Real-time redirection, replying to an escalation |
When a Worker is idle, both modes start a turn immediately.
Typical Usage¶
Quick Start¶
- Create a new session and select the Orchestrator agent preset.
- Create a fleet by project and role, for example:
squad_spawn name: reviewer project: my-frontend preset: squad-reviewer
squad_spawn name: fixer project: my-backend preset: squad-fixer
- Fan out first, then gather all at once.
squad_assignreturns immediately, so you should dispatch all tasks before waiting on any Worker:
squad_assign name: reviewer task: "Audit the auth flow for missing checks."
squad_assign name: fixer task: "Fix the flaky retry test in tests/retry.test.js."
squad_wait mode: all
squad_collect name: reviewer
squad_collect name: fixer
The README emphasizes that the most common mistake is looping over Workers doing “assign → wait → collect,” which serializes a fleet that could have run in parallel. Assign to everyone first, then wait / collect.
- For tasks that take a long time, use
squad_watchinstead ofsquad_wait, so the Orchestrator can keep doing other work.
How the Orchestrator Learns a Worker Finished¶
A report or escalation inserts a message into the Orchestrator session like this, prompting you to use squad_collect to read the full text. So an idle Orchestrator still responds without polling. If you prefer to poll yourself, set notifyOnReport: false (mentioned in the README).
Campaign Memory Directory¶
squad_spawn reports the campaign tree; reports are automatically archived as markdown, with paths shaped like:
$DSH_HOME/squad/campaigns/<orchestrator-session>/
INDEX.md # Rebuilt after every report: roster table and layout
reports/ # One md per Worker report
escalations/ # One md per escalation
notes/ # Campaign memory written by the Orchestrator
tasks/ # Task board
This tree is partitioned by Orchestrator session; a new Orchestrator session starts with an empty tree. The roster is the plugin index; this directory is a persistent record you can read separately with a file browser.
Worker Failure Signal¶
The README states: no squad_report at the end of a turn is treated as a failure (model errors, giving up, being killed mid-session, etc. are all handled uniformly this way). See the repo’s full documentation for specific recovery and retry strategies (the fetched excerpt is truncated here).
Use Cases and Cautions¶
Suitable for: running role-based Workers (review, fix, targeted optimization, etc.) in parallel across multiple repos/workspaces, while wanting to dispatch work, receive reports, and handle blocking escalations from a single Orchestrator chat; wanting to avoid the Orchestrator blocking on polling or waiting idly.
Cautions:
- The plugin runs with the permissions of the current DSH process; before installing, read the GitHub source and the MIT license (
package.json) to confirm it meets your security and compliance requirements. - The community directory SkillHub plugin page and GitHub are independent sources of information and have no official affiliation with DeepSeek / 幻方; the DSH ecosystem philosophy is “everything is a plugin,” and the facts in this article are based on the repo README and
package.json. - The current npm version is 1.1.0; GitHub stars are 0 (as of the time the data was fetched), which does not indicate functional completeness — please self-test against the README and releases before use.
Closing¶
dsh-squad turns the creation of cross-workspace Worker sessions, task queueing and steering, background monitoring, report collection, and escalation handling into a set of Orchestrator-side tools, and relies on Worker reporting to wake the Orchestrator, a persistent roster, and a campaign directory to reduce coordination costs for multi-project parallel work. If you already use DSH to manage multi-repo agents, you can enable the Web profile bundle with the install command above and try the flow with the Orchestrator preset and squad_spawn / squad_assign / squad_wait.
- Community directory: https://www.skillhub.cn/plugins/nilesh32236/dsh-squad
- Source and documentation: https://github.com/nilesh32236/dsh-squad