模型切换、模型能力配置、固定摘要模型、子 agent 角色路由与输入历史增强。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:qq928820655/changmodel
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
Portable DeepSeek Harness plugin for switching models, managing model capabilities, and optionally enabling input-history recall.
Commands
/cmodel [provider|]model[context][/effort]
Examples:
/cmodel gpt-5.6-sol[1m]
/cmodel {gateway}gpt-5.6-sol[1m]
/cmodel openai|{gateway}gpt-5.6-sol[1m]/high
provider|selects an existing Harness provider route. When omitted, the current session provider is retained.{gateway}remains part of the upstream model id. It is not a Harness provider route.[context]sets the model context window./effortis applied only when the configured model supports that reasoning level; unsupported values fall back to the default effort.- Models.dev lookups remove
{...}and[...]decorations.
Settings
The changModel settings page provides:
- Provider-scoped model search, add, edit, and delete.
- Context window, maximum output tokens, text/image capability, and custom reasoning levels.
- Models.dev capability lookup with editable bulk application to matching saved models.
- A fixed summary model selection for context compaction when the target Harness supports compaction.
- Optional input-history recall patch controls.
- Subagent role policies with exact, alias, keyword, and priority matching.
- Unmatched-role fallback to a configured subagent default, the parent session model, or deny dispatch.
- Role-level provider, model, reasoning effort, context window, maximum output, and image capability settings.
- Provider-default and model-level API protocol selection for OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages.
- Subagent configuration is persisted under
llm-pi-ai.changmodelSubagents; the optional dispatch adapter applies matching rules when the target Harness exposes a pre-dispatch hook.
All model capability changes write to the target Harness's own llm-pi-ai settings. No provider credentials, API keys, sessions, or model configuration are bundled in this plugin.
Optional compatibility features
Input-history recall patches the installed dsh-client-ui-conversation only after semantic anchor validation. The patch manager:
- discovers the target component at runtime;
- creates a versioned local backup;
- refuses to patch when expected Harness structures are missing or ambiguous;
- supports status checks and restoration.
Compaction remains optional. A Harness that does not expose an active compaction service continues to support model switching and settings management.
Model-level protocol overrides are enabled through a managed compatibility patch. The page checks the installed llm-pi-ai structure before applying it, stores a hash-protected backup, refuses incompatible upgrades, and can restore the original file. Enabling or restoring this patch requires a Harness restart. Only protocol adapters provided by the installed Harness are accepted; arbitrary request formats are not inferred.
Installation
Install this package using the DeepSeek Harness plugin mechanism. The package declares a web client bundle and a profile bundle patch.
After installation, restart the Harness. Use the changModel settings page to configure optional features for that specific machine.
链接
同类插件
Ebony-Vinyl/dsh-our-free-model★ 47046
为 dsh 接入免费模型车道(含 DeepSeek V4.1 Flash、Kimi K3 等),无需登录、注册或填写 API Key,并提供本地 OpenAI 兼容网关、降级路由与用量看板。
dingminhua/dsh-connect-workbuddy★ 721
将本机登录的 WorkBuddy 模型接入 DSH,支持逐模型图片输入开关、账号切换,以及带每日签到的只读积分概览。
V1ki/dsh-plugin-subscriptions★ 521
把 ChatGPT(Codex)、Claude、Grok 订阅当作 DeepSeek Harness 的 LLM 提供方:设置页登录、模型目录、用量展示,以及 image_generate、video_generate 与 x_search 工具。
Mars-Sea/dsh-commandcode-provider★ 441
非官方 Command Code 模型接入插件:注册 `commandcode` 路由,带实时模型目录与推理强度支持。
Alice-Marx/dsh-model-router★ 405
为 DeepSeek Harness 规划有依赖的工作包,将其分配给已配置的模型 API 或支持的厂商 CLI,并提供费用预览。
FishBottle7/opencode2dsh★ 365
将 OpenCode Zen 免费模型接入 DeepSeek Harness,无需 API Key。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。