cancel-ralph
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCancel Ralph
取消Ralph
Trigger
触发条件
The user wants to cancel or stop an active Ralph loop.
用户想要取消或停止正在运行的Ralph Loop。
Workflow
工作流程
-
Check ifexists.
.cursor/ralph/scratchpad.md -
If it does not exist: Tell the user "No active Ralph loop found."
-
If it exists:
- Read to get the current iteration from the
.cursor/ralph/scratchpad.mdfield.iteration: - Remove the state file and any done flag:
bash
rm -rf .cursor/ralph - Report: "Cancelled Ralph loop (was at iteration N)."
- Read
-
检查是否存在。
.cursor/ralph/scratchpad.md -
若不存在:告知用户 "未找到正在运行的Ralph Loop。"
-
若存在:
- 读取 ,从
.cursor/ralph/scratchpad.md字段获取当前迭代次数。iteration: - 删除状态文件及所有完成标记:
bash
rm -rf .cursor/ralph - 反馈:"已取消Ralph循环(当前处于第N次迭代)。"
- 读取
Output
输出
A short confirmation with the iteration count, or a message that no loop was active.
包含迭代次数的简短确认信息,或提示无循环正在运行的消息。