Official Ralph Wiggum plugin (Anthropic)
Anthropic's first-party take on the Ralph loop: a Claude Code plugin that runs the iterate-fresh-context pattern with a managed stop and iteration mechanism built in.
Implementation note
When to use: you want Ralph-style fresh-context iteration but would rather not hand-roll a bash while-loop and its stop logic — this is Anthropic's first-party packaging of the pattern. How it works: install the ralph-wiggum plugin from the anthropics/claude-code repo; it wraps the iterate-with-fresh-context loop inside Claude Code with a managed stop and iteration mechanism built in, so starting, bounding, and ending the loop are handled by the plugin rather than by shell plumbing you maintain yourself. Safety: the managed stop mechanism is the main advantage over the raw bash original, which loops forever by construction — here the halt logic is part of the tool. The usual Ralph rails still apply on top: run it against a repo where commits are cheap to revert, keep the per-iteration task small, and review the accumulated commits rather than trusting a long unattended run blindly.
Source: anthropics/claude-code ↗
More automation loops
Run workflows with dynamic sub-agents
Split a task into packets, run sub-agents in parallel, synthesize results, and verify completion.
Run agent turns until goal met
Agent executes repeated turns toward a condition, with a lightweight evaluator checking progress after each turn until the goal is reached.
Run agent until goal met
Queue agent turns with goal context until your objective is achieved, treating the goal as untrusted data.