返回目录

dsh-subagent-model-router

精选清单收录维护状态: 活跃

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

根据用户偏好自动将子任务委派给不同模型的 DSH 插件。

前往 GitHub
$ dsh plugin add dsh-subagent-model-router

安装

dsh 没有统一的安装命令——把该插件 README 中的配置行加入你的 profile/patch 配置,然后重启即可。

了解安装方式

8

星标

1

Fork

JavaScript

语言

MIT

许可证

2026-08-17

创建于

2026-11-07

最近推送

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.

在 GitHub 阅读完整 README →

DSH Plugins 是独立的 DeepSeek Harness 插件目录,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。