CTWCTW9999/dsh-agent-preset-router0

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.

包名
dsh-agent-preset-router
版本
0.1.0
许可证
MIT
最近更新
2026年8月18日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CTWCTW9999/dsh-agent-preset-router

Usage

  1. Create a new session.
  2. Pick 自动模式 as its agent preset.
  3. Type your request and send.
  4. 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.
  5. 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
KeyDefaultMeaning
classifier.providersession provider → first registeredLLM provider for the classifier
classifier.modeldeepseek-v4-flashClassifier model (session model overrides when default)
classifier.temperature0Sampling temperature
classifier.maxTokens256Max output tokens for the classification JSON
fallbackPresetstandardPreset 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.