Bxfjjb/Deepseek-Harness-plug
DeepSeek Harness 插件:按工作阶段自动路由模型——对话和规划用 flash(快、省),真正实施用 pro(稳、准)。
catalog 简介 / catalog descriptioncatalog description:我的dsh插件
项目介绍Project Overview
dsh-model-stage-router 是 DeepSeek Harness 插件,按工作阶段自动路由模型:对话与规划用 flash,检测到 write、edit、exit_plan_mode、subagent 等突变工具调用后,该会话切换并保持 pro。适合希望聊天省快、实施稳准的场景。注意状态按会话保存在进程内,重启重置,且不覆盖用户显式选择的模型。
dsh-model-stage-router is a DeepSeek Harness plugin that routes models by work stage: it uses flash for chat and planning, then switches the session to pro after mutating tools such as write, edit, exit_plan_mode, or subagent are called. Use it when casual work should stay fast and cheap while execution uses the stronger model. Caveat: stage state is per-session, in-memory, resets on restart, and explicit user model choices are not overridden.
请帮我了解并安装插件:【Deepseek-Harness-plug】【https://github.com/Bxfjjb/Deepseek-Harness-plug】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add git+https://gitee.com/god-bless-my-son/deep-seek-plugin.git
把 Bxfjjb/Deepseek-Harness-plug 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-model-stage-router
DeepSeek Harness 插件:按工作阶段自动路由模型——对话和规划用 flash(快、省),真正实施用 pro(稳、准)。
路由逻辑
| 阶段 | 模型 | 判定信号 |
|---|---|---|
| 对话 | flash(保持默认) | 无明确信号 |
| 规划 | flash | plan mode 活跃 |
| 实施 | pro | 本会话出现突变工具调用 |
「进入实施」的判定:会话内第一次调用以下任一工具后,该会话后续请求保持 pro:
write/edit(写文件)exit_plan_mode(计划批准,开始动手)subagent/subagent_fork/workflow/ralph(委托执行)
安装
dsh plugin --profile web add git+https://gitee.com/god-bless-my-son/deep-seek-plugin.git
或本地 checkout:
dsh plugin --profile web add ./dsh-model-stage-router
配置
默认值已够用;如需调整,在 $DSH_HOME/cordis.patch.yml 覆盖 model-stage-router 行的 config:
- id: model-stage-router
config:
flashModel: deepseek-v4-flash
proModel: deepseek-v4-pro
# 自定义触发「实施」的工具名单:
mutatingTools:
- write
- edit
- exit_plan_mode
- subagent
- subagent_fork
- workflow
- ralph
卸载
dsh plugin --profile web remove dsh-model-stage-router
说明
- 状态按 session 独立判定,进程内保存(重启后重置,不持久化)。
- 对话阶段不覆盖用户显式选择的模型,只保留 agent 默认(DSH 默认即为 flash)。
- 一旦进入实施,该会话保持 pro,直到会话结束。
nexu-io/open-design
freestylefly/awesome-gpt-image-2
anywhere-labs/dsh-desktop
walkinglabs/learn-harness-engineering
awesome-dsh-plugin/awesome-dsh-plugin
MemTensor/MemOS