DeepSeek Harness 插件

dsh-tui-model-switch

Per-stage model routing for dsh-TUI: let subagents run on a different provider/model/reasoning-effort, configured in /settings (model-switch namespace), status via /model-switch.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
FUSU123fusu/dsh-tui-model-switch
最近更新
2026年8月17日
分类
模型与服务商
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/FUSU123fusu/dsh-tui-model-switch
插件名:dsh-tui-model-switch
作者:FUSU123fusu

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-tui-model-switch

> 适用于 dsh-TUIdshtui.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