Supervisor preset, Python worker CLI and Workers panel for dispatching independent agent processes, checking results with repeatable commands and resuming tasks with corrections. Requires Python 3.9+ and a configured worker engine.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:tsinling0203/dsh-supervisor-mode
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Dispatch independent workers from DeepSeek Harness, follow their progress, and verify results with repeatable commands.
中文 · Architecture · Install · Quick start · Command reference · FAQ
Supervisor mode gives the main session responsibility for understanding requests, dispatching tasks, tracking progress, and checking results. Independent worker processes handle code changes, tests, and other execution work through DSH, Codex, OpenCode, Antigravity, or Claude.
Architecture

The user provides the goal, project directory, and acceptance criteria to the main session, which reports progress, verification results, and artifact paths. The main session dispatches workers through sw. Workers return events, results, and errors to the executor, which saves task state and verification evidence locally. Feedback returns to the control flow through these paths.
- Events. DSH notifies the main session when a background
sw runfinishes.sw agentconsumes new task events and handles optional reviews and notifications according to configuration. - Errors. Execution failures, timeouts, and failed verification enter the error handling in
sw agent. Configured retries callsw continuewithin the round limit, closing the correction and verification loop. - Periodic checks. By default,
sw patrolchecks progress and processes every 120 seconds. It writes stall alerts and process exit results back to task records and notices, which the main session reads throughsw inbox. The Workers panel periodically refreshes status throughsw serve.
Detached tasks use a background sw wait to wait for a terminal state, after which the DSH background job notifies the main session.
See the architecture guide for component responsibilities and the complete data flow.
Workers panel

HTML task dashboard with demo data. Inside DSH, the Workers button in the conversation header opens the task panel.
- Independent execution. Each worker has its own process and session, works in the directory set by
--cwd, and saves separate execution logs. - Optional workspace isolation. Copy mode or a detached Git worktree preserves actual starting files. Preview and explicitly integrate verified delivery with
apply; undo from its backup withunapply. - Durable task pool.
sw queueadds priority, dependency DAGs, admission limits, stop/resume and explicit retry budgets. Review, confirmation and isolated delivery integration can gate successors. See the task pool guide. - Per-round results and external work. Structured reports remain separate from process exits. Linked experiments/exports block acceptance and successors while unresolved; evidence timeouts never redispatch work. See results and linked jobs.
- Fresh receipts and history maintenance. Dependencies are checked at admission and activation. Segmented event compression preserves cursors; explicit cleanup protects retained jobs and unread notices. See the maintenance guide.
- Repeatable verification. Set an acceptance command with
--verify. It runs automatically after the worker finishes and writes the result toverdict.json. - Evidence and test protection.
sw verify JOB_ID --checkdetects workspace and artifact changes since verification. Add--protect-testswhen dispatching to audit removed tests, fewer assertions and skip markers. See commands. - Targeted follow-up. Use
sw continueto send corrections. It resumes the worker's session when a session ID is available. - Visible progress. The Workers panel, HTML dashboard, and
sw briefshow task status, elapsed time, and recent activity. - Baseline and scope.
--baselinecompares starting tests,--snapshotpreserves actual files, and--scopechecks changes;diffand explicitrestoreinspect and recover delivery changes. - Long task management. Optional workspace serialization, request deduplication, stable notice acknowledgements, pin/archive/retire and task metrics.
The reference capability comparison records adopted features, validation limits and deferred work.
Install
Requires DSH >=0.2.1-rc.1 <0.3.0 with a desktop or web profile, Python >=3.9, and Node.js >=18. The CLI uses the Python standard library. macOS and Linux have been verified. Windows has yet to be verified.
Install into DSH
Clone the repository and get its absolute path.
git clone https://github.com/tsinling0203/dsh-supervisor-mode.git
cd dsh-supervisor-mode
pwd
Send the following request in a DSH conversation, replacing the path with the output above.
Use plugin_manager to install the local bundle at /absolute/path/dsh-supervisor-mode.
Then check that include:supervisor-mode and include:preset-supervisor are active.
Restart DSH and select 监督模式 in the mode picker. On startup, the plugin installs the CLI, worker configurations, and skill, then starts the panel data service.
You can also select a .tgz package from Releases and use its download URL as the installation target in plugin_manager. See the installation guide for further configuration.
Run this command from the source directory to install the CLI, worker configurations, and skill under $DSH_HOME, which defaults to ~/.dsh.
./scripts/install.sh
Check the environment
The examples below use sw. If your shell cannot find it, use the default installation path ~/.dsh/workers/sw, or add ~/.dsh/workers to PATH.
sw doctor
sw models
The default execution engine is dsh. Configure the DSH headless profile and credentials for your model provider. sw doctor checks the environment, and sw models lists providers and credential status. Other engines require their respective CLI and authentication.
Quick start
Use a DSH conversation
Select 监督模式 and provide the project directory, task goal, and acceptance command. For example, for a project that uses pnpm, send this request.
The project is at /absolute/path/to/project.
Fix the intermittent login test failure and explain the cause.
The acceptance command is pnpm test -- login.
Report the job ID, verification result, and changed files when complete.
The main session runs sw run as a DSH background job and reports the job ID. You can continue the conversation or open the Workers panel to follow progress. When the background job finishes, DSH notifies the main session to check the result and report back.
Run your first task in a terminal
This example creates a temporary directory, asks the default dsh worker to write a file, and checks its contents.
sw_demo_dir="$(mktemp -d)"
sw run "Create hello.txt in the current directory containing hello. Reply only DONE." \
--cwd "$sw_demo_dir" \
--verify "grep -qx hello hello.txt" \
--expect "hello.txt" \
--timeout 200
The first line from sw run contains the job ID, followed by execution logs and the final result. --verify runs in the specified working directory, and --expect checks for the output file. The task reaches verified when the worker completes successfully and verification passes.
Replace JOB_ID below with the returned ID to check progress, read logs, or run verification again.
sw brief JOB_ID
sw log JOB_ID -n 20
sw verify JOB_ID
sw verify JOB_ID --check
To correct a result, send a specific follow-up. The saved acceptance command runs again after the next round finishes.
sw continue JOB_ID "hello.txt should contain hello. Correct it and run verification again."
Background execution. In a terminal, sw run waits for the task to finish. Inside DSH, launch it through the bash tool with run_in_background: true. To run independently of the current session, use sw dispatch and pair it with a background sw wait JOB_ID for completion notifications.
Common commands
| Action | Command |
|---|---|
| List all tasks | sw ps |
| Inspect task status and result paths | sw status JOB_ID |
| Check current progress | sw brief JOB_ID |
| Run verification again | sw verify JOB_ID |
| Send corrections | sw continue JOB_ID "corrections" |
| Cancel a task | sw cancel JOB_ID |
| Generate and serve an HTML dashboard | sw dashboard --serve |
| Generate an implementation plan in the background | sw plan "task goal" --cwd /project/path --bg |
| Review task changes in the background | sw review JOB_ID --bg |
sw plan and sw review default to dsh; choose another engine explicitly with --agent. Launch both with --bg. Results go to a plan file and the task's review.md, respectively, with file paths included in the immediate response. Reviews use VERDICT: PASS/FAIL.
See the command reference for all arguments, notifications, and configuration options. Each subcommand also supports sw <command> --help.
How it differs
The awesome-dsh-plugin list already has several dispatch/acceptance plugins. The closest:
| Project | What it does | Difference here |
|---|---|---|
| dsh-dev-plan-presets | the expensive main model only plans, dispatches and reviews; a develop subagent builds |
the subagent runs in the same process; no isolated cwd, no gate artifact, no resume |
| dsh-outsourcing-expert | hard-denies the leader's work tools, forcing delegation to a subagent | same, and no acceptance evidence or failure resume |
| dsh-ATN | multi-agent topology + data-boundary governance | team/governance view, not a single worker lifecycle |
| dsh-artel | runs an agent in an isolated copy, line-by-line diff review, manual apply | review UI first; no automatic gate or patrol |
| dsh-alpha | dispatch control plane across machines and runtimes | cross-device orchestration, not local process isolation |
| dsh-remote-agent | turns another computer into a remote agent worker | remote-first; this project is local processes + local gate |
In one line: others change the role inside one process; this project moves the work into another process and gates it with a re-runnable command.
Concretely: a separate OS process (killable, parallel, own session and cwd) · verdict.json evidence · a read-only codex review as a second gate · resume on failure via the same session/thread · an event consumer plus patrol reconciliation · a Workers panel · multiple engines and quota routes · a CLI that works headless, on a phone, or in CI.
Execution engines and models
Tasks use dsh by default. The bundled worker configurations use deepseek-v4.1-flash through opencode-go. Automatic tier selection chooses worker-lean for a reduced tool set or worker-fast for web tools. Both use dsh.
| Engine | Selection | CLI entry point |
|---|---|---|
| DSH | Default, or --agent dsh |
dsh --profile headless |
| Codex | --agent codex |
codex exec |
| OpenCode | --agent opencode |
opencode run --standalone |
| Antigravity | --agent agy |
agy --new-project, with the existing session used for follow-up |
| Claude | --agent claude |
claude -p |
--agent selects the CLI to run. For dsh workers, --provider selects the model provider, and --model selects a model. For example, to use the qwen provider, run this command with your task and acceptance criteria.
sw run "task description" --cwd /project/path --verify "acceptance command" \
--provider qwen --model deepseek-v4.1-flash
--provider opencode selects the opencode-go model provider used by dsh. --agent opencode selects the OpenCode CLI. Run sw models to inspect available providers and credential status.
Task records and background services
Task records default to ~/.dsh/workers/. Override this location with SW_HOME or sw --home <directory>.
~/.dsh/workers/
├── config.json Execution defaults and automatic processing rules
├── registry.jsonl Task event stream
├── jobs/<job>/
│ ├── meta.json Status, session ID, and execution rounds
│ ├── task.md Task instructions
│ ├── r1/, r2/… Per-round events, logs, and result.md
│ ├── verdict.json Command, exit code, output, and artifact checks
│ └── review.md Code review result
├── notices/ Notifications grouped by owning session
└── plans/ Implementation plans
sw serve provides panel data at 127.0.0.1:8766 by default and keeps sw patrol and sw agent running. Patrol checks processes and stalled tasks. The event consumer handles retries and optional reviews according to the pipeline configuration. Automatic review is disabled by default.
Documentation and development
| Guide | 中文 | English |
|---|---|---|
| Installation and troubleshooting | 安装文档 | Installation |
| Commands and configuration | 命令参考 | Commands |
| Components and data flow | 架构说明 | Architecture |
| Common questions | FAQ | FAQ |
Read the contributor instructions before changing code. Run bash scripts/smoke.sh for local offline checks. See CHANGELOG for release history and the installation guide for removal steps.
Licensed under the MIT License. See NOTICE for third-party notices.
Links
More in this category
loopx-project/loopx#dsh-loopx-plugin★ 6786
LoopX, a provider-neutral, local-first state kernel and control plane for long-horizon agents: keeps Goal, Todo, gate, evidence, quota, recovery, and handoff state above DeepSeek Harness, while the plugin bootstraps the CLI and skills, admits bounded same-session continuation, and adds a loopback GoalBar for the exact bound loop. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Q00/ouroboros#integrations/dsh-plugin★ 6396
Config-only bundle that mounts Ouroboros through the DSH MCP client, exposing 36 interview, Seed, execution, evaluation, and evolution workflow tools in DSH.
chuspeeism/dashi-taskboard#deepseek-harness★ 3557
Embeds the active installed Codex Taskboard runtime in the DeepSeek Harness sidebar, using its launcher runtime descriptor instead of a fixed port.
NanmiCoder/dsh-agent-teams★ 3164
AgentTeams multi-agent teams.
EthanYoQ/AI-Novel-Writer#dsh-ai-novel-writer★ 3020
Installs a dedicated AI novel-writing preset and workbench: revisioned local project assets, a compact side drawer, and native approval-gated single-file changes.
shanliuling/dsh-image-gen★ 1931
Native conversational image generation for DeepSeek Harness: ask the agent to create an image, and it handles generation and keeps the result directly in the conversation.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.