Ralph-orchestrator ralph-loop
Run, monitor, resume, merge, and debug Ralph loops. Use this skill whenever the user asks to operate `ralph run` or `ralph loops`, inspect loop state, recover suspended loops, analyze diagnostics, or unblock merge queue issues.
install
source · Clone the upstream repo
git clone https://github.com/mikeyobrien/ralph-orchestrator
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/mikeyobrien/ralph-orchestrator "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ralph-loop" ~/.claude/skills/mikeyobrien-ralph-orchestrator-ralph-loop && rm -rf "$T"
manifest:
skills/ralph-loop/SKILL.mdsource content
Ralph Loop
Use this skill to operate Ralph loops from the outside.
Use This Skill For
- Starting or continuing a Ralph run with the right
and-c
inputs-H - Inspecting loop state, worktrees, logs, history, and diffs
- Resuming a hook-suspended loop
- Merging or discarding completed worktree loops
- Debugging unexpected loop behavior with current diagnostics files
Workflow
- Start with
orralph loops list
to establish the current state.ralph loops list --json - If the user wants execution, run
with the right core config and hats source.ralph run ... - If the loop is stuck or suspicious, inspect
,logs
, andhistory
before changing state.diff - If the loop is suspended, read
and use.ralph/suspend-state.json
.ralph loops resume <id> - If a loop is queued or in
, inspect the diff first, then useneeds-review
,merge
,process
, orretry
as appropriate.discard - Use diagnostics when you need detailed evidence about hats, events, tool calls, parse errors, or performance.
Guardrails
- Prefer the CLI over direct edits to
state files..ralph - Treat tasks and memories as the canonical runtime systems; do not center scratchpad as the primary state model.
- Inspect diffs before merging.
- Only remove lock or queue artifacts when the underlying process is confirmed dead.
- Manual edits under
are last-resort recovery steps and should be called out explicitly when used..ralph/
Read These References When Needed
- For command recipes and operator flows:
references/commands.md - For diagnostics files and suspend-state details:
references/diagnostics.md