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.
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Paradox1278/dsh-empty-turn-guard說明文件
閱讀完整 README ↗配置
- 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] 上一步没有任何有效输出……请立刻继续执行。'
| 字段 | 默认值 | 说明 |
|---|---|---|
| enabled | false | 总开关,必须显式 true |
| maxConsecutiveEmptySteps | 0 | 连续空轮次上限;0 = 不限。设 N 表示允许连续 N 次,第 N+1 次放行 |
| maxRemediesPerTurn | 0 | 同一 turn 内补救次数上限;0 = 不限 |
| maxRemediesPerAgent | 0 | 单个 agent 生命周期补救总数上限;0 = 不限 |
| absoluteLimit | 10000 | 程序性死循环保险丝;0 = 关闭 |
| log | true | 是否通过 ctx.logger.warn 记录介入与放行 |
| steerText | 内置中文提示 | 注入给模型的内容(0.4.0 起要求「立刻继续执行,不要回复本条消息」) |