dsh-team-router: Task-Based Model Selection for DeepSeek Harness Agent Teams

Introduction

DeepSeek Harness (DSH) Agent Teams natively supports cross-vendor task delegation, but most developers still prefer to use a single model throughout the entire workflow or switch models manually. Manually selecting models disrupts your train of thought and makes it easy to miss permission configurations. dsh-team-router provides a rule-based model routing solution that turns “which model handles which task” into a configurable item, leveraging the native subagent capability to achieve automatic task distribution.

The plugin is maintained by MorseWayne and focuses on enhancing DSH’s native sub-agents and team collaboration.

Core Features

13 Built-in Specialization Categories

Categorized by primary deliverables, covering four working groups: Product & Engineering Implementation, Quality & Delivery, Analysis & Expression, and General & Fallback. Each category has clear acceptance criteria, such as Visual & Interaction, Frontend Engineering, Backend & Data, Fault Diagnosis, Code Review, Technical Writing, and Information Reconnaissance.

Up to 8 Custom Categories + 4 Scenario Templates

On the settings page, you can create custom categories by simply filling in “when to use it” and “when NOT to use it.” The plugin provides 4 one-click templates: Evidence Verification, Defensive Security Audit, Data & Model Evaluation, and Behavior-Preserving Refactoring/Migration.

3 Delegation Modes

  • Passive Routing (passive): The default mode. Does not proactively dispatch tasks; selects a model based on rules only when the primary assistant explicitly requests it.
  • Specialist-First (specialist-first): Assigns large tasks to specialist models and answers small questions directly and quickly.
  • Orchestrator (orchestrator): The primary assistant handles task distribution and acceptance, delegating matched work to sub-assistants. Ideal for complex engineering scenarios requiring strong task separation.

Strict Validation & Same-Model Merging

Enabling strict validation intercepts subagent calls that don’t match the active routing table and guides the user to re-enter. In proactive mode’s first-step reminder, the plugin automatically merges categories with identical configurations based on the (provider, model, reasoningEffort) triple, reducing context clutter.

Installation & Enablement

  1. Open Plugins → Add Plugin, enter dsh-team-router@1.1.0, then click Install and Enable.
  2. Refresh the page (if prompted to restart, restart DSH first).
  3. Open Plugins → Team Task Routing for the same profile. You should see 4 built-in working groups (13 built-in categories) and a “Custom Categories” section.

Command-Line Installation

The following uses the web profile as an example. Replace the name if using a different profile:

dsh plugin --profile web add dsh-team-router@1.1.0

After installation, open Plugins → Team Task Routing or Settings → Team Task Routing to configure.

Configuring Models & Enabling Categories

  1. At the top, select the delegation mode and whether to enable strict validation, and set the default fallback model (by default, it inherits the current session model).
  2. Configure models for each category:
    - For a quick setup: Click 「Preview Recommended Config」 to preview candidate configurations by “All Enabled Built-in Categories” or “Single Working Group.” Review the differences, then apply to your draft.
    - scout and quick are recommended to use fast models. If they fall back to the primary model, low reasoning effort is only attached when the model’s live catalog explicitly lists low; otherwise, the model’s default is used.
    - For a leaner setup: Click 「Trim to 7」 or toggle off unneeded categories individually (disabled categories are completely removed from prompts, validation, and authorization, while retaining the previously selected model for easy re-enabling later).
    - For specialized needs: Create new entries in the 「Custom Categories」 section below, or apply one of the 4 scenario template cards directly.
  3. Click Save Changes. The settings page will auto-supplement DSH sub-agent authorization for the current profile based on the explicitly configured active models. Directly editing the config file will NOT supplement authorization or change permissions for existing sessions.

After saving, create a new session. The system prompt will include the currently authorized active category routing table toward the end. The primary assistant will follow the rules to let specialist models each excel at their strengths.

How It Works

The plugin follows the principle of “providing clear guidance to the primary assistant by primary deliverable without overstepping to invoke tools on its behalf.” A single immutable active category list drives the entire pipeline:

  • DSH Web Native Pass-Through: The official preset enables native subagent model selection by default, allowing cross-vendor delegation without enabling team collaboration. Mixed tasks are completed end-to-end by the single most critical specialist model by default; splitting occurs only when interfaces are clearly defined and independently verifiable.
  • Same-Model Merging Saves Context: In each round’s first-step reminder under proactive mode, categories with identical configurations are automatically merged by the (provider, model, reasoningEffort) triple, reducing clutter without mixing different reasoning efforts.
  • Optional Strict Validation: Intercepts subagent calls that don’t match the active routing table and guides re-entry. When all enabled categories are set to inherit, it also blocks privately passed explicit models. When all categories are disabled, the plugin automatically exits interception.
  • Dynamic Team Tools & Fallback: In hosts or team collaboration modes without modelSelection enabled, the Lead can invoke team_route_delegate to delegate based on active categories (with clear acceptance evidence requirements attached), and use team_route_status at any time to query real-time categories and execution history.

Use Cases & Notes

Suitable for DSH users who need automatic model selection by task category, especially those using models from multiple vendors and wanting to reduce manual switching and permission oversights.

Note: This plugin runs with the current DSH process’s permissions. It is recommended to review the source code and license before installation.

Conclusion

dsh-team-router turns “which model handles which task” into a clean, visual rule set, ideal for DSH Agent Teams scenarios requiring fine-grained task delegation.

  • Catalog page: https://www.skillhub.cn/plugins/MorseWayne/dsh-team-router
  • GitHub: https://github.com/MorseWayne/dsh-team-router
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye