Introduction¶
In DeepSeek Harness (DSH), a single agent turn completes all the work, and long-running tasks block the conversation. This plugin adds a scheduler to DSH: an agent that keeps the conversation idle while offloading long-running tasks to background workers.
Plugin Overview¶
dsh-multitask-dispatcher is a DSH plugin maintained by zman406986. It turns a DSH conversation into a scheduler that processes tasks in parallel through background workers, with results returned to the main conversation.
Core Capabilities¶
Dispatcher and Workers¶
The dispatcher has three tools: deliver_result, message_agent, and spawn_dispatcher. Workers are leaf nodes that only see the prompt written by the dispatcher, not the user’s conversation. When a worker finishes, it sends results or interim notes back to the dispatcher via send_message.
Steering a Running Worker¶
The /dispatcher-steer <worker id> <instruction> command can course-correct a worker that is still running.
Spawning a Second Dispatcher¶
A dispatcher can invoke spawn_dispatcher to spawn another dispatcher. The new dispatcher is a top-level session with its own sidebar entry, chat, and state, and has no visibility into the original conversation. The two dispatchers communicate via message_agent. Only a dispatcher started by the user can spawn; a spawned dispatcher does not have the spawn_dispatcher tool.
Model Selection¶
spawn_dispatcher accepts a model parameter for the team lead being spawned, and a worker_model for the default model of workers that lead subsequently spawns. A worker can specify its own model when invoked via subagent. Values are written in the provider/model-id format, e.g. deepseek/deepseek-reasoner. When parameters are omitted, the caller’s routing is inherited.
Installation & Activation¶
Environment Requirements
- Node.js 22.15 or later
- DSH 0.2.2-rc.1 (the plugin enforces this exact version)
- npm
- pnpm (in PATH)
Installation Steps
git clone https://github.com/zman406986/dsh-bot.git
cd dsh-bot
npm install
npm run build:client
dsh plugin --profile <profile> add file:<path-to-this-checkout>
After installation, dsh plugin add hard-links the checkout directory into the config file via a pnpm file: reference. To refresh after a rebuild, re-run the dsh plugin add command.
When installing via the Web UI, activateNewBundles defaults to false, so you need to manually activate dsh-multitask-dispatcher on the plugin page.
Typical Usage¶
- Open a normal DSH conversation
- Type
/dsh-bot— the conversation becomes a dispatcher - Submit a task; the dispatcher will keep responding while long-running tasks are handled by workers
Close the chat or uninstall the plugin to stop using it.
Configuration¶
All fields are available on the plugin card in the DSH plugin page. Changes take effect from the next conversation turn.
| Field | Default | Description |
|---|---|---|
enabled |
true |
Toggle the plugin on/off |
wakeCoalesceWindowMs |
0 |
Coalesce background wakes into a single dispatcher turn; 0 means wake immediately |
inboxEnabled |
false |
Enable the optional file inbox |
inboxDir |
"" |
Inbox directory; empty disables it |
inboxRescanIntervalMs |
5000 |
Rescan interval (minimum 1000 ms) |
microcompactEnabled |
false |
Clear stale tool results from the dispatcher session |
Use Cases & Notes¶
Suited for scenarios that require parallel processing of long-running tasks within DSH. The plugin runs with the permissions of the current DSH process; review the source code and license before installing. Current version is 0.1.0, not published to npm, licensed under MIT.
Summary¶
dsh-multitask-dispatcher uses a dispatcher + workers pattern to let DSH stay idle in the main conversation while processing long-running tasks in parallel. It is well-suited for scenarios involving long-duration or compute-intensive tasks.