thedeveloper256/dsh-model-router ↗★ 0
dsh-model-router
DeepSeek Harness plugin: role-based model routing — the planner agent runs on deepseek-v4-pro, delegated executor subagents run on deepseek-v4-flash.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:thedeveloper256/dsh-model-router说明文档
阅读完整 README ↗Reduce pro token usage
The planner is the expensive model, so most of the savings come from shrinking its spend:
- Lower
reasoningEffort. The harness default runs pro atmax, which produces a lot of reasoning tokens.high(orlow) on the planner route keeps most of the quality at a fraction of the cost. - Cap output with
maxTokenson the planner route so a verbose turn can't balloon. - Reserve pro for planning with
mode: plan— trivial Q&A and execution-style turns stop hitting pro at all. - Keep the planner's context lean. Input tokens dominate after reasoning. Delegate aggressively and trust the subagent's report; don't re-read big files or full transcripts on the planner. Use targeted reads and let auto-compaction (
/compact) trim history. - Tune the host pruner. The tool-result pruner truncates oversized results before they reach the model (default ~8 KB); lowering
tool-result-pruner→thresholdCharstrims more planner input. That's harness config, not this plugin's row. - Exploit DeepSeek's context cache. Repeated prefixes are served from cache at a big discount, so keep the system prompt and conversation prefix stable between turns.
The first three are one-line changes on this plugin's row; the last three are discipline and host tuning.