</>MCP Agents Market
Plugin

open-ralph-wiggum

by Th0rgal1.9kTypeScriptUpdated 2026-06-02

Type `ralph "prompt"` to start open code in a ralph loop. Also supports a prompt file & status check. Open Code, Claude Code, Codex, Copilot

Claude CodeCodexCursorGitHub Copilot

Open Ralph Wiggum is a command-line tool that creates autonomous iterative coding loops for AI agents including Claude Code, Codex, Copilot CLI, Cursor Agent, Qwen Code, and OpenCode. It implements the Ralph Wiggum technique where an AI coding agent receives the same prompt repeatedly until task completion, with each iteration allowing the agent to see and self-correct its previous work through file changes and git history. The tool supports multi-agent switching, task management, live monitoring, and mid-loop context injection, making it ideal for long-running development tasks that benefit from automated iteration and self-correction. Developers can set maximum iterations, define completion signals, and monitor progress from separate terminals while the agent works autonomously.

Key Features

Multi-agent support for Claude Code, Codex, Copilot CLI, Cursor Agent, Qwen Code, and OpenCode with unified workflow
Autonomous self-correcting loops where agents see previous work and fix their own mistakes across iterations
Tasks Mode for breaking complex projects into manageable subtasks with automatic progression and per-task iteration tracking
Live monitoring dashboard with struggle indicators, iteration history, and tool usage statistics via --status command
Mid-loop context injection to guide agents without stopping the loop using --add-context
Agent rotation to cycle through different agent/model combinations across iterations
Custom prompt templates with variable substitution for integration with custom workflows
Codex/OMX goal mode integration where Ralph owns outer loop retry logic while Codex goal mode handles single-session execution

Use Cases

  • 01Building REST APIs with CRUD operations and automated test verification across multiple iterations
  • 02Refactoring codebases with automatic validation through linters, type checkers, and test suites
  • 03Implementing complex features broken into subtasks with automatic progression through Tasks Mode
  • 04Comparing performance of different AI coding models through agent rotation on the same task
  • 05Greenfield project development where the agent can work autonomously until all acceptance criteria pass
  • 06Debugging and fixing failing tests iteratively until the entire test suite passes

Related Plugins

View more

open-ralph-wiggum — FAQ

What is Open Ralph Wiggum and how does it work?+

Open Ralph Wiggum is a CLI tool that wraps AI coding agents (Claude Code, Codex, Copilot CLI, Cursor Agent, Qwen Code, or OpenCode) in autonomous iterative loops. It sends the same prompt repeatedly until the agent completes the task, with each iteration allowing the agent to see and correct its previous work through file system and git history changes.

How do I install Open Ralph Wiggum?+

Install via npm with 'npm install -g @th0rgal/ralph-wiggum' after installing the Bun runtime and at least one AI coding agent CLI (Claude Code, Codex, Copilot CLI, Cursor Agent, Qwen Code, or OpenCode). You can also install from source by cloning the repository and running the install script.

Which AI coding assistants work with Open Ralph Wiggum?+

It works with Claude Code, OpenAI Codex, GitHub Copilot CLI, Cursor Agent, Qwen Code, and OpenCode. Switch between agents using the --agent flag, for example: 'ralph "task" --agent claude-code --max-iterations 10'.

What are the prerequisites and do I need API keys?+

You need the Bun runtime and at least one AI coding agent CLI installed. API key requirements depend on your chosen agent: Copilot CLI requires GitHub authentication via GH_TOKEN or GITHUB_TOKEN, Cursor Agent may need CURSOR_API_KEY for headless environments, and other agents require their respective authentication setup.

Is Open Ralph Wiggum free to use?+

Yes, Open Ralph Wiggum itself is free and open-source under the MIT license. However, the underlying AI agents may have their own costs (like Copilot subscription fees) or API usage charges depending on which agent and model you use.

How do I monitor an active Ralph loop without stopping it?+

Run 'ralph --status' from another terminal to see the current iteration, elapsed time, iteration history, struggle indicators, and active tasks. You can also inject guidance mid-loop using 'ralph --add-context "your hint here"' without interrupting the running process.

How do I install open-ralph-wiggum?+

Open the source repository on GitHub and follow its README. open-ralph-wiggum is a plugin — MCP Agents Market links you directly to the official repo.

Is open-ralph-wiggum free?+

open-ralph-wiggum is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches