loop-detective

Reviewed at commit d15db0e

Detect repeated Bash failures and edit/retry cycles with evidence, live cases and investigation prompts

Made by
YeonwooSung
What we checked

Watches Bash results and opens a case when the same command fails with the same output several times in a row (3 by default, adjustable 3-10), also noting edits made between retries. It shows a toast, a status line, a pane and /loop-report; it only keeps secret-masked summaries in memory, reads no files, runs no programs and makes no network calls.

Review details

Static review of the source at the pinned commit; not run. Registers handlers for session.start, session.end, tool.call, turn.complete, command.run (loop-report, loop-reset, loop-pane) and ui.render (Pane). Runtime calls: $.command.register, $.session.cwd, $.clock.after, $.ui.status, $.ui.invalidate, $.ui.toast, $.ui.open, $.ui.resolve. The tool.call handler records the tool name, the Bash command and the result, passes the call through unchanged (next(e) is awaited once, errors are rethrown, no retry) and classifies the result by exit code or test-framework summary lines. Commands, working directories, edited file paths and failure excerpts are stripped of terminal escapes, passed through a best-effort secret redactor and truncated before they are kept. All state lives in memory in the module (bounded: 100 closed cases, 512 groups, 128 agent contexts) and is cleared on /loop-reset, clear and resume; nothing is written to disk or the store. No fetch, process, fs or model calls. No npm dependencies. Nothing skipped.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for loop-detective

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/loop-detective.svg)](https://modsforclaude.com/mods/loop-detective/)

← All mods