Paradox1278/dsh-empty-turn-guard ↗★ 0

dsh-empty-turn-guard

DSH plugin: detect turns the upstream finished with stop_reason=tool_use but that delivered no tool-call, and steer the turn to continue instead of silently marking it completed.

包名
dsh-empty-turn-guard
兼容性
待验证
版本
0.4.0
许可证
MIT
最近更新
2026年11月12日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Paradox1278/dsh-empty-turn-guard

配置

- insert:
    - id: dsh-empty-turn-guard
      name: dsh-empty-turn-guard
      config:
        enabled: true
        maxConsecutiveEmptySteps: 0
        maxRemediesPerTurn: 0
        maxRemediesPerAgent: 0
        absoluteLimit: 10000
        log: true
        steerText: '[empty-turn-guard] 上一步没有任何有效输出……请立刻继续执行。'
字段默认值说明
enabledfalse总开关,必须显式 true
maxConsecutiveEmptySteps0连续空轮次上限;0 = 不限。设 N 表示允许连续 N 次,第 N+1 次放行
maxRemediesPerTurn0同一 turn 内补救次数上限;0 = 不限
maxRemediesPerAgent0单个 agent 生命周期补救总数上限;0 = 不限
absoluteLimit10000程序性死循环保险丝;0 = 关闭
logtrue是否通过 ctx.logger.warn 记录介入与放行
steerText内置中文提示注入给模型的内容(0.4.0 起要求「立刻继续执行,不要回复本条消息」)