dsh-switchboard: Individual Model Assignment for DSH Sub-Agents and Teammates

Preface

A common requirement when spawning subagents or teammates in DeepSeek Harness (DSH) is using one model set for the main Agent and another for specific tasks—using a strong model for complex reasoning and a cheaper model for organization or retrieval tasks. The native spawn_teammate lacks a model field, so teammates inherit the main Agent’s routing; while subagent has a model parameter, it requires manual input for every call and is subject to a whitelist. This makes changes fragmented and unintuitive.

The following introduces the community plugin dsh-switchboard (maintainer cslkkl): it turns “who uses which model” into a switchboard. Members in the same conversation are listed on the board, and you can switch them with a click. Rules and default routing are configurable and take effect at runtime, generally without needing to restart the Harness.

What is this

dsh-switchboard is a DSH Web-side plugin categorized under model reasoning. In short: it connects a specific model to each subagent and agent teammate individually, while the main Agent’s routing remains unchanged. It has zero npm dependencies (README marks dependencies: 0), and configuration is saved locally in rules.json, taking effect immediately upon saving.

SkillHub is a community plugin directory and has no official affiliation with DeepSeek / Quantilla (High-Flyer). It is recommended to read the source code and license yourself before installing. The plugin runs with the permissions of the current DSH process.

How Routing is Determined

The model actually used by each member is matched in the following order from top to bottom; matching stops upon a hit. The UI indicates which layer was hit, so there is no need to guess.

Order Source Hit Condition
1 Direct Assignment members[teammate_name], or members['#<sub_session_id>']
2 Conversation Default sessions[<current_session_id>]
3 Rules Teammate name exact match \(\to\) Teammate name contains \(\to\) Delegation description contains
4 Global Default defaultRoute
5 Inherit Main Agent’s current routing

Core Features

The capabilities listed in the README are as follows (all implemented on top of the routing logic in the table above).

Feature Description
Click Member to Switch The “Model” section at the conversation header lists all teammates and subagents; click a row to switch.
Batch Assignment by Rule A single rule can hit multiple members by matching names or task descriptions (substring, case-insensitive).
Model Tier Selection Rules and global defaults can specify reasoning effort (thinking level); when switching models, it auto-reconciles, falling back to “Auto” if the new model doesn’t support the tier.
Per-Conversation Default Asks once when first delegating a task; subsequent tasks in the same conversation follow this setting.
Runtime Effect Running members use the new model in their next step without restarting the Harness.
Switch All at Once Switch all members in the current session to the same model, or one-click revert to inheritance; batch operations have a confirmation step and can be undone within 5 seconds of success.
Direct Assignment Cleanup The panel lists all keys in the direct assignment table at the bottom, allowing single-item restoration to inheritance or clearing the entire table.
Create in Panel Create teammates or subagents directly; the first request runs on the selected model.
Rule Trial Run Enter a member name or task description at the end of a rule row and click “Trial Run” to see the hit layer and model before deployment.
Failure Visibility If switching fails, a red bar at the top of the panel explains the reason; history can be expanded.
Safe Failure If tiers are incompatible, the inherited routing is preserved so sub-sessions won’t be “killed.”

Member status is shown in the UI in three states: Running (takes effect next step), Idle/Wake-up (takes effect on next wake-up), Not Running (takes effect on next creation).

Installation and Activation

Add the plugin directory to the Web profile (command from official README; replace <plugin_directory> with the actual path on your machine):

dsh plugin --profile web add "<plugin_directory>"

After the first installation, a one-time restart of the Harness is required for the browser UI to load the plugin. Subsequent changes to plugin code do not require a restart; a restart is only needed if the dsh.client section in package.json is modified.

Configuration and Typical Usage

Configuration is written to $DSH_HOME/storages/dsh-switchboard/rules.json and takes effect immediately upon saving. Minimal example:

{
  "rules": [
    { "match": "cheap", "provider": "cpa-trae", "model": "trae/deepseek-v4.1-flash" }
  ]
}

Meaning: When information such as delegation description matches the substring cheap (case-insensitive), it uses the corresponding provider and model. Member direct assignments are governed by this settings file; the members in the patch serve only as initial values. Once written via the UI or /spawn, only the file is recognized. Please use the panel or HTTP API to add or remove members; do not manually modify the patch.

For complete fields, rule structures, and the nine HTTP endpoints, refer to docs/ARCHITECTURE.md in the repository.

UI Entry Points

Entry Location Purpose
“Model” Button Conversation header action area Click member to switch model, batch switch, set conversation default, create new members.
“Subagent Models” Card Plugin detail page Rule editing and trial runs, active scope, delegation and operation logs, failure red bar, direct assignment table.

The panel is divided into three sections: Conversation Default, Batch Settings (Provider / Model / Reasoning Effort), and Members (toggle row by row).

Use Cases and Notes

Who it is for: Developers who frequently mix multiple subagents or teammates in the same Harness conversation and want to assign models by person, task description, or conversation default, but do not want to manually write parameters for subagent every time.

Boundaries (from README original text):

  • Only manages local sub-sessions; external backends (Codex, Claude Code, ACP) do not have local Agents and cannot be managed.
  • The main Agent is not affected.
  • Switching models does not change the provider’s maxTokens limit.
  • Mutually exclusive with similar plugins that monkey-patch spawnTeammate; only enable one.

Compatibility: The plugin relies on internal DSH seams (e.g., agent/created, agent/request, agent/disposed), which are not stable public APIs. If the interface does not appear or model switching fails after a host upgrade, first check the README “Compatibility” table to troubleshoot seam changes rather than assuming a configuration error. This plugin does not have a cross-version compatibility layer.

Conclusion

dsh-switchboard consolidates “which model to use for subagents/teammates” from scattered call parameters into a clickable, configurable, and testable switchboard. Rules and conversation defaults are written into rules.json, allowing runtime routing changes without needing a restart in most cases.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye