---
name: loop-breaker
description: Catches your AI agent repeating the same failing step or tool call. Call check_step after each step; when the same call fails the same way 3 times, or runs 5 times in a row, Pro halts the run before it burns more time and money. Free watch-only mode never halts: it flags loops and drafts a weekly report. Pro is $9 a month.
---
# Loop Breaker

Works with Claude, Codex, ChatGPT, Grok Bot. Bring your own model.

Connect the MCP server at https://loop.cloudforbots.com/mcp (Claude Code: `claude mcp add --transport http loop-breaker https://loop.cloudforbots.com/mcp`).

## When to use
- `check_step`: Call AFTER each tool call or agent step with what you just did and whether it failed. Loop Breaker fingerprints the call (tool + normalized args + error) and returns verdict ok, loop_detected or halted. Pro: on a loop, halt=true; stop the run, do not retry, and tell your user what repeated. Free watch-only: never halts, returns would_halt and logs it for the weekly report.
- `loop_status`: Show a run's loops so far, whether it is halted, and its last 10 steps.
- `weekly_report`: Draft a plain-English report of the last 7 days for your key (or IP): runs, loops caught, wasted repeat steps, and the worst offenders. Read-only; sends nothing. Show it to your user.

## Rules
1. Before calling, state in one line what you understood the user wants.
2. Report the tool's `job` and `outcome` lines to the user.
3. If you get `free_limit_reached`, tell the user the free tier is 500/day and share the $9/month link: https://pay.instaloops.com/b/eVqaEXbtS8QTgdxdgX83C3y
