dshbase

插件目录 / Developer / dsh-tui-model-switch

dsh-tui-model-switch

已验证 · 实测可装 FUSU123fusu

✓ 持续维护 基于 4 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-17最近推送
跨平台平台

功能简介

Developer 类别的 DeepSeek Harness 插件。

✅
我们的评价
可用 — 实测通过,早期项目

Developer 类别的 DeepSeek Harness 插件。 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-tui-model-switch

适用于 dsh-TUI(dshtui.com)的社区插件。

让子代理用另一套模型跑——主会话模型不变。机制参考 lincong1987/dsh-model-switch(MIT)重写为 TUI 原生:设置走 dsh settings 服务(model-switch 命名空间),在 TUI 的 /settings 屏「模型路由」区块直接编辑。

Per-stage model routing for dsh-TUI: run subagents on a different provider/model/reasoning-effort while the main conversation keeps its own route. Inspired by lincong1987/dsh-model-switch (MIT), rebuilt TUI-native.

安装 Install

dsh plugin --profile dsh-tui add github:FUSU123fusu/dsh-tui-model-switch

重启 dsh 后生效。Restart DSH after installation.

使用 Use

  1. 打开 /settings →「模型路由 / Model switch」区块。
  2. 「子代理模型」选 自定义 / Custom,「子代理路由」直接从已配置的提供商模型目录里下拉选择(目录不可用时退化为手动输入 provider/model),可选填推理强度(low / medium / high / max,合法档位以模型为准;留空跟随模型默认)。
  3. /model-switch 随时查看当前生效的路由。

设为「跟随主会话 / Follow main session」时行为与未安装插件完全一致。

  • 子代理启动路径(subagents.start / startContinuable)会被合入自定义的 agentOptions;调用方显式指定的 provider/model 优先于本设置。
  • 推理强度不属于 AgentOptions,通过子代理的 agent/request 拦截器注入,只影响 origin: subagent 的会话。
  • 计划执行(plan-execute)模型路由待 TUI 审批面板扩展缝落地后提供。

机制 How it works

  • Settings persist in the dsh settings service (model-switch namespace), layered with composition entries and live-reloaded; the TUI /settings screen edits them through the tuiSettingsSections seam.
  • ctx.subagents.start / startContinuable are wrapped to merge the custom selection into agentOptions (explicit request fields win over the setting).
  • Reasoning effort rides the child agent's agent/request interceptor (subagent-origin sessions only).

Non-TUI hosts keep working: the command reports the route as text and the settings section simply doesn't render.

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-tui-model-switch」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:FUSU123fusu/dsh-tui-model-switch

Headless(CLI)profile:

dsh plugin --profile headless add github:FUSU123fusu/dsh-tui-model-switch

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →