What is stuck-loop-detector?
stuck-loop-detector is a Claude Code mod by NarenDawar that notices when Claude repeats the same tool call or bounces between two, shows a status warning, and tells Claude to change approach. It is listed under Interface and has 4 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | NarenDawar |
| Repository | NarenDawar/narens-claude-toolkit |
| Popularity | 4 GitHub stars |
| Category | Interface |
| Security | Low risk (84/100) |
| Rank | #1,615 of 9,397 Claude Code mods; #687 in Interface |
| License | MIT |
| Last commit | 2026-11-22 |
| Hooks | 2 events |
| Sees | every prompt, every tool call |
| Draws on | nothing |
Is stuck-loop-detector safe to install?
stuck-loop-detector scores 84/100 on the MCPMods security check: Low risk. Things to review: watches every prompt or event. It passed 6 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install stuck-loop-detector?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/NarenDawar/narens-claude-toolkit claude plugin validate ./narens-claude-toolkit/mods/stuck-loop-detector
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/NarenDawar/narens-claude-toolkit && claude --plugin-dir ./narens-claude-toolkit/mods/stuck-loop-detector
Or ask Claude to set it up
Paste this into Claude Code and it installs stuck-loop-detector for you:
Install the "stuck-loop-detector" Claude Code mod from https://github.com/NarenDawar/narens-claude-toolkit/tree/main/mods/stuck-loop-detector. Run claude plugin validate on it first and show me what it can access before you enable it.
More from NarenDawar/narens-claude-toolkit
This repository has 5 Claude Code mods on MCPMods.
- outgoing-secret-guard: Redacts API keys, tokens and private keys from your prompts before the model sees them, and blocks network-bound tool ca (Low risk)
- clocks-band: A band above the prompt showing every Bash command, MCP call and subagent that has run for a while, with elapsed time ag (Low risk)
- local-answer-router: Answers trivial questions (what branch, what changed, did the last test pass) from git and the last test run on your mac (Review before installing)
- subagent-meter: A live status line showing how much of your session's tokens go to subagents, and which agent type uses the most. (Low risk)