DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to catch agent retry loops before they burn your session with My Claude Code Mods

Detect repeated Bash failures and edit or retry cycles with evidence and investigation prompts.

Short answer: Add the marketplace with claude plugin marketplace add YeonwooSung/my-claude-code-mods if you have not already; then install with claude plugin install loop-detective@my-claude-code-mods --scope user; start a new Claude Code session, or run /reload-plugins, then run /plugin to confirm loop-detective is loaded. All steps.

Who it is forA developer who notices an agent retrying the same failing command or edit over and over, and wants it flagged with proof.

The problemRetry cycles can run for a long time before anyone notices the agent is stuck.

The outcomeA flagged loop with its evidence, an investigation prompt to break the cycle, and a bounded history of past cases.

What you need first

  • A Claude Code CLI with Mods support (mods are enabled by default from 2.1.287)
  • git on your PATH for Time Machine
  • A terminal running macOS, Linux, or a Bash or Zsh shell for the install block
  • Node 22.19.0 or later only if you plan to run the repo's development tests

Steps

  1. Add the marketplace with claude plugin marketplace add YeonwooSung/my-claude-code-mods if you have not already.
  2. Install with claude plugin install loop-detective@my-claude-code-mods --scope user.
  3. Start a new Claude Code session, or run /reload-plugins, then run /plugin to confirm loop-detective is loaded.
  4. Watch the live case pane during a session and open the evidence for any flagged case.
  5. Use the investigation prompt for a flagged case to redirect the agent, then check the case history if the loop returns.

Prompt for your agent

Using the repo YeonwooSung/my-claude-code-mods, install loop-detective at user scope and run a session on <task description>. Report every flagged repeated Bash failure or edit/retry cycle with its evidence and the investigation prompt shown. Verify that each flagged case cites at least two matching attempts from the session before you report it.

Caveat. The README verifies the Loop Detective engine suite on Claude Code 2.1.280 and live UI rendering is not separately established, so check the case pane in your own terminal.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for YeonwooSung/my-claude-code-mods and "Catch agent retry loops before they burn your session"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer