Xavier Ting AI for the rest of us

Ralph Loop

Runs Claude on the same task until it is done.

Why use Ralph Loop?

Some work does not come right on the first attempt, and sitting there restarting the assistant yourself gets old quickly. Ralph Loop catches the moment a session ends and feeds your original request straight back in, keeping every file change and the record of earlier attempts. Claude reads what it already tried, sees which checks failed, and goes again. It stops when it reports the finish word you picked, or when it reaches the number of attempts you allowed.

When should you use Ralph Loop?

Work where you can say plainly what finished looks like and something can check it for you automatically. The loop needs a finish line it can recognize, so open ended tasks are a poor fit.

How do you install and use Ralph Loop?

  1. Install it with the command below.
  2. Inside Claude Code, type /ralph-loop followed by your request. Add --max-iterations 10 to cap the attempts at ten, and --completion-promise DONE to set the finish word.
  3. Leave it to work. Stop it early at any point with /cancel-ralph.
Paste into the Terminal app claude plugin install ralph-loop@claude-plugins-official
← Back to the tools