thedeveloper256/dsh-model-router0

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.

包名
dsh-model-router
版本
0.3.0
许可证
MIT
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:thedeveloper256/dsh-model-router

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 at max, which produces a lot of reasoning tokens. high (or low) on the planner route keeps most of the quality at a fraction of the cost.
  • Cap output with maxTokens on 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-prunerthresholdChars trims 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.