Ralph Loop
Agent Buildingralph-loopRalph Loop is an Agent Skill for agent building published in the foryourhealth111-pixel/Vibe-Skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Codex-compatible Ralph loop runner with dual engines (compat local state loop + optional open-ralph-wiggum backend).
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/foryourhealth111-pixel/Vibe-Skills/blob/HEAD/bundled/skills/ralph-loop/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/ralph-loop, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
ralph-loop
This is a Codex-oriented ralph-loop command with two execution engines.
Engine model
- Keeps the same command name:
ralph-loop. - Keeps the same default state file format:
.claude/ralph-loop.local.md. - Default
compatengine keeps local-state semantics and manual--next. - Optional
openengine delegates to externalopen-ralph-wiggumCLI for auto-iteration.
Script
- Script path:
scripts/ralph-loop.ps1
Usage
$codexHome = if ($env:CODEX_HOME) { $env:CODEX_HOME } else { Join-Path $HOME '.codex' }
$script = Join-Path $codexHome 'skills/ralph-loop/scripts/ralph-loop.ps1'
# Start a local compat loop
powershell -ExecutionPolicy Bypass -File $script Build a todo API --max-iterations 20 --completion-promise DONE
# Move to the next iteration manually
powershell -ExecutionPolicy Bypass -File $script --next
# Show current loop state
powershell -ExecutionPolicy Bypass -File $script --status
# Force restart with a new prompt
powershell -ExecutionPolicy Bypass -File $script New prompt --max-iterations 10 --force
# Use open-ralph-wiggum backend (auto loop, defaults to --agent codex and --no-commit)
powershell -ExecutionPolicy Bypass -File $script --engine open Build a todo API --max-iterations 20 --completion-promise DONE
Vibe compatibility
- Safe in
/viberouted sessions as a direct execution tool. - Does not force multi-agent orchestration.
- Keeps command names stable for unified memory and invocation.
openengine remains mutually exclusive with active XL team orchestration.
Notes
- Compat mode: if
max_iterationsis reached, the local state file is removed automatically. - Compat mode: completion promises are tracked in local state.
- Open mode:
--next,--force,--state-file,--stopare not available (managed by externalralphCLI semantics).