qlheric/dsh-cvm--packages-dsh-intervention ↗★ 0

@qlheric/dsh-intervention

DSH 认知运行时插件:分档干预——收检测信号注入动态提示 需配合收敛判定或验证债务插件使用,将检测到的异常状态转化为具体的引导提示。

Package
@qlheric/dsh-intervention
Compatibility
Unverified
Version
0.1.0
License
MIT
Last updated
Oct 3, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:qlheric/dsh-cvm#18606b7f57970b96e25559d5daf5b65df4da355c&path:packages/dsh-intervention

dsh-intervention · 分档干预

唯一注入点:收 convergence/evidence 的信号,按优先级合并成动态提示注入 system prompt。

  • 订阅:cvm/signal(自定义事件)
  • 注入:ctx.systemPrompt.variable('cvm_intervention_hint') + ctx.systemPrompt.section('cvm:intervention')
  • 职责:把"检测"变成"行动"

逻辑

convergence.active → 注入"你在打转,换方法"
evidence.active    → 注入"你声称完成但没验证,先验证"
都无               → 空(不注入,守前缀缓存)

优先级:convergence(打转)> evidence(验证债务)。

为什么是"唯一注入点"

正交性要求:检测插件(convergence/evidence)只发信号,不注入;intervention 只收信号、注入。这样新增一个"检测"不需要改"注入",新增一个"干预动作"不需要改"检测"——这正是 Cordis 可组合性的价值。