Back to directory

dsh-subagent-model-router

In a curated listMaintenance: Active

cyphernaught-0x/dsh-subagent-model-router

Deepseek Harness plugin that allows automatic delegation of subtasks to different models based on user preferences

View on GitHub
$ dsh plugin add dsh-subagent-model-router

Install

dsh has no central install command — add this plugin’s entry (documented in its README) to your profile or patch config, then restart.

How installs work

8

stars

1

forks

JavaScript

Language

MIT

License

2026-08-17

Created

2026-11-07

Last push

README

DSH Subagent Model Router

Give every delegated task the right model—automatically.

Stop using one model for every kind of work. Configure your preferred fast, affordable, specialized, and high-reasoning models once; the router gives your agent the aliases, tags, and guidance it needs to intelligently select the best route for each delegated task.

That means faster routine work, stronger results on difficult problems, better control over cost, and less model micromanagement. Subagents can run in parallel, their results are reliably joined before the parent responds, and the model chosen for each task stays visible throughout the UI.

Why use it?

  • Better results where they matter — reserve your strongest models for architecture, security, deep reasoning, or critical review.
  • Lower cost and latency — send routine searches, edits, and focused implementation work to faster or more economical routes.
  • Automatic, task-aware routing — friendly aliases, capability tags, and plain-language usage guidance help the orchestrator choose intelligently.
  • Confident parallel delegation — launch multiple specialists in the background and reliably collect every result before synthesis.
  • Clear model visibility — see which model actually handled a task in subagent headers, catalog rows, and Better Sidebar's Tasks view.
  • Easy setup — configure your model team from the Web UI, through a guided skill, or directly in settings.yaml.

[!TIP] Already using Better Sidebar? The router adds an optional Sub-agents tab through Better Sidebar's public registerTab API.

See it in action

Follow every specialist from Better Sidebar

Better Sidebar Tasks view showing delegated subagents and their selected model chips

See parallel delegated work, current status, and the selected model together in the task tree you already use.

Build your ideal model team

Subagent Model Router settings for aliases, providers, tags, token limits, and routing guidance

Define friendly routes and tell the orchestrator when each model shines—from quick, budget-friendly tasks to your most demanding work.

What it adds

  • subagent_model: a delegation tool whose model argument is restricted to user-configured aliases.
  • wait-for-subagents: a join tool that waits for this agent's outstanding continuable background children, including standard and model-routed delegations, and returns their terminal results.
  • Per-model tags and routing descriptions embedded in the tool schema and system prompt.
  • model_subagent_catalog: a read-only view of models advertised by registered LLM providers.
  • configure_subagent_models: a namespace-scoped model-facing tool for reading or updating this plugin's settings without filesystem access.
  • model-subagent-setup: a guided skill for selecting routes, generating routing guidance, obtaining confirmation, and saving through the constrained configuration tool.
  • Settings → Subagent Models: a Web settings page for manually adding, editing, and removing routes.
  • A hot-reloaded subagent-model-router namespace in ~/.dsh/settings.yaml.
  • Foreground execution and durable continuable background subagents.
  • Configurable stale-subagent filtering for listing tools, defaulting to 20 parent/user message turns without contact.
  • An active-model chip in an opened subagent header.
  • Active-model chips in healthy rows of the parent session's subagent catalog.
  • An optional Better Sidebar Sub-agents tab registered through the public sidebar service (when installed).
  • Activity-sorted catalog trees: running branches first, resident idle branches next, and inactive-only branches in collapsed Inactive (N) collections. Active descendants keep their ancestry visible; unknown or unloaded branches remain visible until their state is known. Ordering updates with session activity and preserves sibling order within each status.

With an empty models list, the catalog, configuration, and wait tools remain available alongside the settings page and setup skill, but subagent_model is not registered. This provides a bootstrap state for initial setup.

Orchestrator behavior

When model-selectable delegation is available, the system prompt tells the orchestrator not to duplicate work it delegated. After issuing all intended background delegations, it must call wait-for-subagents before synthesizing the child results or giving a final answer. While a same-session completion goal is active, the orchestrator must not merely report that another model is handling the task and end its turn with background subagents still outstanding: ending the turn triggers immediate goal continuation and can race child tracking. Waiting joins the outstanding work so the orchestrator can synthesize the results and continue or complete the goal. The wait tool joins every continuable background child started by that parent through subagent, subagent_fork, subagent_model, or auto_agent_run; it remains useful when no model routes are configured. It reserves standard, forked, and project-specialist delegation calls before they can publish a child, and after plugin reload it discovers direct continuable children when their durable descriptors confirm their mode and the live Agent is either running or interrupted with parked input (reported separately as paused). It preserves every terminal content block and drops retained records when the parent is disposed, while foreground one-shot runs and job-backed non-continuable delegations remain outside this join because their owning tool already returns or collects the result.

Read the full README on GitHub →

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.