Ralph Cancel
Cancel an active Ralph Loop
Ralph Cancel - Stop Active Loop
Cancel an active /ralph:ralph-loop execution.
Model: This command uses Haiku for fast, simple state update.
Execution
Spawn a Task agent with model: "haiku" and subagent_type: "general-purpose" to update loop state.
Instructions
-
Read
.ralph/loop-state.json -
If
activeis false:- Output: "No active loop to cancel."
- Exit
-
Update
.ralph/loop-state.json:
{
"active": false,
"status": "CANCELLED",
"cancelled": "<ISO timestamp>",
...existing fields preserved...
}
- Output:
LOOP CANCELLED
Feature: {feature-slug}
Iterations completed: {N}
Tasks completed: {count}
- FEAT-XXX: Title
...
Progress has been saved. To resume later:
/ralph:ralph-loop
To start fresh on this feature:
1. Reset tasks in .ralph/features/FEAT_{feature}.md
2. Update .ralph/progress.txt
3. /ralph:ralph-loop
- Output
<promise>COMPLETE</promise>