dixieWithHeart/dsh-doom-loop-guard ↗★ 0

dsh-doom-loop-guard

检测推理中的重复循环(doom loop),命中时提醒、截断或响铃,并生成历史报告。

Package
dsh-doom-loop-guard
Compatibility
Unverified
Version
1.1.0
License
MIT
Last updated
Nov 9, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dixieWithHeart/dsh-doom-loop-guard

配置

写在 profile 的 cordis.patch.yml(id dsh-doom-loop-guard),或在设置页改;设置页写入 ~/.dsh/dsh-doom-loop-guard.json。

字段默认说明
presetstandardrelaxed / standard / sensitive
interventionnudgeobserve / nudge / cut
warnAbovePercent0生效门槛,0 为全程
autoResumetruecut 后自动续跑
maxConsecutiveCuts3连续截断上限
soundEnabledtrue音效
soundPath''自定义音频,留空用内置
reportDays / reportLimit7 / 20历史扫描范围

阈值由等级决定,也可在 patch 里直接写 maxDashRun / maxParenRun / shortSentenceRepeat / maxRepeatGap / shortRepeatRatio 覆盖。