Ralph Loop Help

作者 cursorccb5507cec15无许可证10K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Explain the Ralph Loop plugin, how it works, and available skills. Use when the user asks for help with ralph loop, wants to understand the technique, or needs usage examples.

仅含说明AI & Agents
AI 生成的概览

解释 Ralph Loop 插件、其迭代技术、选项、取消方式以及适用场景。

功能
提供关于 Ralph Loop 插件的帮助内容,说明 Ralph Wiggum 迭代开发技术,即把同一提示反复交给智能体。内容涵盖如何启动循环(包括最大迭代次数和完成承诺等选项)、如何取消循环,以及完成承诺的工作方式。它还列出该技术适合和不适合的情况,并根据用户的具体问题呈现这些信息。
适用场景
当用户询问 Ralph Loop 是什么、如何工作,或需要使用指导或示例时使用。它面向关于该技术的问题,而不是用于实际运行循环。
运行要求
不需要脚本或工具,仅为说明性技能。它引用外部链接供进一步阅读,但呈现说明不需要凭据、软件包或网络访问。

Ralph Loop Help

Trigger

The user asks what Ralph Loop is, how it works, or needs usage guidance.

What to Explain

What is Ralph Loop?

Ralph Loop implements the Ralph Wiggum technique — an iterative development methodology based on continuous AI loops, pioneered by Geoffrey Huntley.

Core concept: the same prompt is fed to the agent repeatedly. The "self-referential" aspect comes from the agent seeing its own previous work in the files and git history, not from feeding output back as input.

Each iteration:

  1. The agent receives the SAME prompt
  2. Works on the task, modifying files
  3. Tries to exit
  4. Stop hook intercepts and feeds the same prompt again
  5. The agent sees its previous work in the files
  6. Iteratively improves until completion

Starting a Ralph Loop

Tell the agent your task along with options:

Start a ralph loop: "Build a REST API for todos" --max-iterations 20 --completion-promise "COMPLETE"

Options:

  • --max-iterations N — max iterations before auto-stop
  • --completion-promise "TEXT" — phrase to signal completion

How it works:

  1. Creates .cursor/ralph/scratchpad.md state file
  2. Agent works on the task
  3. Stop hook intercepts exit and feeds the same prompt back
  4. Agent sees its previous work and iterates
  5. Continues until promise detected or max iterations reached

Cancelling a Ralph Loop

Ask the agent to cancel the ralph loop. It will remove the state file and report the iteration count.

Completion Promises

To signal completion, the agent outputs a <promise> tag:

<promise>TASK COMPLETE</promise>

The stop hook looks for this specific tag. Without it (or --max-iterations), Ralph runs indefinitely.

When to Use Ralph

Good for:

  • Well-defined tasks with clear success criteria
  • Tasks requiring iteration and refinement
  • Iterative development with self-correction
  • Greenfield projects

Not good for:

  • Tasks requiring human judgment or design decisions
  • One-shot operations
  • Tasks with unclear success criteria

Learn More

Output

Present the above information clearly to the user, tailored to their specific question.

来源与署名

来源:cursor/plugins位于ralph-loop/skills/ralph-loop-help提交ccb5507

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架