Ralph Loop
SkillCommerce & financeralph-loop is a skill that starts a Ralph Loop for iterative self-referential development. It lets an AI agent repeat the same prompt in a loop until a coding task is finished, so the agent keeps working through the task without needing a new instruction each time. Use it when you want repeated autonomous iteration on a task until completion.
Use Ralph Loop in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Ralph Loop and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Ralph Loop skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Have an AI agent that can load and run skills.
What your AI can do with it
- Start a Ralph Loop for a coding task
- Repeat the same prompt in a loop until the task is finished
- Run iterative self-referential development
- Keep iterating autonomously until completion
Getting started
- Have an AI agent that can load and run skills.
- Add the ralph-loop skill to that agent.
- Ask the agent to run a ralph loop or start an iterative loop on your task.
- Let the loop repeat the same prompt until the coding task is finished.
What this skill tells your AI
The instructions your AI receives, as published by barbieri/local-openfinance in .agents/skills/ralph-loop/SKILL.md and read by Ahel’s review.
Trigger
The user wants to start a Ralph loop. An iterative development loop where the same prompt is fed back after every turn, and the agent sees its own previous work each iteration.
Workflow
-
Gather the user's task prompt and optional parameters:
max_iterations(number, default 0 for unlimited)completion_promise(text, or "null" if not set)
-
Create the directory
.cursor/ralph/if it doesn't exist, then write the state file at.cursor/ralph/scratchpad.mdwith this exact format:--- iteration: 1 max_iterations: <N or 0> completion_promise: "<TEXT>" or null --- <the user's task prompt goes here>Example:
--- iteration: 1 max_iterations: 20 completion_promise: "COMPLETE" --- Build a REST API for todos with CRUD operations, input validation, and tests. -
Confirm to the user that the Ralph loop is active, then begin working on the task.
-
The stop hook automatically intercepts each turn end and feeds the same prompt back as a followup message. You will see it prefixed with
[Ralph loop iteration N.].
Guardrails
- If a completion promise is set, you may ONLY output
<promise>TEXT</promise>when the statement is completely and genuinely true. - Do not output false promises to escape the loop.
- Always recommend setting
max_iterationsas a safety net. - Quote the
completion_promisevalue in the YAML frontmatter if it contains special characters.
Output
Confirm the loop is active (prompt, iteration limit, promise if set), then start working on the task immediately.
Signals
- GitHub stars
- 24
- Forks
- 2
- Last commit
- Oct 2026
Questions
- What is a ralph loop?
- A Ralph Loop is an iterative self-referential development process where the same prompt is repeated in a loop until a coding task is finished.
- When should I use ralph-loop?
- Use it when you ask to run a ralph loop, start an iterative loop, or want repeated autonomous iteration on a task until completion.
- Does it stop on its own?
- The loop repeats the same prompt until the coding task is finished.
- Can I use it for non coding tasks?
- It is described for iterative self-referential development and coding tasks.
Advanced
- Item type
- skill
- Key
ralph-loop- Source
- github.com/barbieri/local-openfinance
github.com/barbieri/local-openfinance
More in Commerce & finance
Skill · coreyhaines31
More in Commerce & financeagent-payment-x402
Skill · affaan-m
More in Commerce & financecustomer-billing-ops
Skill · affaan-m
More in Commerce & financereview
Skill · thedaviddias
More in Commerce & financestripe-projects
Skill · stripe
More in Commerce & financebacktesting-frameworks
Skill · wshobson
More in Commerce & finance