ralph-loop
mikeyobrien/ralph-orchestrator/skills/ralph-loop/SKILL.md
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.
What's in it
- Ralph Loop
- Use This Skill For
- Workflow
- Guardrails
- Read These References When Needed
--- name: ralph-loop description: 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. --- # 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 `-c` and `-H` inputs - 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 1. Start with `ralph loops list` or `ralph loops list --json` to establish the current state. 2. If the user wants execution, run `ralph run ...` with the right core config and hats source. 3. If the loop is stuck or suspicious, inspect `logs`, `history`, and `diff` before changing state. 4. If the loop is suspended, read `.ralph/suspend-state.json` and use `ralph loops resume <id>`. 5. If a loop is queued or in `needs-review`, inspect the diff first, then use `merge`, `process`, `retry`, or `discard` as appropriate. 6. Use diagnostics when you need detailed evidence about hats, events, tool calls, parse errors, or performance. ## Guardrails - Prefer the CLI over direct edits to `.ralph` state files. - 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 `.ralph/` are last-resort recovery steps and should be called out explicitly when used. ## Read These References When Needed - For command recipes and operator flows: `references/commands.md` - For diagnostics files and suspend-state details: `references/diagnostics.md`
More agent context in mikeyobrien/ralph-orchestrator
18 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Skill
- code-assist.claude/skills/code-assist/SKILL.md
- code-task-generator.claude/skills/code-task-generator/SKILL.md
- evaluate-presets.claude/skills/evaluate-presets/SKILL.md
- find-code-tasks.claude/skills/find-code-tasks/SKILL.md
- pdd.claude/skills/pdd/SKILL.md
- playwriter.claude/skills/playwriter/SKILL.md
- pr-demo.claude/skills/pr-demo/SKILL.md
- ralph-tools.claude/skills/ralph-tools/SKILL.md
- release-bump.claude/skills/release-bump/SKILL.md
- review-pr.claude/skills/review-pr/SKILL.md
- test-driven-development.claude/skills/test-driven-development/SKILL.md
- tmux-terminal.claude/skills/tmux-terminal/SKILL.md
- tui-debug-in-pane.claude/skills/tui-debug-in-pane/SKILL.md
- tui-validate.claude/skills/tui-validate/SKILL.md
- ralph-docsskills/ralph-docs/SKILL.md
- ralph-hatsskills/ralph-hats/SKILL.md
Discussion
Talked about elsewhere, linking to mikeyobrien/ralph-orchestrator
- Show HN: Yet another tool to wrap agents in a loop
Hacker News · 6 points · Dec 17, 2025
- mikeyobrien / ralph-orchestrator: An improved implementation of the Ralph Wiggum technique for autonomous AI agent orchestration ★2797…
Bluesky · @rusttrending.bsky.social · 2 likes and reposts · May 3, 2026
- Feature Request: Add `clearContext` field to Stop hook output
GitHub · anthropics/claude-code · 3 reactions · 5 comments · Jan 7, 2026
- mikeyobrien / ralph-orchestrator: An improved implementation of the Ralph Wiggum technique for autonomous AI agent orchestration ★2371…
Bluesky · @rusttrending.bsky.social · 2 likes and reposts · 1 replies · Mar 26, 2026
- Add Ralph Wiggum Plugin Support
GitHub · langgenius/dify · 1 reactions · Jan 4, 2026
- mikeyobrien / ralph-orchestrator: An improved implementation of the Ralph Wiggum technique for autonomous AI agent orchestration ★1590…
Bluesky · @rusttrending.bsky.social · 1 likes and reposts · Feb 2, 2026
- agent-skills.github.mikeyobrien.ralph-orchestrator: init at 2.10.1
GitHub · sudosubin/agents.nix · Sep 30, 2026
- Bump the dev-dependencies group across 1 directory with 8 updates
GitHub · makioshibori/mma-trpg · Jul 23, 2026
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

