DeepSeek dsh-superagent: Router-Worker Isolation for Parallel Coding Sessions
说明与用途
dsh-superagent 通过将调度器与工作进程分离,保持代理的响应性并加速任务完成。
问题
Long-running coding agents risk freezing when a worker task blocks the dispatcher, leading to unresponsive user interfaces and lost work.
结果
The router-worker split reduces task completion time (p95 15.7 min vs 29.5 min) and prevents worker failures from blocking the dispatcher.
工作流
- Clone the prototype repository
- Install dependencies with pnpm
- Build the bundle
- Configure the agent to read SETUP.md and answer permission questions
- Run the router session to listen for @mentions
- Router receives events and authorizes work
- Router dispatches a Ticket to an isolated worker
- Worker performs coding, tests, and opens a PR
- Worker reports back via SQLite outbox
- Router forwards replies to the original channel
证据
A long-running Router session receives events, decides what is authorized work, and dispatches Tickets. Each Ticket gets its own isolated Worker session and working directory.
Under a noisy message stream the router-worker design finished tasks with a p95 of 15.7 minutes versus 29.5 minutes for a single-session baseline.
The Router runs a restricted preset (dsh-superagent-router). Its tool set is deliberately small; shell commands and job waits are capped at a few seconds.
- 记录日期: 2026-11-02T09:44:03.173Z