Preface¶
When spawning subagents in DeepSeek Harness (DSH), a common issue is that subagents can only inherit the parent’s main model or the parameters passed by the caller, without the ability to select models independently based on subtasks. Using high-configuration main models for lightweight tasks like formatting or research, alongside architectural design tasks, consumes quota and slows down responses. Relying solely on prompts to let the main model decide whether to dispatch leads to slow and unstable judgment, while sensitive operations lack deterministic pre-execution gates.
dsh-subagent-custom addresses these scenarios: it integrates a Jev classifier for structured assessment before requests are sent, and forcefully rewrites the subagent’s provider, model, and reasoningEffort at the DSH agent/request hook. It also provides session-level manual model selection and a Web interface. The plugin is published by community maintainer xingzhen199186; the npm package name and repository are both dsh-subagent-custom. It is categorized as “Model Reasoning” in the SkillHub directory. The project states its capabilities are merged from vitas/dsh-jev-subagent-dispatch and ringoage/dsh-subagent-model-picker. The license is MIT, and the current npm version is 0.1.1 (subject to package.json).
What is this¶
In short: dsh-subagent-custom is a model decision-making and routing extension for DSH subagents—it allows manual specification of subagent models per session, or automatic mapping of task categories to preset roles and models via Jev, enforced at the actual subagent request layer.
Maintainer and Source:
- Directory Page: https://www.skillhub.cn/plugins/xingzhen199186/dsh-subagent-custom
- Source Code & Docs: https://github.com/xingzhen199186/dsh-subagent-custom
SkillHub is a community plugin directory with no official affiliation with DeepSeek or High-Flyer; please review the source code and license before installation. The plugin runs within the DSH host process with permissions identical to the current DSH process.
Core Features¶
The following summarizes capabilities described in the README, without involving configuration details not present in the source materials.
Request-Level Model Rewriting¶
The plugin intercepts subagent requests based on the DSH core hook agent/request, directly rewriting provider, model, and reasoningEffort. This overrides default parameters from the caller, ensuring scheduling decisions are implemented on the subagent side.
Jev Semantic Classification¶
Integrates the Jev judgment model, based on the TypeSafe System One architecture, to perform structured assessments of user tasks. Dimensions include Task Class, Effort, Blast Radius, and Risky attributes. Before judgment, it performs regex sanitization on API Keys, Tokens, Bearers, etc., and limits input length. By default, it fails open (silently passes) on a 4000 ms timeout or network exception, ensuring the main session is not blocked.
Two-Layer Switches¶
The two layers have different meanings and should be understood separately:
| Control Dimension | Config Location | Values | Function |
|---|---|---|---|
| Global Plugin Listening | config.mode |
off / once / auto |
Controls when Jev intervenes: off disables it; once evaluates only when trigger words are hit; auto evaluates every regular input. |
| Session Model Binding | selections.<session>.mode (written by the selector above the input box) |
inherit / auto / manual |
inherit does not force a rewrite; auto maps roles and models based on Jev results; manual fixes the model and reasoning effort within the session. |
In once mode, the default trigger words are /route and /jev; /route preview <task> is supported to evaluate without dispatching.
Roles, Categories, and “Three-Point Alignment”¶
The factory preset includes 5 roles and 8 task categories. Dispatch requires satisfying all three: the target role must have a valid model, the task category must map to that role, and the active tier whitelist must allow that category; otherwise, dispatch does not occur.
Role and Category Correspondence (Excerpted from README preset table):
junior→mechanical(Mechanical changes, e.g., formatting, renaming)implementer→bugfix(Bug fixes with controllable root causes; also the fallback role)researcher→research(Consulting and collecting facts, no code changes)reviewer→review(Reviewing diffs or proposals, no direct fixes)writer→documentation(README, Changelog, etc.)
feature_work, refactor, and meta_chat are not bound to sub-roles by default and are handled by the main model.
Role Prefix Prompts¶
In the plugin settings “Routing” area, the field is routes.<role>.prompt. It is injected only once at the first step of the subagent as a separate message (not a System Prompt) when the session selector is auto, Jev assigns that role, and the prompt is not empty. It is not injected in manual or inherit modes.
Web Interface and Localization¶
Injects into the DSH Web interface: a mode toggle above the input box, a session title status badge, and a “Subagent Model” tab in the right sidebar (status, role matrix, last 20 dispatch records). The interface supports Chinese, English, and Russian.
Others¶
- Incrementally completes factory-added categories via mechanisms like
adoptedClassesduring upgrades, without automatically loosening user-tightened tier rules. - Provides the offline policy replay tool
jev-replay(bin/jev-replay.mjs). - README notes 97 tests passed; the runtime environment requires Node.js
>= 22.0.0and DSH^0.1.7-rc.2or compatible versions.
Installation and Activation¶
Environment Dependencies (from README):
- Node.js
>= 22.0.0 - pnpm
>= 9.0.0recommended - DSH
^0.1.7-rc.2or compatible version - Peer:
@deepseek-ai/schemastery>=3.18.1,@deepseek-ai/dsh-typert-protocol>=0.1.7-rc.2 <0.3.0, etc.
Method 1: DSH Desktop (README Recommended)
- Open the DSH desktop client and go to the “Plugins” page.
- Click “Add Plugin”.
- Enter the package name
dsh-subagent-custom, select the npm official source for the installation source, and confirm installation.
The README states that automatic updates are not currently supported after plugin installation; upgrades require uninstalling and reinstalling. Restarting the DSH desktop is required after installation or update for the host-side interception logic to fully take effect.
Method 2: Command Line (Applicable to web and other profiles)
The command provided in the materials is:
dsh plugin --profile web add dsh-subagent-custom
Method 3: Local .tgz or Directory
Run pnpm install and node scripts/build-client.mjs in the repository, then run pnpm pack, and install the generated package via the desktop or the aforementioned dsh plugin --profile web add <path>. This path is for source code modification scenarios; you need to clone and build yourself. This article does not expand on the clone steps.
After installation, adjust mode, judgment provider (default typesafe, optional bai, openrouter), and role routings in the plugin settings. The global default mode is "off"; you must explicitly change it to once or auto to enable Jev listening.
Typical Usage¶
1. Session Level: Inherit, Auto, or Manual¶
Toggle on the right side of the main model selector, above the main conversation input box:
- Inherit Main Model: Corresponds to
inherit; subagents follow the main model, and the plugin does not force a rewrite. - Assign via Jev: Corresponds to
auto; combined with the globalmodeset toautooronce+ trigger words, role and model are mapped based on classification results. - Manual Selection: Corresponds to
manual; the selected model and reasoning effort are fixed within the session.
The “Subagent Model” tab in the sidebar allows viewing the current session status, actual models for each role, and recent dispatch history.
2. Plugin Level: Turn on Jev as Needed¶
- Set
modetooffin plugin settings for zero-overhead disabling of judgment. - Set to
onceto trigger a single evaluation by starting the input with/routeor/jev; use/route preview <task>to see the judgment result without dispatching. - Set to
autoto run Jev on every regular user input (still subject to sanitization and timeout Fail-Open constraints).
3. Adjust Routing and Prefix Prompts¶
In the plugin settings “Routing” area, specify provider/model/reasoningEffort and optional prefix prompts for each role. Factory example models mostly point to specific model IDs on OpenRouter (e.g., openrouter/qwen3.8-flash); actual deployment requires replacing them with providers and models available in your account and ensuring the “three-point alignment” whitelist allows the corresponding task categories.
4. Command Line Profile and Replay¶
When using the web profile for management, refer to the previous section for installation commands. To verify policies offline, you can use the jev-replay entry provided in the package (see the “Offline Policy Replay” section in the repository README for details).
Use Cases and Precautions¶
Who is it for
- Those who frequently spawn subagents in DSH and want mechanical, research, review, and documentation subtasks to use lightweight models, while complex features and refactoring remain with the main model.
- Developers who need to “manually select a subagent model for this session” or “hand everything over to Jev” at a session granularity.
- Those who want to see dispatch decisions and history in the Web UI rather than guessing the model from logs.
Usage Notes
- The plugin contains host-side Node logic with permissions equal to the DSH process; please read the source code and MIT license before installation.
- Jev judgment depends on the configured
provider/endpoint; on timeout or exception, it Fails Open, which may result in “model not rewritten as expected” situations. Investigate via sidebar history and logs. - Default
modeisoff. If you don’t see routing effects after installation, first check if the globalmodeand session selector are set toauto. - README explicitly states: Desktop restart is required after installation; the plugin does not currently support automatic updates.
Conclusion¶
dsh-subagent-custom converges “what model the subagent selects” from inheriting the main model or prompt-based discretion into configurable session strategies and Jev pre-classification, hard-implemented at the agent/request layer. Compared to solutions that only do UI-based model selection, it adds a category-role matrix, whitelist dispatching, and a Fail-Open safety boundary. If you care about compute resource allocation and dispatch controllability in DSH multi-agent workflows, you can start with the npm package dsh-subagent-custom or the SkillHub directory page. For detailed parameters and configuration items not written in this article due to truncation, please refer to the GitHub README.
- SkillHub: https://www.skillhub.cn/plugins/xingzhen199186/dsh-subagent-custom
- GitHub: https://github.com/xingzhen199186/dsh-subagent-custom