[](https://crates.io/crates/tool-loop-break)
Sliding-window detector for runaway agent tool loops. Trips when the
same `(tool, args_fingerprint)` appears `>= threshold` times inside
the recent `window`.
```rust
use tool_loop_break::LoopDetector;
let mut d = LoopDetector::new(10, 3);
if d.record("read_file", "abc") {
}
```
Zero deps. MIT or Apache-2.0.