Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Generate copy-paste bash scripts for Ralph Wiggum/AI agent loops (Codex, Claude Code, OpenCode, Goose). Use when asked for a "Ralph loop", "Ralph Wiggum loop", or an AI loop to plan/build code via PROMPT.md + AGENTS.md, SPECS, and IMPLEMENTATION_PLAN.md, including PLANNING vs BUILDING modes, backpressure, sandboxing, and completion conditions.
Generate copy-paste bash scripts for Ralph Wiggum/AI agent loops (Codex, Claude Code, OpenCode, Goose). Use when asked for a "Ralph loop", "Ralph Wiggum loop", or an AI loop to plan/build code via PROMPT.md + AGENTS.md, SPECS, and IMPLEMENTATION_PLAN.md, including PLANNING vs BUILDING modes, backpressure, sandboxing, and completion conditions.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
Enhanced Ralph pattern with event-driven notifications โ Codex/Claude calls OpenClaw when it needs attention instead of polling.
Each iteration spawns a fresh agent session with clean context. This is intentional: Avoids context window limits Each codex exec is a new process with no memory of previous runs Memory persists via files: IMPLEMENTATION_PLAN.md, AGENTS.md, git history
If OpenClaw is rate-limited when Codex sends a wake notification: The notification is written to .ralph/pending-notification.txt Wake is attempted (may fail) When OpenClaw recovers, it checks for pending notifications Work is never lost โ it's all in git/files
project/ โโโ PROMPT.md # Loaded each iteration (mode-specific) โโโ AGENTS.md # Project context, test commands, learnings โโโ IMPLEMENTATION_PLAN.md # Task list with status โโโ specs/ # Requirements specs โ โโโ overview.md โ โโโ <feature>.md โโโ .ralph/ โโโ ralph.log # Execution log โโโ pending-notification.txt # Current pending notification (if any) โโโ last-notification.txt # Previous notification (for reference)
.ralph/pending-notification.txt: { "timestamp": "2026-02-07T02:30:00+01:00", "project": "/home/user/my-project", "message": "DONE: All tasks complete.", "iteration": 15, "max_iterations": 20, "cli": "codex", "status": "pending" } Status values: pending โ Wake failed or not attempted delivered โ Wake succeeded
When coming back online after rate limit or downtime, check for pending notifications: # Find all pending notifications across projects find ~/projects -name "pending-notification.txt" -path "*/.ralph/*" 2>/dev/null # Or check a specific project cat /path/to/project/.ralph/pending-notification.txt
PrefixActionDONE:Report completion to user, summarize what was builtPLANNING_COMPLETE:Inform user, ask if ready for BUILDING modePROGRESS:Log it, update user if significantDECISION:Present options to user, wait for answer, inject into AGENTS.mdERROR:Check logs (.ralph/ralph.log), analyze, help or escalateBLOCKED:Escalate to user immediately with full contextQUESTION:Present to user, get clarification, inject into AGENTS.md
After processing a notification, clear it: mv .ralph/pending-notification.txt .ralph/last-notification.txt
Ask for (if not provided): Goal/JTBD: What outcome is needed? CLI: codex, claude, opencode, goose Mode: PLANNING, BUILDING, or BOTH Tech stack: Language, framework, database Test command: How to verify correctness Max iterations: Default 20
When all tasks are done: Add to IMPLEMENTATION_PLAN.md: STATUS: COMPLETE Notify: openclaw gateway wake --text "DONE: All tasks complete. Summary: <what was built>" --mode now ### 5. Run the Loop Use the provided `scripts/ralph.sh`: ```bash # Default: 20 iterations with Codex ./scripts/ralph.sh 20 # With Claude Code RALPH_CLI=claude ./scripts/ralph.sh 10 # With tests RALPH_TEST="pytest" ./scripts/ralph.sh
For independent tasks, use git worktrees: # Create worktrees for parallel work git worktree add /tmp/task-auth main git worktree add /tmp/task-upload main # Spawn parallel sessions (each is clean/fresh) exec pty:true background:true workdir:/tmp/task-auth command:"codex exec --full-auto 'Implement user authentication...'" exec pty:true background:true workdir:/tmp/task-upload command:"codex exec --full-auto 'Implement image upload...'" Track sessions: Session IDWorktreeTaskStatusabc123/tmp/task-authAuth modulerunningdef456/tmp/task-uploadImage uploadrunning Each Codex notifies independently. Check .ralph/pending-notification.txt in each worktree.
Requires git repository Each codex exec is a fresh session โ no memory between calls --full-auto: Auto-approve in workspace (sandboxed) --yolo: No sandbox, no approvals (dangerous but fast) Default model: gpt-5.2-codex
--dangerously-skip-permissions: Auto-approve (use in sandbox) No git requirement Each invocation is fresh
opencode run "$(cat PROMPT.md)"
goose run "$(cat PROMPT.md)"
โ ๏ธ Auto-approve flags are dangerous. Always: Run in a dedicated directory/branch Use a sandbox (Docker/VM) for untrusted projects Have git reset --hard ready as escape hatch Review commits before pushing
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.