dixieWithHeart/dsh-doom-loop-guard ↗★ 0
dsh-doom-loop-guard
检测推理中的重复循环(doom loop),命中时提醒、截断或响铃,并生成历史报告。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dixieWithHeart/dsh-doom-loop-guard说明文档
阅读完整 README ↗配置
写在 profile 的 cordis.patch.yml(id dsh-doom-loop-guard),或在设置页改;设置页写入 ~/.dsh/dsh-doom-loop-guard.json。
| 字段 | 默认 | 说明 |
|---|---|---|
preset | standard | relaxed / standard / sensitive |
intervention | nudge | observe / nudge / cut |
warnAbovePercent | 0 | 生效门槛,0 为全程 |
autoResume | true | cut 后自动续跑 |
maxConsecutiveCuts | 3 | 连续截断上限 |
soundEnabled | true | 音效 |
soundPath | '' | 自定义音频,留空用内置 |
reportDays / reportLimit | 7 / 20 | 历史扫描范围 |
阈值由等级决定,也可在 patch 里直接写 maxDashRun / maxParenRun / shortSentenceRepeat / maxRepeatGap / shortRepeatRatio 覆盖。