dsh-output-loop-guard:在流式輸出中攔截模型自重複退化環
dsh-output-loop-guard 是 ADistanceThereIs 維護的 DSH bundle 插件,監聽 agent/assistant-stream,用滑動窗口與四條結構信號(repeated-block、dominant-gram、repeated-line、flat-tic)檢測推理或可見文本中的退化循環。觸發後通過 agent.cancel 中止生成,並以 agent.steer 注入糾正通知喚醒智能體,彌補僅檢測重複工具調用的 repeat-tool-reminder 盲區。要求 DSH >= 0.2.0-rc.2,支持 dryRun、可配置閾值;README 記載 27 會話語料回放 24 檢 0 誤報。安裝可用 GitHub commit、本地 tgz 或 v0.1.0 Release URL,需重啓 DSH 生效。
閱讀全文