Use when managing Ralph orchestration loops, analyzing diagnostic data, debugging hat selection, investigating backpressure, or performing post-mortem analysis
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Instruções da origem · Visualização somente leitura
name
ralph-operations
description
Use when managing Ralph orchestration loops, analyzing diagnostic data, debugging hat selection, investigating backpressure, or performing post-mortem analysis
tags
["loops","diagnostics","debugging","analysis"]
Ralph Operations
Manage, monitor, and diagnose Ralph orchestration loops.
Loop Management
Quick Reference
Task
Command
List active loops
ralph loops
List all (including merged)
ralph loops --all
View loop changes
ralph loops diff <id>
View loop logs
ralph loops logs <id>
Follow logs live
ralph loops logs <id> -f
Stop running loop
ralph loops stop <id>
Merge completed loop
ralph loops merge <id>
Retry failed merge
ralph loops retry <id>
Abandon loop
ralph loops discard <id>
Clean stale processes
ralph loops prune
Loop ID format: Partial matching works - a3f2 matches loop-20250124-143052-a3f2
Loop Status
Status
Color
Meaning
running
green
Loop is actively executing
queued
blue
Completed, waiting for merge
merging
yellow
Merge in progress
needs-review
red
Merge failed, requires intervention
merged
dim
Successfully merged (with --all)
discarded
dim
Abandoned (with --all)
Starting & Stopping
Loops start automatically via ralph run:
Primary loop: Runs in main workspace, holds .ralph/loop.lock
Worktree loop: Created when primary is running, isolated in .worktrees/<loop-id>/
ralph loops # Any loops running?cat .ralph/loop.lock 2>/dev/null # Primary loop details
ralph loops stop <id> # Graceful stop
ralph loops stop <id> --force # Immediate stop
ralph loops discard <id> # Abandon + clean worktree
Inspecting Loops
ralph loops diff <id> # What changed
ralph loops logs <id> -f # Live event log
ralph loops history <id> # State changes
ralph loops attach <id> # Shell into worktree
Worktree context files (.worktrees/<loop-id>/):
File
Contents
.ralph/events.jsonl
Event stream: hats, iterations, tool calls
.ralph/agent/summary.md
Current session summary
.ralph/agent/handoff.md
Handoff context for next iteration
.ralph/agent/scratchpad.md
Working notes
.ralph/agent/tasks.jsonl
Runtime task state
Primary loop uses the same files at .ralph/agent/ in repo root.
Merge Queue
Flow: Queued → Merging → Merged or → NeedsReview → Merging (retry) or → Discarded
ralph loops merge <id> # Queue for merge
ralph loops process # Process pending merges now
ralph loops retry <id> # Retry failed merge