Introduction¶
When opening multiple project Workspaces in DSH (DeepSeek Harness) simultaneously, tasks are often scattered across various sessions: remembering who is using which workspace, where the tasks have progressed to, and whether an exception requires manual intervention all require you to keep track of it yourself or repeatedly switch views to check. Relying solely on prompt constraints for Worker reporting cannot prevent permission-level bypasses of the tools.
Below is an introduction to the community plugin dsh-global-supervisor (maintainer: longroads, category: Workflow). It uses a single Router session to manage multiple project Workspaces without modifying the DSH core, performing project identification, task assignment, status monitoring, scheduled inspections, and event response; state is stored in SQLite, which can be recovered even after a host restart.
What is it¶
dsh-global-supervisor is a global supervision plugin for DSH: cross-Workspace project management and task scheduling, combined with structured Worker reporting, Webhook and Cordis event integration, and optional IM push notifications (via dsh-im).
- Directory page: https://www.skillhub.cn/plugins/longroads/dsh-global-supervisor
- Source code and documentation: https://github.com/longroads/dsh-global-supervisor
- Version in current documentation: 0.6.1 (MIT)
- Tool scale: 25
supervisor_*tools on the Router side, Workers report viaworker_report(permissions are verified on the server side, not relying solely on prompts)
Core Features¶
Router / Worker Division of Labor¶
The Router session holds the supervision toolset, responsible for identifying projects, assigning tasks, resuming sessions, and receiving reports. Worker sessions execute within their respective Workspaces and make structured reports via worker_report.
Task State Machine and Persistence¶
Task states include pending → queued → running → completed, as well as blocked, need_human, failed, and canceled; transitions are governed by strict tables and auditing. Tasks and TaskRuns are separated, and retry history is preserved completely.
Persistence uses the built-in node:sqlite (13 tables) with no additional native dependencies.
Event-Driven and Thread Propagation¶
Supports Webhook integration and subscription to 5 types of Cordis events, with a unified deduplication pipeline; routing can be based on observation/auto rules. Multiple events can be merged into a single Router notification.
Tasks created by events automatically subscribe to the corresponding thread; subsequent events in the same thread can be delivered directly to the assigned Worker, bypassing the Router as an intermediary.
Context Recall and Watchdog¶
supervisor_recall can retrieve relevant context in one go: thread events, subscriptions, Worker reports, and execution history.
The watchdog is divided into four categories: startup timeout retry (default 10-minute window, supports live-agent grace period, configurable at runtime via supervisor_watchdog_config), runtime timeout retry, escalation requiring human intervention, and idle/offline Worker detection; it scans approximately every 5 minutes by default (interval is configurable). Determination and retry results are notified to the Router.
Router Execution Guard and Model Control¶
The plugin marks direct tool calls in the Router session to other managed Workspaces and injects a prompt saying “should be assigned, not executed self” when routing preferences are hit; when the user corrects the Router, it guides them to save routing rules.
Supports model selection and switching based on task/project; steer can be used to inject commands into running tasks. ModelQueue has a default concurrency of 1, with priority queuing that does not interrupt running tasks, designed for local inference scenarios.
Scheduled Inspections and Other Capabilities¶
Scheduled inspections reuse the DSH host-level Schedule service (requires 0.2.2-rc.x); it does not come with its own independent cron.
Optional IM push notifications: alarms requiring human intervention and completion summaries can be sent to Feishu/Telegram etc. via dsh-im, and fall back to the Router session on failure. The settings panel detects the latest npm version (including npmmirror fallback) and prompts for an upgrade.
Requirements¶
| Item | Requirement |
|---|---|
| DSH Desktop | 0.2.2-rc.x (Host Schedule requires 0.2.x; 0.1.x is incompatible) |
| Node | ≥ 22.19 (Built-in node:sqlite provided by DSH runtime) |
Installation and Enablement¶
Execute in the built-in terminal of DSH Desktop (replace desktop with your profile name):
dsh plugin --profile desktop add dsh-global-supervisor
After installation, restart DSH Desktop. Installation alone is not enough: open the Global Supervisor in the settings panel and specify a Router session first. If you want IM push notifications, configure the dsh-im bot next. Patch-level configuration can be found in cordis.patch.yml within the package.
Upgrade example:
dsh plugin --profile desktop update dsh-global-supervisor
If the upgrade reports ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION, this is due to DSH supply chain policy limiting the window for newly released versions; you can follow docs/TROUBLESHOOTING.md in the package and use dsh plugin allow-version dsh-global-supervisor@<version> or retry after a day.
Complete Chinese documentation is provided with the npm package, located at node_modules/dsh-global-supervisor/docs/: USER_GUIDE, TROUBLESHOOTING, DEPLOYMENT, INTEGRATIONS, API_COMPATIBILITY.
Typical Usage (Workflow)¶
The recommended path in the documentation can be summarized as:
- Install the plugin and restart, then bind a Router session in the Global Supervisor settings.
- Use
supervisor_*tools in the Router session to register or identify project Workspaces, create tasks, and assign them to corresponding Worker sessions. - Workers call
worker_reportduring execution to report progress and results; exception states can enterneed_human, etc., which are handled by the watchdog and Router notifications. - Configure Webhook/Cordis events and scheduled inspections (Schedule) as needed; tasks triggered by events can reach the Worker directly along the thread.
- When the Router mistakenly executes self in another workspace, follow the guard’s suggestion to assign instead and solidify routing rules.
Specific parameters and tool lists are based on USER_GUIDE in the package.
Applicable Scenarios and Notes¶
Who is it for: Developers developing DSH agents locally or in parallel across multiple Workspaces, who want a single Router to uniformly dispatch tasks and monitor status, and require event-driven and scheduled inspection linkage.
Permissions and Security: The plugin runs with the current DSH process permissions and can access its configured Workspaces and network capabilities. Please read the source code and MIT license yourself before installation to ensure consistency with your team’s policies.
Ecosystem Note: The DSH community plugin directory (e.g., SkillHub) is an independent site with no official affiliation with DeepSeek / Futurnix; the installation command takes precedence over the README’s dsh plugin ... add dsh-global-supervisor, do not concatenate github:owner/repo forms based on the repository name.
Conclusion¶
dsh-global-supervisor connects the cross-Workspace project management, task state machine, SQLite persistence, events and watchdog, and Router guard into an operable supervision chain, suitable for use as a workflow plugin in the DSH 0.2.2-rc.x environment.