Introduction¶
When handling large-scale complex engineering projects (such as full-stack development, system refactoring, or multi-module auditing), a single large model often faces issues such as context window limitations, cross-file editing conflicts, and self-checking blind spots. Meanwhile, using top-tier models for the entire workflow is costly, while using lightweight models throughout struggles to guarantee the quality of the top-level architecture.
The DeepSeek Harness (DSH) ecosystem supports plugin extensions. dsh-boss-worker is a multi-model master-slave collaboration plugin designed for the aforementioned scenarios. It introduces a hierarchical governance architecture (Lead-Worker Pattern) to ensure engineering quality and optimize costs through lead model planning, parallel execution by sub-models, and a strict closed-loop acceptance mechanism.
Plugin Positioning¶
- Name: dsh-boss-worker
- Positioning: Multi-model Master-Slave Collaboration Plugin for Large Complex Projects in DeepSeek Harness (DSH)
- Maintainer: kongbai9420
- Core Value: Lead Architecture Coordination, Worker Parallel Execution, Strict Closed-Loop Acceptance
Core Functions¶
The plugin implements multi-model collaboration for complex engineering through the following mechanisms:
-
Heterogeneous Multi-Model Mixed Orchestration
Supports binding of any Provider and Model. The Lead/Boss model is responsible for global planning and architectural design, while the Worker sub-model cluster handles specific execution. For example, the lead can use GPT-6.1 Sol or Claude Opus 5.5, while the execution layer can be paired with DeepSeek-V4 Pro (for code implementation) and Gemini Flash (for test verification), with each performing its specific duties. -
Strict File Write Scope Isolation
Relative paths (writeScopes) must be explicitly defined during subtask planning. The scheduling engine ensures that write tasks with overlapping scopes are serialized, while tasks with no intersection can be safely parallelized, eliminating file overwrites and code conflicts at the source. -
Independent Quality Gates and Review Mechanisms
After sub-models submit their results, they enter thereviewstatus. The lead model must calllead_worker_reviewto verify items one by one. Only upon passing the review are dependencies unlocked; otherwise, the task is rejected for rework. -
Authoritative and Controllable Rework Lifecycle
The plugin includes built-in rework budget management (maxRetries). The lead review tool returns an authoritativereworkBudget(remaining quota, usage count) to prevent model misjudgment based on default values. The request is suspended for user adjudication only when theRETRY_LIMIT_REACHEDupper limit is reached. -
Task-Specific Model Dynamic Routing
Supports switching models for specific tasks via the Web interface. Dedicated routes (task-route-*) are bound to the current session and task, decoupled from global member configurations. This prevents polluting the global list and avoids rolling back running tasks when settings are updated. -
Complete Execution Draining and Checkpoint Recovery
Supports task board pause, interruption, drainage settlement (Drain), and checkpoint saving. When the DSH host is shut down or restarted, the system waits for tasks to fully settle, restores the scene state, and does not lose history or board data. -
Unified Collaboration Workbench
Provides a floating workbench integrating the task board, role teams, and lead settings. Supports one-click access to sub-agent dialogue windows, free dragging and zooming, and non-intrusive closure recovery (restoring native tools after turning off BOSS mode).
Operating Modes and Tools¶
The plugin offers two main collaboration modes:
1. Standard Human-Machine Collaboration Mode¶
Lead breaks down the plan -> User approval -> Scheduling execution -> Strict review. Users activate this mode via the “👔 BOSS Direct Assign” capsule switch in the input bar.
2. Fully Autonomous Managed Mode¶
Toggle the “🚀 Full Auto Pilot” capsule switch in the input bar. The system automatically plans and dispatches tasks, performs closed-loop reviews, and advances through stages continuously until the project acceptance is complete.
Lead Control Toolset¶
The lead model drives the collaboration network through the following tools:
- lead_worker_plan: Breaks down and submits task lists, supports incremental appending.
- lead_worker_dispatch: Triggers safe scheduling.
- lead_worker_review: Independent review by the lead.
- lead_worker_status: Views the current task board snapshot.
- lead_worker_recovery: Controls pause, recovery, and drainage settlement.
Installation and Configuration¶
Prerequisites¶
- DeepSeek Harness (DSH) runtime environment
- Node.js Version:
^22.19.0 || >=24.0.0 - DSH Compatibility: Supports
0.2.0-rc.2,0.2.1-rc.2,0.1.7-rc.2
Installation Steps¶
- Fetch the plugin code:
git clone https://github.com/kongbai9420/dsh-boss-worker.git
- Import the plugin into the DSH configuration file:
- insert:
- id: lead-worker
name: "dsh-boss-worker"
config:
defaultConfig:
enabled: true
mode: mixed
maxParallel: 4
maxRetries: 2
members:
# 子角色 A: 负责写代码
- id: worker-coder
name: "Sol (代码执行)"
provider: "deepseek-official"
model: "deepseek-v4-pro"
role: "负责代码编写、文件修改与逻辑实现"
instructions: "严格在任务范围内编写代码并自测,提交改动文件与证据。"
enabled: true
# 子角色 B: 负责测试与检查
- id: worker-qa
name: "QA (验证测试)"
provider: "deepseek-official"
model: "deepseek-flash"
role: "负责测试运行、质量把关与静态检查"
instructions: "只读审查,执行测试用例,提供真实测试依据。"
enabled: true
Typical Usage¶
The plugin injects services via the Cordis mechanism. After installation, DSH automatically registers monitoring components and the floating workbench.
When configuring members, it is recommended to bind different models based on task types. For example:
- Lead Decision Making: Use a model with strong reasoning capabilities (e.g., GPT-6.1 Sol) for top-level planning.
- Module Coding: Use a high-throughput code model (e.g., DeepSeek-V4 Pro) for file implementation.
- Verification & Testing: Use a lightweight high-speed model (e.g., DeepSeek 4.1 Flash) for test case execution and assertions.
Applicable Scenarios and Notes¶
- Applicable Scenarios: Complex engineering requiring efficient multi-model cooperation, such as large-scale refactoring, full-stack development, and multi-module auditing.
- Notes: The plugin runs with the permissions of the current DSH process. Please check the source code and license before installation.
Conclusion¶
dsh-boss-worker solves the conflict and quality control challenges of multi-model collaboration in large-scale projects through hierarchical governance and strict quality gates. It not only provides a complete pipeline from planning to execution but also ensures task execution reliability through non-intrusive design and checkpoint recovery mechanisms.
- Documentation Directory: dsh-boss-worker - SkillHub
- Source Code: kongbai9420/dsh-boss-worker