Bxfjjb/Deepseek-Harness-plug

插件Plugin 原生Native ⭐ 2

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.

或使用命令行安装(适合开发者)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,直到会话结束。
上一个 Prev dsh-provider-usage 下一个 Next dsh-suggest