Stats
Actions
Tags
From cortex
Stops the autonomous Ralph Wiggum loop, generates session summary with iterations, duration, task, git commits log, diffs, and suggests next steps like review and /learn.
How this command is triggered — by the user, by Claude, or both
Slash command
/cortex:ralph-stopcommands/The summary Claude sees in its command listing — used to decide when to auto-load this command
# /ralph-stop — Halt Autonomous Loop You are stopping a Ralph Wiggum autonomous loop. ## Protocol ### Step 1: Check Loop State Read the loop file: If no loop file exists, report: "No active Ralph loop found." ### Step 2: Read Loop Stats Extract iteration count, start time, and task from the loop file. ### Step 3: Remove Loop File and Cached State If the loop was started with `--scope`, deactivate the freeze: ### Step 4: Generate Summary Show: ### Step 5: Show Git Summary ### Step 6: Suggest Next Steps - `/learn` if 3+ iterations completed (substantial work) - Review and push ...
You are stopping a Ralph Wiggum autonomous loop.
Read the loop file:
cat ~/.claude/knowledge/.ralph-active 2>/dev/null
If no loop file exists, report: "No active Ralph loop found."
Extract iteration count, start time, and task from the loop file.
rm -f ~/.claude/knowledge/.ralph-active
rm -f ~/.claude/knowledge/.ralph-search-cache
If the loop was started with --scope, deactivate the freeze:
/unfreeze
Show:
[Ralph] Loop stopped after {iteration} iterations.
Task: {prompt}
Started: {started_at}
Duration: {calculated_duration}
Commits made during loop:
{git log --oneline from start time}
Recommend:
- Review accumulated commits: git log --oneline
- Push when ready: git push
- Capture learnings: /learn
git log --oneline --since="STARTED_AT"
git diff --stat HEAD~{iteration_count} 2>/dev/null || git diff --stat
/learn if 3+ iterations completed (substantial work)npx claudepluginhub peaky8linders/claude-cortex