ralph-wiggum-loop

Multi-model iterative development agent plugin — Ralph Loop with cross-model worker/reviewer architecture, Agent Skills, Stop hooks, and SHIP/REVISE decision engine.

View the Project on GitHub sheldonrobinson/ralph-wiggum-loop

ralph-wiggum-loop

Multi-model iterative development agent plugin — Ralph Loop with cross-model worker/reviewer architecture, Agent Skills (.agents/skills/), Stop hooks, and SHIP/REVISE decision engine.

Read the Full Documentation -> Deployment Guide ->

What is the Ralph Loop?

A two-phase iterative workflow where a worker model implements the task and an independent reviewer model provides cross-model verification, iterating until the reviewer issues “SHIP” (or <promise>DONE</promise> in in-session Stop-hook mode).

+----------+      WORK PHASE       +----------+
|   TASK   | --------------------> |  WORKER  |
|  / SPEC  |     fresh context     | (Model A)|
+----------+                       +-----+----+
                                         |
                                         v
                           +--------------------+
                           |   Submit Work +    |
                           |      Summary       |
                           +---------+----------+
                                     |
                                     v
+----------+     REVIEW PHASE      +----------+
| REVIEWER | <-------------------- |   WORK   |
| (Model B)|   cross-model review  |  OUTPUT  |
+----+-----+                       +----------+
     |
     v
+----------+
| DECISION | ------> SHIP (Complete)
|          | ------> REVISE (Next Iteration)
+----------+

Key Features

Quick Start

1. Install Skill to .agents/skills/

# Linux / macOS
mkdir -p .agents/skills
cp -R skills/ralph-wiggum-loop .agents/skills/ralph-wiggum-loop
# Windows (PowerShell)
New-Item -ItemType Directory -Path .agents/skills -Force | Out-Null
Copy-Item -Recurse -Force skills/ralph-wiggum-loop .agents/skills/ralph-wiggum-loop

2. Run via Polyglot Script Runner

# Linux / macOS (Bash)
./bin/script-runner.sh ralph-wiggum-loop "Implement user authentication with JWT tokens" --profile pro

# Or start MCP Server (stdio)
./bin/script-runner.sh ralph-wiggum-loop --stdio

# Or start Streamable HTTP Service (http://127.0.0.1:8080/mcp)
./bin/script-runner.sh start-http-server start --host 127.0.0.1 --port 8080
# Windows (PowerShell)
pwsh -NoProfile -ExecutionPolicy Bypass -File .\bin\script-runner.ps1 ralph-wiggum-loop "Implement user authentication with JWT tokens" --profile pro

# Or start MCP Server (stdio)
pwsh -NoProfile -ExecutionPolicy Bypass -File .\bin\script-runner.ps1 ralph-wiggum-loop --stdio

# Or start Streamable HTTP Service (http://127.0.0.1:8080/mcp)
pwsh -NoProfile -ExecutionPolicy Bypass -File .\bin\script-runner.ps1 start-http-server start --host 127.0.0.1 --port 8080

Documentation

Repository & Specifications

License

MIT