Ralph for Claude Code is an open-source tool that runs Claude Code in continuous autonomous development loops. Named after the "Ralph Wiggum" technique popularized by Geoffrey Huntley, Ralph lets you start a task and walk away while Claude Code iteratively improves your codebase until the job is done.
What sets Ralph apart is its intelligent exit detection. Unlike simple loop scripts, Ralph uses a dual-condition exit gate that requires both completion indicators AND an explicit EXIT_SIGNAL before stopping. This prevents premature termination while also guarding against runaway loops through a built-in circuit breaker and rate limiter (100 calls/hour, configurable).
The tool installs globally via npm and becomes available in any directory. It supports session continuity with --resume, JSON output format with automatic text fallback, and advanced error filtering that distinguishes between real errors and Claude's self-correction messages.
With 566 tests at 100% pass rate and active development (v0.11.5), Ralph is production-ready for developers who want to maximize their Claude Code subscription by running it autonomously during off-hours or while focused on other tasks.
**Who should use it:** Developers who use Claude Code and want to automate repetitive coding tasks, run overnight development sprints, or batch-process improvements across their codebase without manual supervision.
**Key features:**
- Autonomous development loops with intelligent exit detection
- Dual-condition exit gate (completion + EXIT_SIGNAL)
- Rate limiting with hourly reset (configurable)
- Circuit breaker with advanced error detection
- Session continuity with --resume flag
- JSON output format with text fallback
- Global npm install, works in any directory
**Pricing:** Free and open source (MIT license). Requires a Claude Code subscription.