CursorPool
← 返回首页
Ralph Loop logo

Ralph Loop

67

持续自指 AI 循环迭代开发(Ralph Wiggum 技巧):在同一提示词的 while 循环中运行 Agent,直至任务完成。

3 个 Skill

# Cancel Ralph

## Trigger

The user wants to cancel or stop an active 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)."

## Output

A short confirmation with the iteration count, or a message that no loop was active.