dsh-set-model
为 DSH 提供动态模型切换与思考深度调节:set_model / list_models 两个 Agent 工具让模型按任务难度自主切换 provider、model 与 reasoningEffort(思考深度),强制附带切换理由,带 Provider 白名单与上下文窗口 Token 水位护栏,活跃模型注入运行时上下文;进入 Plan 规划模式自动切换到配置的规划模型,退出自动恢复日常执行模型。
Model switching and reasoning-effort control for DeepSeek Harness: set_model and list_models agent tools let the agent autonomously change its provider, model or thinking depth (reasoning effort) mid-task with a mandatory reason, a provider whitelist and a context-window token-pressure guard, the active model is injected into the runtime context, and Plan Mode auto-transition switches to a configured planning model on entering plan mode and restores the previous execution model on exit.
怎么安装
dsh plugin add dsh-set-model 简介
dsh-set-model 为 DeepSeek Harness(DSH / cordis plugin)提供**动态模型与思考深度切换**的插件:Agent 通过 set_model / list_models 工具按任务难度自主切换 provider、model 与 reasoningEffort,插件把活跃模型注入运行时上下文,并随 Plan 模式自动升降级模型。 攻坚疑难问题时升到高推理档位,日常执行保持高性价比档位——不再需要用户手动改配置。 模型看到什么 插件通过 systemPrompt.context 在每个 step 的 Runtime Context 快照尾部注入一行当前活跃模型(cache-safe 追加,模型随时自查、无需调用工具): [Current active model: deepseek/deepseek-chat · reasoning: low] 处于 Plan 模式时附带状态标记: [Current active model: deepseek/deepseek-reasoner · reasoning: high] [Plan Mode Active] 工具:set_model set_model({ provider?, model?, reasoningEffort?, reason }) —— reason 必填(每次切换都会使会话 …
推荐参考
信息
- 协议
- MIT
- 语言
- TypeScript
- GitHub 星标
- 0
- 月下载
- –
- 最近更新
- 2026-09-17
- 创建于
- 2026-09-17
基础安全检查
- 检查结果
- 无
- 收录来源
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- 主题标签
- ai-agent, deepseek-harness, dsh-plugin, llm, model-switching
同类推荐
dsh-workbuddy-connect
corrinehu/dsh-workbuddy-connect
将 WorkBuddy 桌面 App 包含的模型自动接入 DeepSeek Harness,在 DSH 对话窗口里零配置使用。
claude-code-router
musistudio/claude-code-router
每个AI代理的本地控制平面:跨模型路由、融合新能力、编排工具,并始终保持完全控制。
dsh-coding-subscription-oauth
lninghaha/dsh-coding-subscription-oauth
编码订阅 OAuth,支持 SuperGrok / Grok Build、ChatGPT Plus Codex、Kimi Code、Claude Code,并提供可选 loopback OpenAI/Anthropic 网关:本地登录无需粘贴 token,支持 AUTH 刷新重试、grok-4.6 xhigh,并可与 API-key 路由共存。