Home / Claude Code mods / Interface / loop-detector

loop-detector

loop-detector is a Claude Code mod by ktripathi2281 that warns when Claude Code seems stuck repeating the same edits, commands or failures.

Updated 2026-10-03

What is loop-detector?

loop-detector is a Claude Code mod by ktripathi2281 that warns when Claude Code seems stuck repeating the same edits, commands or failures. It is listed under Interface and has no public popularity data yet.

TypeClaude code mod
Authorktripathi2281
Repositoryktripathi2281/LoopDetector
Popularityno public popularity data yet
CategoryInterface
SecurityLow risk (96/100)
Rank#3,747 of 5,272 Claude Code mods; #1,560 in Interface
LicenseMIT
Last commit2026-10-03
Hooks7 events
Seesevery tool call
Draws onAbovePrompt, Pane

Is loop-detector safe to install?

loop-detector scores 96/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 7 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
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.command.register
$.prompt.fillwrites the prompt box
$.prompt.read
$.prompt.submitdrives Claude
$.prompt.suggestwrites the prompt box
$.session.surfaces
$.state.get
$.state.set
$.turn.abortdrives Claude
$.ui.closedraws interface
$.ui.copydraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install 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/ktripathi2281/LoopDetector
    claude plugin validate ./LoopDetector/loop-detector
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add ktripathi2281/LoopDetector && claude plugin install loop-detector@loop-detector

Or ask Claude to set it up

Paste this into Claude Code and it installs loop-detector for you:

Install the "loop-detector" Claude Code mod from https://github.com/ktripathi2281/LoopDetector/tree/main/loop-detector. Run claude plugin validate on it first and show me what it can access before you enable it.