xt765/dsh-milestone-guard ↗★ 0

dsh-milestone-guard

Milestone progress soft-enforcement guard plugin for DeepSeek Harness (阶段性结论软强制守卫插件:通过 System Prompt 常驻规范与 tools/post-execute 软强制提醒,确保模型在发起工具调用时同步输出简明的人类可见阶段性结论) 适合需要了解复杂任务进展的用户,可设置允许连续静默的工具调用步数并提醒模型汇报。

パッケージ
dsh-milestone-guard
互換性
未検証
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/10/15

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xt765/dsh-milestone-guard

ドキュメント

README 全文を読む ↗

安装与配置 (Installation & Configuration)

方式一:在 DeepSeek Harness GUI 中安装与可视化配置

  1. 在 DeepSeek Harness「插件 (Plugins) → 添加插件」中填入本地路径或仓库地址进行安装。
  2. 点击「插件 → 已安装 → 阶段性结论守卫 (dsh-milestone-guard)」,即可在详情面板中直接修改:
    • 最大连续静默步数 (maxSilentSteps)
    • System Prompt 排序权重 (sectionOrder)
    • 自定义软强制提醒文案 (reminderText)

方式二:在 cordis.patch.yml 中配置

- id: milestone-guard
  name: dsh-milestone-guard
  config:
    enabled: true
    locale: zh
    sectionOrder: 180
    maxSilentSteps: 0
    ignoreTools: []

方式一:在 DeepSeek Harness GUI 中安装与可视化配置

  1. 在 DeepSeek Harness「插件 (Plugins) → 添加插件」中填入本地路径或仓库地址进行安装。
  2. 点击「插件 → 已安装 → 阶段性结论守卫 (dsh-milestone-guard)」,即可在详情面板中直接修改:
    • 最大连续静默步数 (maxSilentSteps)
    • System Prompt 排序权重 (sectionOrder)
    • 自定义软强制提醒文案 (reminderText)

方式二:在 cordis.patch.yml 中配置

- id: milestone-guard
  name: dsh-milestone-guard
  config:
    enabled: true
    locale: zh
    sectionOrder: 180
    maxSilentSteps: 0
    ignoreTools: []

配置项说明 (Configuration Options)

配置项类型默认值说明
enabledbooleantrue是否启用本插件。
locale'zh' | 'en''zh'内置 System Prompt 规范与软强制提醒文本的语言预设(支持中英双语开箱即用)。
sectionOrdernumber180注入到 System Prompt 的段落排序权重(支持 GUI 热更新,数值越小位置越靠前)。
maxSilentStepsnumber0允许模型连续多少步仅调用工具而不输出可见结论(支持 GUI 热更新)。默认 0 表示每步必报(当步漏发立即提醒);设为 N(如 2)表示允许连续静默 2 步,第 3 步仍无正文时才触发提醒(即每 N+1 步至少汇报一次)。同时支持别名 everySteps: N(自动换算为 maxSilentSteps: N - 1)。
ignoreToolsstring[][]忽略的工具名称列表(例如 ["todo_write"])。当某一步仅调用了列表内的工具时,不触发漏发阶段性结论提醒。
promptTextstring(内置预设)自定义注入到 System Prompt 的规范正文;留空时自动使用 locale 对应的内置预设。
reminderTextstring(内置预设)自定义检测到静默工具调用时注入的软提醒文本(支持 GUI 热更新);留空或恢复默认时使用内置预设。