CTWCTW9999/dsh-agent-preset-router ↗★ 0
dsh-agent-preset-router
自动模式 Auto Mode: an AI pre-judgment layer for DeepSeek Harness — a flash-model router that picks the best agent preset (standard/code/minimal/cordis) for each new session and lets the user confirm before execution.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CTWCTW9999/dsh-agent-preset-router说明文档
阅读完整 README ↗Usage
- Create a new session.
- Pick 自动模式 as its agent preset.
- Type your request and send.
- An animated bar appears above the input: first "picking the best preset…", then "Auto-routed to xxx — reason". The session is switched and your message is sent automatically; the bar dismisses itself after 3 seconds.
- No confirmation needed — execution starts on the chosen preset immediately.
Slash commands (e.g.
/help) bypass routing and execute directly.
Configuration
All settings are optional. Configure the plugin via the profile's patch layer (cordis.patch.yml in $DSH_HOME/profiles/web/) or by patching the bundle row:
- config:
classifier:
provider: leihuo # default: the session's own provider, else the first registered
model: deepseek-v4-flash
temperature: 0
maxTokens: 256
fallbackPreset: standard # used when classification fails (standard|code|minimal|cordis)
id: agent-preset-router
| Key | Default | Meaning |
|---|---|---|
classifier.provider | session provider → first registered | LLM provider for the classifier |
classifier.model | deepseek-v4-flash | Classifier model (session model overrides when default) |
classifier.temperature | 0 | Sampling temperature |
classifier.maxTokens | 256 | Max output tokens for the classification JSON |
fallbackPreset | standard | Preset used when classification fails |
The classifier prompt is a strict JSON contract: {"preset","reason","confidence"} with the four preset ids, in Chinese, plus a 30s timeout.