thedeveloper256/dsh-model-router ↗★ 0
dsh-model-router
DeepSeek Harness 插件:基于角色的模型路由——规划代理运行在 deepseek-v4-pro 上,委派的执行器子代理运行在 deepseek-v4-flash 上。
AI 分析
该插件通过将高成本模型用于规划、低成本模型用于执行来优化 Token 开销。适合需要控制 API 成本并兼顾复杂编排质量的用户。
安装
$
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.