
Ralph Loop
This is autonomous loop mode for Claude Code that keeps running the same prompt until your task is done. You set up a state file with clear completion criteria (usually a TODO.md checklist), and it iterates until it hits ALL_TASKS_COMPLETE or your max iteration cap. Named after Ralph Wiggum because it never stops despite confusion. Best for well-defined work like migrations, refactoring, or getting tests to pass. Not for exploratory work where you need judgment calls. The state file tracks iterations and you get checkpoint reminders every 5 loops to review progress. Basically supervised autonomy: you can let it run overnight on clear tasks, but you're meant to check in periodically. Includes safety caps and git tracking so nothing goes off the rails permanently.
- skills.sh installs
- 210
- GitHub stars
- 46
- last updated
- Aug 21, 2026
Install
$ npx -y skills add belumume/claude-skills --skill ralph-loop --agent claude-codeInstalls into .claude/skills of the current project.
Files
Ralph Wiggum Loop Mode
Named after the Simpsons character who "never stops despite being confused," this technique runs Claude Code in a loop where the prompt stays the same but the codebase accumulates changes. Each iteration reads previous work and continues until completion.
When to Use Ralph Mode
Ideal for:
- Well-defined implementation tasks with clear completion criteria
- Refactoring or migration work (e.g., React v16 to v19)
- Test-driven development cycles (run until tests pass)
- Batch processing or repetitive tasks
- Overnight autonomous work sessions
Not ideal for:
- Tasks requiring design decisions or human judgment
- Exploratory work without clear end states
- Tasks where requirements may change mid-execution
- First-time implementations where you need to learn the code
Activation Protocol
Step 1: Validate Task Suitability
Before activating, confirm:
- Task has clear, measurable completion criteria
- Success can be verified programmatically (tests, build, specific file state)
- The work is in a git-tracked directory
- You understand what success looks like
Step 2: Create State File
Sponsors
Details
- Repository
- github.com/belumume/claude-skills
- First seen
- Jun 3, 2026