Auto-switch DeepSeek models: routes every request to the vision model when images are present, to the pro model for complex tasks, and to the fast model otherwise; includes a switch_model tool for manual overrides.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:ZI-LV68/dsh-deepseek-model-router
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Auto-switch DeepSeek models for DeepSeek Harness. No manual model picking: every model request is routed automatically, and a switch_model tool gives you a manual override when you want one.
How it works
Before every model request, the plugin inspects the conversation and replaces the frozen provider/model:
| Situation | Model used (defaults) |
|---|---|
| Conversation contains images | deepseek-v4-flash-vision-exp (vision) |
| Complex task — long text, code, math, analysis keywords (score ≥ threshold) | deepseek-v4-pro |
| Everything else — chat, short questions, routine work | deepseek-v4-flash |
It hooks the same agent/request waterfall the built-in model selection uses, installed after it, so the routed model is the final one for the call. The prompt variables (provider/model) stay in sync with what actually runs.
Manual override tool
switch_model(mode, reason?) — mode is one of:
auto— back to automatic routingfast— forcedeepseek-v4-flashpro— forcedeepseek-v4-provision— forcedeepseek-v4-flash-vision-exp
The override is per-session and takes effect from the next request.
Install
From the plugin market (once published), or locally:
dsh plugin --profile web add dsh-deepseek-model-router
The bundle patch activates the router for the whole profile after a restart. Configuration lives in the bundle patch (cordis.patch.yml → row config): provider, fast/pro/vision models, complexity threshold, tool name, enabled.
Configuration
All fields optional (defaults shown):
config:
provider: deepseek-official # only sessions on this provider are routed
fastModel: deepseek-v4-flash
proModel: deepseek-v4-pro
visionModel: deepseek-v4-flash-vision-exp
complexityThreshold: 2 # task score >= threshold -> pro
toolName: switch_model # registered tool name
enabled: true
Notes
- Only
deepseek-officialsessions are routed; other providers pass through untouched. - If images are present, the router always prefers an image-capable model (
visionModel); if that model is not image-capable in your catalog, the current model is kept. - The composer's model seat still shows the session's default selection; the actual model used per call is decided by the router and recorded in the session's request header. Use
switch_modelto pin a model explicitly.
License
MIT
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 35688
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
superdesigndev/treg★ 6403
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 4593
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
sixtysevenlf/dsh-blender-plugin★ 1388
Lets a DSH agent drive a local Blender over a direct TCP channel with 15 tools: viewport frames, custom-angle renders, Python execution, headless and job offload, transaction rollback, and a planning layer of 228 ops across 34 families.
TencentCloudBase/CloudBase-AI-Toolkit#dsh-plugin★ 1152
Tencent CloudBase backend for DeepSeek Harness — scaffold and deploy full-stack apps from chat, render query results as table cards with paging, sorting and CSV export, preview a deployment on its domain, and call the CloudBase MCP toolset (`mcp__cloudbase__*`) with device-code login.
anysearch-team/anysearch-dsh★ 665
AnySearch-powered real-time web and vertical search provider for DeepSeek Harness.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.