Overview
open-ralph-wiggum is an agent-agnostic CLI implementation of the ralph-loop pattern by Th0rgal, published as @th0rgal/ralph-wiggum on npm. Its premise is that the loop is harness-level infrastructure rather than a property of any one coding agent: ralph "Build a REST API" --agent claude-code --max-iterations 10 runs the same workflow across six different agents, switched by a single flag. The README credits Geoffrey Huntley’s Ralph Wiggum technique directly, making this a second-generation implementation rather than an independent invention.
Implications. Where snarktank-ralph is a bash script coupled to a specific PRD format, this is a portable runtime. The loop’s value therefore does not depend on which model or vendor sits behind it — a material detail for anyone deciding whether to build workflow on top of a pattern that could otherwise be locked to a single agent CLI.
Key Facts
- Stars: 1.9k (GitHub, snapshot of 2026-08-04)
- Forks: 142 | Commits: 103
- License: MIT
- Author: Th0rgal
- Runtime: Bun; written in TypeScript (
ralph.ts,completion.ts) - Install:
npm install -g @th0rgal/ralph-wiggum, orbun add -g - Supported agents: claude-code (
--agent claude-code), OpenAI Codex, GitHub Copilot CLI, Cursor Agent, Alibaba Qwen Code, and OpenCode (the default)
Implications. The star count is a dated snapshot and will drift; it is recorded with its capture date so a later re-capture can be compared against it rather than silently overwriting it.
Operational Affordances
The CLI documents controls that the pattern’s conceptual descriptions do not:
--max-iterations— a hard cap, present in every README example. This is the one guardrail that ASDLC lists as an anti-pattern when missing, shipped here as a first-class flag.--tasks— built-in task tracking for larger projects; this tool’s equivalent ofprd.json.--status— live monitoring from a second terminal, including history and “struggle indicators” that surface when the loop is failing to converge.--add-context— injects a mid-loop hint without stopping the loop.- Agent binaries are configurable through environment variables (
RALPH_CLAUDE_BINARY,RALPH_CODEX_BINARY, and so on), so the harness assumes no particular install layout.
--add-context deserves the emphasis: an AFK pattern whose whole premise is removing the human from each iteration still ships a deliberate channel for putting the human back in, without discarding accumulated loop state.
Implications. The observability controls are what make an autonomous loop supervisable rather than merely unattended. Struggle indicators and mid-loop hints turn the choice between full autonomy and full babysitting into a dial — a more honest picture of how the pattern is used in practice than either extreme.
Stated Mechanism
The README’s own explanation of why the loop works: “The AI doesn’t talk to itself between iterations. It sees the same prompt each time, but the codebase has changed from previous iterations.” Memory therefore lives in files and git history rather than in conversation, and the loop terminates on an exact completion string (<promise>DONE</promise>) rather than on the agent’s self-assessment.
With RALPH_CODEX_GOAL=1 and RALPH_CODEX_BACKEND=omx, responsibility is split explicitly across two nested loops: Ralph owns cross-iteration retries, while Codex’s own goal mode owns a single iteration.
Implications. This is the inner/outer loop layering made concrete rather than theoretical — the same division ASDLC.io describes abstractly when it maps the ralph-loop onto OODA as a wrapper around a ReAct-style inner loop.
Limitations
- Every claim here comes from a single vendor-authored source, the project’s own README, captured 2026-08-04. No independent benchmark, adoption study, or third-party review was found, so
confidenceismediumrather thanhigh. - The README documents affordances, not outcomes: nothing in it establishes how often loops converge, at what cost, or on which class of task.
- Multi-agent support is asserted per-agent by flag; the snapshot offers no evidence about parity of behaviour across the six agents.
Implications. Treat this page as a description of a tool’s stated design, not as evidence about its effectiveness. Independent measurement would be needed before recommending it operationally.
Relationships
- “implements” ralph-loop — CLI implementation of the pattern, credited to Huntley in its own README
- “is-sibling-of” snarktank-ralph — the other widely used implementation; bash and PRD-coupled where this one is a portable multi-agent runtime
- “operates-with” claude-code — one of six supported agent backends, selected with
--agent claude-code
Open Questions
- Does loop behaviour actually hold across all six agents, or does the harness effectively assume Claude-Code-like semantics for the completion promise?
- How do “struggle indicators” decide a loop is stuck — from the agent’s output, or from external verification results?
Recent Updates (2026-10-12)
As of 2026-10-12, the repository reports 1,899 stars and 144 forks; last push 2026-06-02; 8 open issues. Recent commits: “Merge pull request #86 from liu-qingyuan/lqy/fix-omx-goal-al” (2026-06-02); “Keep OMX goal mode on supported permission flags” (2026-05-30); “Merge pull request #85 from Th0rgal/omx-codex-integration-v2” (2026-05-30); “Fix Bugbot findings on #85” (2026-05-30); “Polish OMX/Codex integration for upstream merge” (2026-05-30). 1
No drift against the page’s own snapshot — and that is verifiable. The page’s ## Key Facts records “1.9k” stars and 142 forks from a 2026-08-04 snapshot. The 2026-10-12 capture is 1,899 stars and 144 forks, i.e. within the rounding of the figure the page already carried, plus +2 forks. The stronger point is temporal: the repository’s last push is 2026-06-02, which predates the page’s own 2026-08-04 capture, so the snapshot cannot contradict anything the page said — it confirms that no upstream movement has occurred in the two months since that page was written. This is the page’s first second-source attestation, which matters because ## Limitations states plainly that “every claim here comes from a single vendor-authored source.”
What the commit list actually corroborates. Two things a README would not tell you. First, the RALPH_CODEX_GOAL / RALPH_CODEX_BACKEND=omx mechanism the page documents under ## Stated Mechanism is visibly under active maintenance, not a stale README claim — the top five commits are four of the five steps of an OMX/Codex integration polish and its bug-fix pass (#85, #86, both May–June 2026). Second, contributions came from outside the author: pull request #86 is from a third party (liu-qingyuan), which is the strongest available signal that the multi-agent premise is being exercised by someone other than the vendor. It does not resolve the page’s open question about parity across the six supported agents — a permission-flag fix for one backend is not an adoption study — but it upgrades that question from “vendor assertion” to “vendor assertion with at least one external contributor.”
The standing limitation is unchanged: no independent benchmark or measurement has appeared. Lifecycle stays l0; the provenance floor is now better filled, which is what this refresh was for. 2
External Links
Sources
- ralph-loop — the pattern this tool implements
- snarktank-ralph — sibling implementation
- claude-code — supported agent backend