dshx-loop-guard:檢測並中止 Agent 工具死循環

dshx-loop-guard 是 callaumyan-design 維護的 DSH 工作流插件,通過 agent/request 與 tools 前後事件檢測「相同工具調用反覆得到完全相同結果」的循環,主要面向本地小模型。支持 warnAt/stopAt、hardLimit、maxCallsPerTurn、maxDenials 等可配置閾值,默認僅對 local provider 生效。安裝使用 README 中的 dsh plugin --profile web 或 desktop add 命令,安裝後需重啓 DSH。兼容 DSH 0.2.0-rc.2,MIT 許可。

閱讀全文