Home / Claude Code mods / Interface / stuck-loop-detector

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.

Updated 2026-11-22

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.

TypeClaude code mod
AuthorNarenDawar
RepositoryNarenDawar/narens-claude-toolkit
Popularity4 GitHub stars
CategoryInterface
SecurityLow risk (84/100)
Rank#1,615 of 9,397 Claude Code mods; #687 in Interface
LicenseMIT
Last commit2026-11-22
Hooks2 events
Seesevery prompt, every tool call
Draws onnothing

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.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Watches every prompt or eventReview
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install stuck-loop-detector?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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)