dshx-loop-guard: Detecting and Halting Agent Tool Infinite Loops
dshx-loop-guard is a DSH workflow plugin maintained by callaumyan-design that detects loops where "identical tool calls repeatedly yield identical results" through agent/request and tools event hooks, primarily targeting local small models. It supports configurable thresholds including warnAt/stopAt, hardLimit, maxCallsPerTurn, and maxDenials, and by default only applies to the local provider. Installation uses the dsh plugin --profile web or desktop add commands from the README, and DSH must be restarted after installation. Compatible with DSH 0.2.0-rc.2, MIT licensed.
Read More