Skip to content
Claude Code Mods

Hook

ralph-loop Stop hook

Source verified. Source URL responded on 2026-09-20. Not a security review.Installable
  • Workflow
License
Apache-2.0

A Stop hook script that blocks Claude from exiting and feeds the same prompt back until a completion promise or an iteration cap is reached.

stop-hook.sh reads a state file at .claude/ralph-loop.local.md, and if a loop is active it blocks the stop and re-feeds the prompt. It ends the loop when the max iterations value is reached or when the last assistant message contains the expected promise tag. It only reacts to the session that started the loop.

The script relies on jq and perl. The README says the default iteration limit is unlimited and recommends always passing --max-iterations, since a loop on an impossible task will otherwise keep spending tokens.

What the badge means

Source verified means the source URL for this entry responded with HTTP 200 on . That is the whole claim. Nobody has read, scanned or run this code on your behalf, and the badge does not mean Anthropic or anyone else endorses it.

Sources change after the check date. Read the code and the publisher page before you install. How to check an extension

  • Mod

    Built inSource verified. Source URL responded on 2026-09-21. Not a security review.

    agents-md

    Reads AGENTS.md as project instructions the way Claude Code reads CLAUDE.md, chosen by one option, instructionFiles, with four values.

    • Workflow
    • Development
  • Mod

    Built inSource verified. Source URL responded on 2026-09-21. Not a security review.

    diff

    Adds /diff: the session's uncommitted changes in a pane beside the transcript, file by file with their hunks, refreshed as Claude edits files and runs commands.

    • Development
    • Workflow
  • Command

    Source verified. Source URL responded on 2026-09-20. Not a security review.

    /clean_gone

    A slash command from commit-commands that deletes local git branches whose remote branch is gone, removing their worktrees first.

    • Workflow