dshbase

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

dsh-model-switch

已验证 · 实测可装 lincong1987

✓ 持续维护 2 位贡献者 基于 12 个官方 DSH 包 纯 TypeScript

查看 GitHub ↗ ← 返回插件目录

9Stars
0Forks
0未关闭 issue
TypeScript语言
2026-08-22最近推送
跨平台平台

功能简介

dsh plugin: flexible model switch for sub‑agent & plan execution. 为子代理和计划执行选择更合适的模型。

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

dsh plugin: flexible model switch for sub‑agent & plan execution. 为子代理和计划执行选择更合适的模型。 实测能干净安装、正常启动。早期项目,但功能可用。

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

README

# dsh-model-switch

English | 中文

Use the right model for each stage of work in DeepSeek Harness.

The main conversation, subagents, and plan execution serve different purposes. dsh-model-switch lets each of them use a suitable model without changing the normal DSH workflow.

Why use it

  • Match models to tasks — keep your preferred model in the main conversation and use another model for subagents or plan execution.
  • Avoid repeated switching — save defaults once instead of changing models before every task.
  • Confirm before execution — review or change the model directly in the plan approval panel.
  • See what subagents use — display the model, context window, and reasoning effort, such as GPT-5.6 Sol 1M Max.
  • Keep the main model unchanged — after plan execution, DSH restores the previous main-session model.

Preview

Configure model defaults

Model switch settings

Choose the model for plan execution

Plan awaiting review Plan execution model

See the model used by subagents

Subagent model overview Subagent model details

Install

Use the GitHub spec. This plugin is not published as an npm package, so do not use @lincong1987/dsh-model-switch.

dsh plugin --profile web add github:lincong1987/dsh-model-switch

Replace web with the profile DSH is actually running. DeepSeek Harness Desktop typically uses desktop.

Restart DSH after installation.

Update DSH

This plugin requires DeepSeek Harness 0.1.1-rc.2 or later. DSH has no dsh update command — install the version you want the same way you originally installed it.

  1. Check the installed version and what npm currently publishes:
dsh --version
npm view @deepseek-ai/dsh dist-tags

As of 2026-08-21, both latest and next point to 0.1.1-rc.2. Pin the exact version (@0.1.1-rc.2) when reproducibility matters.

  1. npx (Web):
npx --yes @deepseek-ai/[email protected] web
  1. Global npm install:
npm install -g @deepseek-ai/[email protected]
dsh --version

Then restart dsh web. DSH needs Node.js ^22.19.0 or >=24.

  1. Desktop: Fully Exit from the tray, then use Check for Updates in the app (or install a newer Desktop build). Desktop ships its own packaged dsh; updating npm or npx does not replace that copy. After Desktop finishes updating, restart it.

DSH is still a developer preview and may change on-disk formats between releases. Back up ~/.dsh (Windows: %USERPROFILE%\.dsh) before jumping versions. In particular, rc.8 changed the SQLite storage format incompatibly and the release notes provide no migration path; treat local sessions as non-portable when crossing that boundary.

After DSH is on a compatible version, reinstall this plugin as described below.

Reinstall / after a DSH update

Reinstall the plugin when this repository has a new release, or after you upgrade DeepSeek Harness. The plugin tracks a specific DSH version (currently 0.1.1-rc.2 or later), so a host upgrade should be followed by a plugin reinstall.

  1. Update DSH first (see Update DSH; skip this step if only the plugin changed).
  2. Reinstall with --force so DSH refreshes the GitHub source:
dsh plugin --profile web add --force github:lincong1987/dsh-model-switch
  1. Restart DSH.

On Desktop, run one plugin add at a time. Fully Exit from the tray (closing the window is not enough), wait until Desktop finishes starting, then reinstall, then Exit and reopen again. If install fails with another plugin install recovery transaction is pending, quit Desktop, wait, and retry once. If it is still pending, quit Desktop, delete %APPDATA%\DSH Desktop\plugin-install-recovery, reopen Desktop, then run a single add --force.

To bypass the Desktop wrapper, run the matching DSH CLI in a normal terminal:

npx --yes @deepseek-ai/[email protected] plugin --profile desktop add --force github:lincong1987/dsh-model-switch

Use

  1. Open Settings → Model switch.
  2. Configure the Subagent model and Plan execution model:
    • Follow main model uses the current conversation model.
    • Custom lets you choose a model and reasoning effort.
  3. When reviewing a plan, confirm or change the execution model before selecting Approve.

The model selected in the plan review panel takes priority over the saved plan-execution setting.

Compatibility

Requires DeepSeek Harness 0.1.1-rc.2 or later. Settings are stored in the host settings document through the plugin's registered model-switch namespace.

Subagent model switching applies to in-process subagents such as spawn and fork. External-process agents may manage their models independently.

Community

WeChat

Links

License

MIT

安装

🧩 让 Agent 自动装(推荐)

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

dsh plugin add dshbase-catalog

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

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

Web profile:

dsh plugin --profile web add github:lincong1987/dsh-model-switch

Headless(CLI)profile:

dsh plugin --profile headless add github:lincong1987/dsh-model-switch

实测报告

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

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

分享徽章

Developer 里更多

浏览全部 7789 个插件 →