EveryDev.ai
Subscribe
Home
Tools

3,419+ AI tools

  • New
  • Trending
  • Featured
  • Compare
  • Arena
Categories
  • Agents2189
  • Coding1574
  • Infrastructure698
  • Marketing534
  • Projects498
  • Research456
  • Design416
  • Analytics389
  • Testing296
  • MCP290
  • Security286
  • Data262
  • Integration197
  • Prompts189
  • Communication183
  • Extensions173
  • Learning170
  • Voice151
  • Commerce135
  • DevOps123
  • Web86
  • Finance26
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
    1. Home
    2. Tools
    3. Ralph for Claude Code
    Ralph for Claude Code icon

    Ralph for Claude Code

    Autonomous Systems

    An open-source autonomous AI development loop for Claude Code with intelligent exit detection, rate limiting, and circuit breaker safeguards to prevent infinite loops.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Fully free and open-source under the MIT License. Clone, install, and use without cost.

    Engagement

    Available On

    macOS
    Linux
    Web
    API
    CLI

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    Autonomous SystemsAI Coding AssistantsAgent Frameworks

    Alternatives

    TwillgnhfReplicas
    Developer
    Frank BriaFrank Bria builds open-source developer tooling focused on a…

    Listed Aug 2026

    About Ralph for Claude Code

    Ralph for Claude Code is an open-source shell-based tool that implements Geoffrey Huntley's "Ralph" technique for running Claude Code in continuous autonomous development cycles. Created by Frank Bria and licensed under MIT, it wraps the Claude Code CLI in a loop that iteratively improves a project until completion, with built-in safeguards against runaway API usage. The project has accumulated over 9,500 GitHub stars and is listed in the Awesome Claude Code collection.

    What It Is

    Ralph is a Bash-based automation layer that sits on top of the Claude Code CLI. Rather than running Claude Code once and reviewing the output manually, Ralph drives a loop: it reads your project's PROMPT.md and task list, invokes Claude Code, analyzes the response, tracks progress, and decides whether to continue or exit. The name comes from Geoffrey Huntley's original technique, itself named after Ralph Wiggum. The tool is installed globally once and then enabled per-project via a wizard or setup command.

    How the Autonomous Loop Works

    Each iteration of the Ralph loop follows a fixed cycle:

    • Read instructions — loads .ralph/PROMPT.md and the prioritized task list in .ralph/fix_plan.md
    • Execute Claude Code — invokes the claude CLI with configured tool permissions and session context
    • Analyze response — a semantic response analyzer parses JSON or text output for completion signals
    • Evaluate exit conditions — applies a dual-condition gate: both completion_indicators >= 2 AND Claude's explicit EXIT_SIGNAL: true must be present before the loop exits
    • Repeat or exit — continues until the project is complete, a circuit breaker trips, or API limits are reached

    The dual-condition exit gate is a key design decision: if Claude signals it is still working (EXIT_SIGNAL: false), Ralph continues even when heuristic completion indicators are high, preventing premature exits during productive iterations.

    Safeguards and Reliability Features

    Ralph includes several layers of protection against common failure modes:

    • Rate limiting — configurable cap (default 100 calls/hour) with hourly reset and optional token-budget limit
    • Circuit breaker — opens after repeated no-progress loops or identical errors; auto-recovers after a configurable cooldown (default 30 minutes)
    • 5-hour API limit handling — three-layer detection (timeout guard → structured JSON rate_limit_event → filtered text fallback) with auto-wait in unattended mode
    • Session expiration — sessions reset automatically after a configurable timeout (default 24 hours)
    • Log rotation — ralph.log rotates at 10 MB, keeping four archived files
    • Dry-run mode — simulates loop execution without making API calls

    Deployment and Sandbox Options

    Ralph runs locally by default, but supports two sandboxed execution modes for isolation:

    • Docker sandbox (--sandbox docker) — Claude Code runs inside a container with configurable RAM, CPU, and network policy; credentials are passed via a 0600 env-file and cleaned up on exit
    • E2B cloud sandbox (--sandbox e2b) — Claude Code runs in an E2B cloud environment; the project is uploaded at startup and changed files are synced back after each iteration, with cost tracking and budget controls

    Both sandbox modes keep Ralph's loop, rate limiting, and monitoring on the host; only Claude's execution is isolated.

    GitHub Issue Lifecycle Integration

    Ralph can close the loop on the full GitHub workflow. By passing --github-issue <ref>, it can post progress comments during development, create a pull request on completion, close the source issue with a summary comment, add labels, and open follow-up issues for any TODO/FIXME markers introduced during the run. A batch queue (ralph-queue) supports processing multiple issues sequentially in priority and dependency order, with the queue state persisted to .ralph/queue.json across restarts.

    Update: v0.11.5 — Community Bug Fixes

    The current release is v0.11.5, tagged as active development with 784 tests at a 100% pass rate across 34 test files. Notable recent changes include:

    • Fixed a false positive where a timeout (exit code 124) was misidentified as Claude's 5-hour API limit
    • Unattended mode now auto-waits on API limit prompt timeout instead of exiting
    • Fixed Bash 3.x compatibility by replacing ${,,} lowercase substitution with POSIX tr
    • Added 8 new tests for API limit detection

    The project roadmap targets v1.0.0 with remaining work focused on final documentation, supply-chain hardening for CI workflows, and real-world feedback integration. A multi-provider abstraction (multi-provider epic) is in progress to decouple Ralph from the claude CLI so any headless coding CLI (Codex, Gemini, OpenCode, Copilot) can drive the loop.

    Ralph for Claude Code - 1

    Community Discussions

    Be the first to start a conversation about Ralph for Claude Code

    Share your experience with Ralph for Claude Code, ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    Open Source

    Fully free and open-source under the MIT License. Clone, install, and use without cost.

    • Autonomous development loop
    • Intelligent exit detection with dual-condition gate
    • Rate limiting and circuit breaker
    • Docker and E2B sandbox execution
    • GitHub issue lifecycle integration

    Capabilities

    Key Features

    • Autonomous development loop with intelligent exit detection
    • Dual-condition exit gate requiring both completion indicators and EXIT_SIGNAL
    • Rate limiting with hourly reset (100 calls/hour, configurable)
    • Token budget limit per hour for cost control
    • Circuit breaker with auto-recovery after configurable cooldown
    • Three-layer Claude 5-hour API limit detection with auto-wait
    • Session continuity with configurable expiration (default 24 hours)
    • Live streaming output with --live flag
    • Docker sandbox execution with resource limits and network policy
    • E2B cloud sandbox execution with file sync and cost tracking
    • GitHub issue import with metadata filters (labels, title, assignee, milestone)
    • GitHub issue lifecycle management (progress comments, PR creation, auto-close)
    • Batch queue processing with priority and dependency ordering
    • Interactive ralph-enable wizard for existing projects
    • .ralphrc configuration file for project settings
    • Dry-run mode to simulate loops without API calls
    • Desktop notifications for key loop events (macOS/Linux)
    • Automatic git backup branches with rollback support
    • Log rotation at 10MB keeping 4 archived files
    • Metrics tracking with ralph-stats analytics command
    • tmux integration for live monitoring dashboard
    • PRD import from Markdown, text, JSON, Word, PDF formats
    • Completeness assessment and plan generation for GitHub issues
    • Multi-line error matching for accurate stuck loop detection
    • 784 tests across 34 test files with 100% pass rate

    Integrations

    Claude Code CLI
    Anthropic API
    GitHub CLI (gh)
    tmux
    Docker
    E2B cloud sandbox
    Git
    jq
    BATS testing framework
    GitHub Actions CI/CD
    beads task manager
    npm
    pytest
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

    Be the first to rate Ralph for Claude Code and help others make informed decisions.

    Developer

    Frank Bria

    Frank Bria builds open-source developer tooling focused on autonomous AI development workflows. He created Ralph for Claude Code, a Bash-based loop system that wraps the Claude Code CLI to enable continuous autonomous development cycles. The project is actively maintained with a comprehensive test suite and a clear roadmap toward v1.0.

    Read more about Frank Bria
    WebsiteGitHubX / Twitter
    1 tool in directory

    Similar Tools

    Twill icon

    Twill

    Twill is an autonomous coding agent platform that writes code, runs tests, fixes failures, and opens PRs around the clock without constant human supervision.

    gnhf icon

    gnhf

    An open-source CLI orchestrator that keeps your AI coding agents running autonomously overnight, committing incremental changes while you sleep.

    Replicas icon

    Replicas

    A background coding agent platform that delegates software tasks to AI agents running in sandboxed development environments, producing pull requests from GitHub, Slack, Linear, or API triggers.

    Browse all tools

    Related Topics

    Autonomous Systems

    AI agents that can perform complex tasks with minimal human guidance.

    364 tools

    AI Coding Assistants

    AI tools that help write, edit, and understand code with intelligent suggestions.

    711 tools

    Agent Frameworks

    Tools and platforms for building and deploying custom AI agents.

    577 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions