ralph-loop

ralph-loop is a plugin for Claude Code from xiaoyuge886/aigc. Its manifest loads nothing; the 2 commands it bundles cost 10 tokens per session together, scanned A, a copy of ralph-loop, MIT.

An automated loop that repeatedly gives the same task to Claude until it is completed.

In plain words
What is it for?
Use it for tasks that require repeated coding, checking, and refinement. The loop can be cancelled while it is running.
Why use it?
It removes the need to manually restart an agent after each attempt during iterative development.

Plugin for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Claude Code
/plugin marketplace add xiaoyuge886/aigc
agentmods
npx agentmods add plugins/xiaoyuge886/aigc/ralph-loop
Clone the repo
git clone --depth 1 https://github.com/xiaoyuge886/aigc

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ralph-loop

README.md
[![agentmods](https://agentmods.dev/badge/plugins/xiaoyuge886/aigc/ralph-loop.svg)](https://agentmods.dev/plugins/xiaoyuge886/aigc/ralph-loop)
Your own site
<a href="https://agentmods.dev/plugins/xiaoyuge886/aigc/ralph-loop"><img src="https://agentmods.dev/badge/plugins/xiaoyuge886/aigc/ralph-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured The manifest loads nothing itself; its 2 commands cost 10 tokens a session between them.
Security scan A 0 findings. Scan, not verified.
Origin 88% copy Near-identical to another mod in the catalogue.
Security

Grade A, and why

ralph-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to ralph-loop — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/claude-plugins-official-main/plugins/ralph-loop/.claude-plugin/plugin.json · 9 lines

What it actually says

{
  "name": "ralph-loop",
  "description": "Continuous self-referential AI loops for interactive iterative development, implementing the Ralph Wiggum technique. Run Claude in a while-true loop with the same prompt until task completion.",
  "author": {
    "name": "Anthropic",
    "email": "[email protected]"
  }
}
Contents

What it installs

The manifest is a name and a version. 2 commands travel with it, and installing the plugin installs all of them — 10 tokens a session between them. Each is measured on its own page, and each can be installed alone.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 9 lines scan A 4ada936c5e4a

Subscribe to this mod's changes

ralph-loop is a plugin published in the GitHub repository xiaoyuge886/aigc (197 stars, last pushed 1mo ago), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. It is 88% identical to ralph-loop, differing in 1 line, and is treated as a copy.