SkillMaxx / Development / Ralph Loop

Ralph Loop logo

Ralph Loop

Interactive self-referential AI loops for iterative development, implementing the Ralph Wiggum technique. Claude works on the same task repeatedly, seeing its previous work, until completion.

PluginDevelopmentSource ↗Claude marketplace ↗

Last updated
Hands-on tests
Tested ✓ in 2 of 5

Install

Tested ✓✓ Verified from docsOfficial docs ↗
/plugin install ralph-loop@claude-plugins-official

Tested ✓ on 2026-10-16: installed and loaded in a throwaway sandbox with no credentials.

Log excerpt
Installing plugin "ralph-loop@claude-plugins-official"...✔ Successfully installed plugin: ralph-loop@claude-plugins-official (scope: user)
$ verify:
  ❯ ralph-loop@claude-plugins-official
    Status: ✔ enabled
1 run, latest 2026-10-16

Ralph Loop Plugin

Implementation of the Ralph Wiggum technique for iterative, self-referential AI development loops in Claude Code.

What is Ralph Loop?

Ralph Loop is a development methodology based on continuous AI agent loops. As Geoffrey Huntley describes it: "Ralph is a Bash loop" - a simple while true that repeatedly feeds an AI agent a prompt file, allowing it to iteratively improve its work until completion.

This technique is inspired by the Ralph Wiggum coding technique (named after the character from The Simpsons), embodying the philosophy of persistent iteration despite setbacks.

Core Concept

This plugin implements Ralph using a Stop hook that intercepts Claude's exit attempts:

# You run ONCE:
/ralph-loop "Your task description" --completion-promise "DONE"

# Then Claude Code automatically:
# 1. Works on the task
# 2. Tries to exit
# 3. Stop hook blocks exit
# 4. Stop hook feeds the SAME prompt back
# 5. Repeat until completion

The loop happens inside your current session - you don't need external bash loops. The Stop hook in hooks/stop-hook.sh creates the self-referential feedback loop by blocking normal session exit.

This creates a self-referential feedback loop where:

  • The prompt never changes between iterations
  • Claude's previous work persists in files
  • Each iteration sees modified files and git history
  • Claude autonomously improves by reading its own past work in files

Quick Start

/ralph-loop "Build a REST API for todos. Requirements: CRUD operations, input validation, tests. Output <promise>COMPLETE</promise> when done." --completion-promise "COMPLETE" --max-iterations 50

Claude will:

  • Implement the API iteratively
  • Run tests and see failures
  • Fix bugs based on test output
  • Iterate until all requirements met
  • Output the completion promise when done

Commands

/ralph-loop

Start a Ralph loop in your current session.

Usage:

/ralph-loop "<prompt>" --max-iterations <n> --completion-promise "<text>"

Options:

  • --max-iterations <n> - Stop after N iterations (default: unlimited)
  • --completion-promise <text> - Phrase that signals completion
/cancel-ralph

Cancel the active Ralph loop.

Usage:

/cancel-ralph
Read the full README on GitHub →

Preview from the source repo. Images are removed.

Similar alternatives

Stripe

Plugin · Development

Stripe development plugin for Claude

★ 2.0kTested ✓ in 3

Superpowers

Plugin · Development

Superpowers teaches Claude brainstorming, subagent driven development with built in code review, systematic...

★ 301kTested ✓ in 4

Deepeval

Plugin · Development

Skills for adding DeepEval evaluations, tracing, datasets, Confident AI reports, and iterative improvement...

★ 19kTested ✓ in 3

Agent SDK Dev

Plugin · Development

Development kit for working with the Claude Agent SDK

Tested ✓ in 2

↑↓ to move · Enter to open · Esc to close