Home / Claude Code mods / Interface / loop-detective

loop-detective

loop-detective is a Claude Code mod by dwarvesf that detect repeated Bash failures and edit/retry cycles with evidence, live cases and investigation prompts.

Updated 2026-11-30

What is loop-detective?

loop-detective is a Claude Code mod by dwarvesf that detect repeated Bash failures and edit/retry cycles with evidence, live cases and investigation prompts. It is listed under Interface and has 15 GitHub stars.

TypeClaude code mod
Authordwarvesf
Repositorydwarvesf/dwarves-kit
Popularity15 GitHub stars
CategoryInterface
SecurityLow risk (96/100)
Rank#613 of 9,397 Claude Code mods; #243 in Interface
LicenseMIT
Last commit2026-11-30
Hooks6 events
Seesevery tool call
Draws onPane

Is loop-detective safe to install?

loop-detective 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
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.command.register
$.session.cwd
$.ui.invalidatedraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install loop-detective?

  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/dwarvesf/dwarves-kit
    claude plugin validate ./dwarves-kit/integrations/claude-code/loop-detective
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/dwarvesf/dwarves-kit && claude --plugin-dir ./dwarves-kit/integrations/claude-code/loop-detective

Or ask Claude to set it up

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

Install the "loop-detective" Claude Code mod from https://github.com/dwarvesf/dwarves-kit/tree/master/integrations/claude-code/loop-detective. Run claude plugin validate on it first and show me what it can access before you enable it.

More from dwarvesf/dwarves-kit

This repository has 5 Claude Code mods on MCPMods.

  • board-pane: /board opens a pane with the kit's board output and a Refresh button (Review before installing)
  • context-inspector: Context waste analyzer for Claude Code: what fills the window, re-reads, near-duplicate outputs, what compaction kept, a (Review before installing)
  • memory-lens: Recalls the few memories related to each prompt: one line for the human, one context entry for the model. Local files on (Review before installing)
  • secrets-veil: Masks secret values in tool results before the model reads them: named vendor variables, value-shape patterns, and high- (Low risk)