circuit-breaker

by Mohammed Mubarak · ★ 1 · updated 27 Oct 2026

ReskinsGuardsCommandswarnings

0

Stop Claude from retrying the same failing shell command over and over. After N identical failures the next attempt is held, and you choose: stop, or try once more.

install circuit-breaker

Install

/plugin marketplace add MDmubarak786/claude-mods
/plugin install circuit-breaker@modhub

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startcommand.runtool.callturn.completeui.render
API calls
$.command.register$.store.get$.store.set$.ui.ask$.ui.invalidate$.ui.log
Draws
Spinner
Can see
Bash calls
Reach
level 0 of 3 persists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/MDmubarak786/claude-mods
Path in repo
mods/circuit-breaker
Source commit
8089966 the exact code the scan read
Author
Mohammed Mubarak @MDmubarak786
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from MDmubarak786/claude-mods

connect-four

MDmubarak786/claude-mods

Connect Four against Claude, in a pane. Press a column's digit to drop a disc; Claude answers in half a second at three levels, from beatable to a seven-move lookahead. Zero tokens.

★ 1PanesCommands

copy-last

MDmubarak786/claude-mods

Copy Claude's last reply, or its last code block, to the clipboard as clean Markdown with /copy, with no terminal indentation or trailing spaces.

★ 1CommandsAutomation

ding

MDmubarak786/claude-mods

Play a sound and post a desktop notification when Claude finishes a turn or needs you to answer a question or a permission prompt.

★ 1ToastsGuardsCommands

fence

MDmubarak786/claude-mods

Limit which paths Claude may edit in a project with one /fence command. Edits outside the fence are refused with a reason Claude can act on.

★ 1GuardsCommandsAutomation

game-2048

MDmubarak786/claude-mods

2048 in a pane. Slide tiles with w, a, s and d, merge equal numbers, reach 2048. Two undos, a best score that survives restarts, and a board that replays from its seed. Zero tokens.

★ 1PanesCommands

mcp-diet

MDmubarak786/claude-mods

Choose which MCP tools and subagent types Claude sees, per project. A pane lists every server and tool with the size of its description; defer or hide the ones this repo never needs and stop paying for them on every request.

★ 1PanesCommands

memory-lint

MDmubarak786/claude-mods

Know whether your auto-memory index loaded whole. Reports the index's size against a limit you set at every session start, names the entries past the cut, and warns when a session pushes it over.

★ 1Status lineGuardsCommands

pairs

MDmubarak786/claude-mods

Memory pairs in a pane. Sixteen face-down cards, eight matching pairs; press a card's letter to turn it, find its twin, finish in as few turns and as little time as you can. Best of each kept. Zero tokens.

★ 1PanesCommands

pins

MDmubarak786/claude-mods

Pin instructions that survive compaction, /clear, and restarts. /pin saves a rule for this project and every prompt carries the pinned list as context Claude reads.

★ 1CommandsPromptAutomation

pkg-guard

MDmubarak786/claude-mods

Hold npm, pnpm, yarn, pip, uv, and cargo installs of packages that don't exist, are brand new, or are barely downloaded, with the registry facts in the question. Catches hallucinated and typosquat packages before they land.

★ 1GuardsCommandsAutomation

red-green

MDmubarak786/claude-mods

Run the project's tests after any turn that edited files, print pass or fail under Claude's answer, and send the failure back to Claude with one /fix command.

★ 1GuardsCommandsAutomation

right-tool

MDmubarak786/claude-mods

Stop Claude using cat, grep, find, and sed in Bash when the Read, Grep, and Glob tools fit. Each redirected call saves a permission prompt and keeps raw shell output out of context.

★ 1GuardsCommandsAutomation

Other mods in Reskins, close to this one by stars.