All shelves / Mods / Safety
loop-breaker
By mishgoldenberg
loop-breaker is a Claude Code safety mod by mishgoldenberg.
Notices Claude going in circles, the same command failing 3 times or the same code rewritten 3 times in a turn, tells you, and tells Claude to stop and rethink.
Draws
Install
The marketplace name is claude-mods.
claude plugin marketplace add mishgoldenberg/claude-mods claude plugin install "loop-breaker@claude-mods"
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.1.1
- License
- MIT
- Repo stars
- 11
- Last change
- 2026-10-05
What it can reach
- Draws in the session
- Sees tool calls
Needs Claude Code 2.1.286 or newer. Restart Claude Code after installing. The README's main install adds mod-manager and picks mods from its /mods pane; this line is from its loop that installs every mod without the manager. Panels dock beside the chat in the desktop app or a terminal 144 columns wide or more, and open inline in narrower ones. Options appear in /config. Function hooks are early access, and a Claude Code update can break a mod. failLimit and editLimit set the counts, 3 by default. Separate edits to different parts of a file never count.
The marketplace name is claude-mods. The marketplace also holds mod-manager, which installs the others from a pane, and ten more mods. This one installs on its own. The README's loop installs every mod with claude plugin install "$m@claude-mods"; this page puts this mod's name in place of $m. Catching Claude going in circles is why this page files it under safety. loop-detective opens a case when the same Bash command fails the same way again. agent-usage-guard asks before a tool loop runs on, from the plan usage. This one counts both failing commands and rewrites of the same code in one turn, then tells you and Claude once per loop. In the source, the toast stays 9 seconds and the note reaches Claude on its next step. It refuses nothing.
Demo

What it hooks into
turn.startWhen Claude starts a turntool.callAround a tool call, where it can hold oneBashPowerShellEditWrite
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Files
The author's source, 3 files. They load when you open them.
Facts
- Author
- mishgoldenberg
- Category
- Safety
- Marketplace
- claude-mods
- Folder
- plugins/loop-breaker
- Version
- 0.1.1
- License
- MIT
- Repo stars
- 11
- Last change
- 2026-10-05
- Language
- TypeScript
- Files
- 3