Ralph Loop Rr
/install ralph-loop-rr
Ralph Loop Skill
Concept & Vision
Ralph Loop is a task execution discipline that turns the AI agent into a self-running sprint machine. For every user task, the AI creates a structured persistent memory file at /workspace/memory/ralph-loop.md and follows it until the job is done — checking off each step, updating progress, and sending brief human-readable updates after each completed phase. The name comes from Ralph Wiggum (The Simpsons): the AI keeps going, never gives up, and iterates until it succeeds.
Activation
Triggered when the user says:
- "Ralph loop" (any capitalization)
- "Start Ralph Loop on [task]"
- "Run it in Ralph loop"
- "Ralph loop" before any multi-step task
- Any task the user expects the AI to execute autonomously without questions
Ralph Loop File — Structure
Location: /workspace/memory/ralph-loop.md
# Ralph Loop — [Task Name]
Started: [YYYY-MM-DD HH:MM UTC] | Status: 🟡 In Progress
## Goal
[User's original request — verbatim]
## Plan
- [ ] Step 1 — [brief description of what needs doing]
- [ ] Step 2 — [brief description]
- [ ] Step 3 — [brief description]
...
## Current Work
[What I'm working on RIGHT NOW — one line]
## Progress Log
### Phase 1 — [Phase name] ✓
[Time] — [what is done]
### Phase 2 — [Phase name] ✓
[Time] — [what is done]
## Stalled / Blockers
[Empty — fill ONLY if stuck after 2 failed attempts]
Ralph Loop Protocol
PHASE 1: Init
- Create
/workspace/memory/ralph-loop.mdwith the full plan - Set status to
🟡 In Progress - Send ONE short Telegram message — informational only, NOT asking for anything:
"🚀 Task name — Ralph Loop started. What will be done."
PHASE 2: Execute — NEVER STOP
The only acceptable reasons to pause and wait for the user:
- Error cannot be resolved after exactly 2 attempts
- Critical information only the user has (e.g. their name, CV content, password)
For every other situation: keep working. Do not stop. Do not ask. Do not wait.
For each step in the plan:
- Read
ralph-loop.mdto know current state - Work the step completely (write code, run commands, create files, fetch data, write content)
- Update the file — mark the step as
[x] - Add sub-steps if the work reveals micro-tasks
- When a logical group of 2-4 steps is complete → add Progress Log entry + send ONE Telegram update:
"✅ [Phase name] — [what is done]. Starting: [next phase]."
- If the entire task is done → go to Phase 3
PHASE 2B: Only stop when truly stuck
Only stop here — never before:
- Write to "Stalled / Blockers" in
ralph-loop.md - Set status to
⏸️ Paused — Awaiting Input - Send Telegram message:
"⏸️ Ralph Loop paused — Step N: [exact error]. Please advise how to proceed."
- Wait for user's response. Resume only after they provide the solution.
- After resuming: continue from where you stopped, do not restart.
PHASE 3: Completion
- Set status to
✅ Done - Add final Progress Log entry
- Delete
/workspace/memory/ralph-loop.md - Send final Telegram message:
"🎉 Task name — done. [What was produced]. Files: [/workspace/path]."
- Ralph Loop ends.
Ralph Loop Rules
| Rule | Strictness |
|---|---|
| Never stop mid-task to ask the user something unless truly stuck | 🚨 CRITICAL |
| Do not restart a loop once started — continue until done | 🚨 CRITICAL |
| Send Telegram updates only after completing a phase (2-4 steps) | ✅ Normal |
| If stuck after 2 failed attempts → stop, inform, wait for user | ✅ Normal |
| Update the file after every single step | ✅ Normal |
| Delete ralph-loop.md on completion | ✅ Normal |
| Break large steps into micro-steps freely | ✅ Normal |
| Telegram messages are 2-3 sentences max | ✅ Normal |
Telegram Message Style
After a phase (good):
"✅ Job boards — пронашао 12 компанија. Следећи: компаније мета."
Bad (too long):
"Завршио сам истраживање job boards-ова и пронашао сам неколико занимљивих..."
Bad (asking a question):
"Да ли желиш да наставим са следећим кораком?"
Deactivating the Loop
The loop ends when all steps are checked [x] and the file is deleted. No lingering files.
Ralph Loop Rules (plain English)
- START → FINISH. No stopping in the middle.
- If stuck after 2 attempts → only then stop and tell the user
- Keep working until every step is
[x]before sending any Telegram message - Telegram message = progress notification, NOT a request for permission
- Delete the file when done
- Never restart a loop — continue from where you left off
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install ralph-loop-rr - After installation, invoke the skill by name or use
/ralph-loop-rr - Provide required inputs per the skill's parameter spec and get structured output
What is Ralph Loop Rr?
Autonomously executes multi-step tasks by creating and updating a persistent plan file at /workspace/memory/ralph-loop.md until completion. It is an AI Agent Skill for Claude Code / OpenClaw, with 50 downloads so far.
How do I install Ralph Loop Rr?
Run "/install ralph-loop-rr" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Ralph Loop Rr free?
Yes, Ralph Loop Rr is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Ralph Loop Rr support?
Ralph Loop Rr is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Ralph Loop Rr?
It is built and maintained by roboticresults (@roboticresults); the current version is v1.2.0.