dsh-smart-model
Manifest validAuto-switch DeepSeek Harness model and reasoning effort based on prompt complexity.
dsh-smart-model
自动根据提示词复杂度切换 DeepSeek Harness 的模型与推理等级。输入框下方显示一个状态 chip, 点击可暂停/恢复自动切换。
分类规则
关键词打分, 同分取更严肃的档; 文本越长越偏向严肃档。
| 档位 | 模型 | 推理等级 | 典型输入 |
|---|---|---|---|
| trivial | DeepSeek-V4.1-Flash | 关 | 查时间/日期/天气/汇率、单位换算、拼写与大小写、排序 |
| light | DeepSeek-V4.1-Flash | 低 | 起名/标题/文案、润色、错别字、短信/邮件、翻译、一行命令、正则、简短总结 |
| standard | DeepSeek-V4-Pro | 高 | 写代码/调试/重构/架构、算法、数学、分析对比、论文/报告/方案、原理讲解 |
| deep | DeepSeek-V4-Pro | 最大 | 证明题/竞赛题、安全审计、密码学、法律合同、医学诊断、显式要求"仔细/严格/一步一步"的高难任务 |
行为
- 停止输入约 1 秒后才分类; 会话正在生成时不切换。
- 8 秒冷却, 防止来回抖动。
- 子代理会话、当前提供方目录里没有目标模型时自动跳过。
- 没命中任何关键词(闲聊、模糊请求)时保持当前选择不动。
- 以
/开头的斜杠命令草稿不参与分类。 - 手动在模型菜单里选过之后, 以手动选择为准, 自动切换让位。
安装
需要 DeepSeek Harness 0.2.0 及以上。纯 JavaScript, 没有构建步骤, 不需要编译工具链。
dsh plugin add github:yangw3967-ctrl/dsh-smart-model
装完刷新页面(或重启应用), 输入框下方会出现 Flash · 关 样式的 chip。
安装过程如果提示是否允许运行构建脚本(allowBuilds): 本插件没有构建脚本, 拒绝也不影响运行。
兼容性
- 通过
dsh-client-ui-conversation暴露的槽位取到inputActions/useInput, 换到没有这些 props 的界面时会自动停用, 不会报错。 - 切换失败只写本地日志, 不会打断对话。
- 日志默认写在
%TEMP%/dsh-smart-model/heartbeat.log, 可以设环境变量DSH_SMART_MODEL_LOG改路径。
结构
index.js— Host 端入口, 只负责把日志路径路由注册好, 不含模型逻辑client.js— Client 端全部逻辑(草稿订阅 + 分类 + 切换 + chip)cordis.patch.yml— 插件插入补丁package.json— 包清单, 声明dsh.bundle, 前端入口dsh.client
许可
MIT
Comments
Loading…
Similar plugins
by elfgzp
Switch model and reasoning effort across every DeepSeek Harness session at once — one control, all conversations, effort included.
★ 0
MIT
JavaScript
Nov 5, 2026
dsh plugin --profile web add dsh-unified-modelby Zding89
Save and switch model and reasoning-effort presets in DeepSeek Harness
★ 0
MIT
JavaScript
Aug 18, 2026
dsh plugin --profile web add dsh-model-presetsby chr003
Separate per-session model and reasoning effort controls for DeepSeek Harness subagents.
★ 0
MIT
JavaScript
Sep 7, 2026
dsh plugin --profile web add dsh-subagent-model-policyby Neptune810
Flash-only reasoning-effort routing for DeepSeek Harness, setting the DeepSeek flash model reasoning effort per step. The model never changes; effort max is opt-in.
★ 4
↓ 1.1k/wk
MIT
JavaScript
Nov 7, 2026
dsh plugin --profile web add @neptune810/dsh-model-routerby TTTPOB
DeepSeek Harness plugin with per-task model and reasoning-effort selection
★ 0
MIT
TypeScript
Aug 22, 2026
dsh plugin --profile web add dsh-task-modelsby icrefin
Per-model reasoning effort levels inside DeepSeek Harness Settings -> Models, written to that model's reasoningEfforts in cordis.patch.yml.
★ 0
MIT
TypeScript
Oct 11, 2026
dsh plugin --profile web add dsh-model-reasoning-levels