Ralph Wiggum Loop
Guide to the loop technique that feeds a coding agent the same prompt until a task is done
This Awesome Claude page explains the Ralph Wiggum loop, a technique from Geoffrey Huntley in 2025. A shell loop feeds an agent the same prompt until the task is complete. The guide covers the ralph-loop plugin, the built-in loop, goal, and batch commands in Claude Code, prompt practices, templates, and examples.
Use the technique for long, well-specified tasks with a clear test of done. Set a cost limit, because the loop runs until it stops itself.
Why it is here. It documents a widely copied pattern for autonomous agent runs.
- Origin and method
- Plugin and built-in commands
- Templates
Verified 2026-10-09. HTTP 200. https://awesomeclaude.ai/ralph-wiggum (HTTP 200, page fetched 2026-10-09), depo.zip listing https://www.depo.zip/tools/j5749350msb8c8qxxae1b29jys835fj0








