DeepSeek Harness plugin

dsh-auto-preset-router

Route the first prompt to one of DeepSeek Harness's four shipped Agent Presets with DeepSeek V4 Flash.

Jump to install

Source facts

Repository
yhfgyyf/dsh-auto-preset-router
Latest update
Aug 21, 2026
Category
Workflow & Automation
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/yhfgyyf/dsh-auto-preset-router
Plugin: dsh-auto-preset-router
Author: yhfgyyf

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer4 files
README.mdSource · read only
README language

DSH Auto Preset Router

简体中文

A DeepSeek Harness profile bundle that adds an Auto Agent Preset. The first direct user prompt is classified by the fixed deepseek-official/deepseek-v4-flash model, then the untouched prompt runs under one of DSH's four shipped presets with the model selected for that session.

Routing policy

TargetSelected for
standardWeb/current information, mixed non-programming work, general assistance, full tool ecosystem, or ambiguity
codeAny repository/source-code analysis or programming task, plus broad batch/parallel tool orchestration
minimalDemanding self-contained reasoning, mathematics, or algorithmic analysis with no repository or programming work
cordisNon-programming DSH preset/Cordis conceptual or runtime work

The classifier uses no tools, reasoning effort off, temperature 0, and a 16-token output limit. On DSH rc.1 it receives the first prompt text plus safe attachment metadata (name, dimensions, and media type), never image bytes. A failed or ambiguous classification falls back to standard.

While Auto waits for the first prompt, it mounts only DSH's official filesystem Skill catalog provider so Web and TUI can offer user-invocable /skill-name entries. Auto itself still exposes no model-facing tools; after routing, the selected preset owns Skill loading and prompt injection.

Install

DeepSeek Harness 0.1.1-rc.1 or a compatible later build is required.

dsh plugin --profile web add github:yhfgyyf/dsh-auto-preset-router
dsh web

For a separately installed TUI profile that composes the official agent-presets service, install the bundle into that profile too:

dsh plugin --profile tui add github:yhfgyyf/dsh-auto-preset-router
dsh --profile tui

The bundle keeps the official roster service, contributes its package-owned read-only preset through that roster, and sets the assembly default to auto. It does not rewrite settings.yaml. An explicit user setting remains authoritative; set this if needed:

agent-presets:
  default: auto

After the first prompt is routed, DSH records auto-router/classified and then agent-preset/selected before the first real turn. The classification event contains classifierProvider, classifierModel, rawOutput, finalPreset, fallbackUsed, errorCode, and latencyMs. The session is then locked to the selected preset by DSH's normal non-empty-session rule.

Remove

dsh plugin --profile web remove dsh-auto-preset-router
dsh plugin --profile tui remove dsh-auto-preset-router

Existing sessions retain the preset recorded in their durable history. A local $DSH_HOME/.agent-presets/auto directory, if present, is shadowed while this bundle is installed and is never modified. Removing the bundle removes its roster contribution on the next process start.

Privacy and failure behavior

The first prompt text and attachment metadata are sent to DeepSeek V4 Flash even when the session uses a different model. Image bytes are never sent to the classifier. The untouched multimodal prompt goes through DSH's native rc.1 attachment path after routing, so the session's selected model must genuinely declare image input. DeepSeek's shipped Flash and Pro routes are text-only; rc.1 adds the official deepseek-v4-flash-vision-exp image model. DSH refuses the send and retains the draft until that model, or another image-capable route, is selected. Prompts over 24,000 characters are reduced to their beginning and end. Classifier failures route to standard.

Development

npm test
npm run check
npm pack --dry-run

With a configured TUI profile and DeepSeek credentials, the optional live gate runs one fresh session for each target (and creates four short session logs):

npm run test:live:tui

The repository uses the current DSH plugin distribution contract: package.json declares dsh.bundle.patch, and cordis.patch.yml composes the package through dsh plugin --profile … add ….