cancel-ralph

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Cancel Ralph

取消Ralph

Trigger

触发条件

The user wants to cancel or stop an active Ralph loop.
用户想要取消或停止正在运行的Ralph Loop。

Workflow

工作流程

  1. Check if
    .cursor/ralph/scratchpad.md
    exists.
  2. If it does not exist: Tell the user "No active Ralph loop found."
  3. If it exists:
    • Read
      .cursor/ralph/scratchpad.md
      to get the current iteration from the
      iteration:
      field.
    • Remove the state file and any done flag:
      bash
      rm -rf .cursor/ralph
    • Report: "Cancelled Ralph loop (was at iteration N)."
  1. 检查
    .cursor/ralph/scratchpad.md
    是否存在。
  2. 若不存在:告知用户 "未找到正在运行的Ralph Loop。"
  3. 若存在:
    • 读取
      .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.
包含迭代次数的简短确认信息,或提示无循环正在运行的消息。