By hudzah
Enhanced Ralph Loop for iterative development with session persistence, guardrails, and progress tracking
npx claudepluginhub hudzah/claude-ralph-loopCancel active Ralph Loop
Manage global guardrails
Show Ralph Loop help
Start Ralph Loop with session persistence and guardrails
Resume a previous Ralph session
List all Ralph sessions
A Claude Code plugin marketplace for iterative development using the Ralph Wiggum technique.
Ralph Loop implements iterative development based on Geoffrey Huntley's Ralph Wiggum technique. The concept is simple:
while :; do
cat PROMPT.md | claude --continue
done
The same prompt is fed to Claude repeatedly. Claude sees its previous work in files and git history, allowing iterative improvement until the task is complete.
/plugin add-marketplace https://github.com/hudzah/claude-ralph-loop
/plugin install ralph-loop
| Command | Description |
|---|---|
/ralph-loop:loop PROMPT | Start a new Ralph loop session |
/ralph-loop:cancel | Cancel active loop (session preserved) |
/ralph-loop:sessions | List all past sessions |
/ralph-loop:resume <id> | Resume a previous session |
/ralph-loop:guardrail | Manage global guardrails |
/ralph-loop:help | Show help |
Each Ralph loop creates a session in .ralph/sessions/. Sessions are preserved even after cancellation, allowing you to resume later.
Guardrails are lessons learned from past failures. They persist across ALL sessions, helping Claude avoid repeating mistakes.
# Add a guardrail
/ralph-loop:guardrail add "Always run tests before claiming done"
# View guardrails
/ralph-loop:guardrail list
Each iteration is logged to progress.md, providing a history of work done.
To signal task completion, output a promise tag:
<promise>YOUR_PROMISE_TEXT</promise>
Only output this when the statement is TRUE. Do not lie to escape the loop.
# Basic loop with iteration limit
/ralph-loop:loop "Build a REST API for todos" --max-iterations 20
# With completion promise
/ralph-loop:loop "Fix the auth bug" --completion-promise "TESTS PASSING"
# Resume a previous session
/ralph-loop:sessions
/ralph-loop:resume 2024-01-12_build-a-rest-api
When running Ralph Loop, a .ralph/ directory is created in your project:
.ralph/
├── sessions/
│ └── 2024-01-12_build-a-rest-api/
│ ├── state.md # Loop state
│ ├── progress.md # Iteration history
│ └── errors.log # Failure records
├── guardrails.md # Global guardrails
├── current -> sessions/... # Active session symlink
└── activity.log # Activity log
MIT
Continuous self-referential AI loops for interactive iterative development, implementing the Ralph Wiggum technique. Run Claude in a while-true loop with the same prompt until task completion.
Complete developer toolkit for Claude Code
AI-supervised issue tracker for coding workflows. Manage tasks, discover work, and maintain context with simple CLI commands.
Advanced development superpowers for orchestrating complex workflows with Superpower Loop and work verification
The definitive Claude Code companion for .NET developers. 47 skills, 10 agents, 16 commands, 10 rules, 5 templates, 15 MCP tools, 7 hooks for modern .NET 10 / C# 14.
Efficient skill management system with progressive discovery — 410+ production-ready skills across 33+ domains