stuck-loop-detector

by NarenDawar · ★ 4 · updated 3 days ago

Status lineGuardsPromptwarnings

0

Notices when Claude repeats the same tool call or bounces between two, shows a status warning, and tells Claude to change approach.

install stuck-loop-detector

Install

git clone https://github.com/NarenDawar/narens-claude-toolkit
claude --plugin-dir ./narens-claude-toolkit/mods/stuck-loop-detector

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
prompt.submittool.call
API calls
$.ui.status$.ui.toast
Can see
every promptevery tool call
Reach
level 0 of 3 draws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/NarenDawar/narens-claude-toolkit
Path in repo
mods/stuck-loop-detector
Source commit
ffadb25 the exact code the scan read
Author
@NarenDawar
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 NarenDawar/narens-claude-toolkit

clocks-band

NarenDawar/narens-claude-toolkit

A band above the prompt showing every Bash command, MCP call and subagent that has run for a while, with elapsed time against its limit.

★ 4Other

local-answer-router

NarenDawar/narens-claude-toolkit

Answers trivial questions (what branch, what changed, did the last test pass) from git and the last test run on your machine, with no model tokens.

★ 4GuardsPromptAutomation

outgoing-secret-guard

NarenDawar/narens-claude-toolkit

Redacts API keys, tokens and private keys from your prompts before the model sees them, and blocks network-bound tool calls that carry one.

★ 4ToastsGuardsPrompt

subagent-meter

NarenDawar/narens-claude-toolkit

A live status line showing how much of your session's tokens go to subagents, and which agent type uses the most.

★ 4Status line

Other mods in Status line, close to this one by stars.