← Back to Leaderboard
Rfrankbria

frankbria/ralph-claude-code

A Bash orchestrator for Claude Code with completion checks and call budgets

View on GitHub ↗
Engineering Health (Methodology)
A+ · 93/100
Maintenance Activity
● Updated 2d ago
Latest Release
v1.0.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption18/25
Release Cadence20/20
License Clarity20/20
DockerCLISelf-Hosted
Total Stars
★ 9,741
24h Growth
+1
7d Growth
+5
Forks
724

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

frankbria/ralph-claude-code Star History (2025-09-19 - 2026-12-03) ALL-TIME STAR HISTORY (2025-09 – 2026-12) +9.7k in 440d · avg +22/day 10.3k 5.1k 0 2025-09-19: ★ 12025-10-18: ★ 222025-11-15: ★ 292025-12-13: ★ 392026-01-10: ★ 1,1542026-02-07: ★ 6,2492026-03-07: ★ 7,3612026-04-04: ★ 8,2332026-05-02: ★ 8,8082026-05-30: ★ 9,1012026-06-27: ★ 9,3482026-07-25: ★ 9,4632026-08-22: ★ 9,5252026-09-19: ★ 9,5762026-10-17: ★ 9,6702026-11-13: ★ 9,7192026-12-03: ★ 9,741 ★ 9.7k 2025-09 2026-04 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Ralph Classic is a host-side Bash orchestrator for the Claude Code CLI, not a model runtime or an MCP server. Its main loop lives in ralph_loop.sh. The project workspace supplies goals in .ralph/PROMPT.md, prioritized tasks in .ralph/fix_plan.md, and build and test guidance in .ralph/AGENT.md. Each iteration invokes Claude Code, records progress, and checks whether to continue. The loop reads structured JSON output when available and falls back to text parsing; --resume targets the prior session, with a configurable expiration that defaults to 24 hours.

The emerging /goal companion takes a different architectural approach: packages/ separates the shared I/O and provider contract (context-packet), agent-independent logic (ralph-core), the Claude Code adapter (adapter-claude-code), and a CLI package. That separation is a roadmap for changing how Ralph integrates with coding agents, not evidence that Classic already supports interchangeable backends.

Key Capabilities & Differentiators

Classic's response-based completion gate requires at least two heuristic completion indicators and an explicit EXIT_SIGNAL: true. The required-task checklist supplies another stop path, so the response gate is not the only way the loop can terminate. Recognized optional sections do not block checklist completion. The hourly call budget defaults to 100 and is configurable. Five-hour API-limit handling distinguishes command timeouts from quota events, checks structured JSON before falling back to filtered text, and can wait automatically in unattended operation. A circuit breaker addresses repeated errors or stalled runs, and per-invocation timeouts can be set from 1 to 120 minutes.

For day-to-day operations, ralph --monitor provides a tmux dashboard, --live streams output, and ralph-stats exposes per-iteration JSON Lines metrics. The loop's --dry-run simulates iterations without API calls. ralph-import uses Claude Code to turn requirements into project inputs; supported sources include Markdown, text, JSON, Word, PDF, and GitHub issues. Issue import supports metadata filters and a dry-run preview.

Trade-offs & Limitations

Compared with Claude Code's native /goal, Classic adds an explicit, repository-local task plan, call budgets, a circuit breaker, and run logs. Those controls are useful for unattended work with testable acceptance criteria, but they add configuration and review overhead. A checklist or completion signal is not proof of correctness: validate diffs and test results before accepting the output. Native /goal has less orchestration to maintain when the main need is simply to keep working toward one objective. Classic's verified execution path is Claude Code; multi-provider support remains planned.

Docker changes the execution boundary without making the working tree read-only: the checkout is bind-mounted into the container, and allowed tools can still modify it. Review tool permissions and use a clean branch or isolated checkout for unattended runs. Also check configuration compatibility when upgrading: the unreleased .ralphrc hardening switches from shell sourcing to literal, known-key parsing, so configurations relying on shell expansion need to be revised. Verify whether the version you pin includes that change.

Hardware & Deployment Guide

Install the global CLI with install.sh: review the script and pin v1.0.0 if you want that specific Classic release. Use ralph-enable for an existing repository, ralph-setup for a new one, or ralph-import to start from requirements. Classic needs Bash and access to the Claude Code CLI; tmux is used for integrated monitoring. In Docker mode the host still runs Ralph, while Claude Code runs in a container with the project mounted at /workspace. The default sandbox recipe starts from node:20-slim and includes Bash, Git, jq, Python 3, and pip. Use --sandbox-image if your project needs a different toolchain; the custom image must have claude on PATH.

This is self-hosted orchestration, not offline inference. The local resource budget is for the CLI, logs, optional container, and the project's build and test processes; the model path still depends on Claude Code and its API limits. The v1.0.0 release marks the end of Classic feature development, with release/1.x retained for bug and security fixes. The unpublished companion can be tried with claude --plugin-dir packages/adapter-claude-code; its initial milestone focuses on preserving a goal across a manual /clear, with context rotation and rehydration as the longer-term direction.

Architecture: A host-side Bash loop drives Claude Code from .ralph/ files; no MCP server is part of that execution path.
Completion: The response gate requires at least two completion indicators and EXIT_SIGNAL: true; recognized optional sections do not block checklist completion.
Quota handling: The hourly budget defaults to 100 calls; five-hour limit detection checks for a timeout first, then structured JSON, then filtered text.
Session lifecycle: --resume carries context between runs, with a configurable expiration that defaults to 24 hours.
Observability: tmux monitoring and --live streaming expose current execution; ralph-stats reads per-loop JSON Lines metrics.
Docker boundary: The loop stays on the host; Claude Code runs in a container with the project bind-mounted at /workspace.
Best For

Teams already using Claude Code that can express routine feature work or refactors as a prioritized checklist, run unattended iterations within a call budget, and review the resulting diffs and tests.

Skip If

You need offline inference, a production-ready multi-provider backend, or only native /goal persistence without a separate loop and project configuration.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerCLISelf-Hosted
# Run the uninstall script
./uninstall.sh

# Or if you deleted the repo, download and run:
curl -sL https://raw.githubusercontent.com/frankbria/ralph-claude-code/main/uninstall.sh | bash

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
ralph-claude-code ★9.7k+5ShellMITA Bash orchestrator for Claude Code with completion checks and call budgets
gemini-cli109.6k+376TypeScriptApache-2.0A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools
oh-my-pi40.5k+483TypeScriptMITA Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat
goose57.3k+219RustApache-2.0Rust coding agent with MCP tools and local or hosted models, embeddable via ACP

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/frankbria/ralph-claude-code.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

frankbria/ralph-claude-code Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about ralph-claude-code

Does Ralph Classic require an MCP server, and how does it integrate with an existing repository?

No. Ralph Classic is a Bash CLI wrapper that launches Claude Code directly. To integrate an existing repository, run ralph-enable, review .ralph/PROMPT.md and .ralph/fix_plan.md, and configure tool permissions in .ralphrc. The separate /goal companion is an unpublished Claude Code plugin, not a requirement for Classic.

Do I need a GPU, and what determines local resource usage?

Ralph wraps the Claude Code CLI rather than hosting model weights, so there is no local model VRAM requirement to size for Ralph itself. Budget CPU, memory, and disk for the CLI, logs, any optional container, and especially the project's build and test workload. Claude API call limits remain an independent constraint.

Can a company use or redistribute Ralph and run it on its own infrastructure?

Ralph is MIT-licensed, which permits commercial use and self-hosted operation subject to the license's notice requirements when redistributing copies. That license does not cover Claude Code or its API. The Docker option changes where the CLI runs, not where model inference happens; review service terms and data-handling requirements separately.

When is Ralph Classic a better fit than Claude Code's native `/goal`?

Choose Classic when you want a repository-driven task loop with explicit stop rules, call budgeting, a circuit breaker, and persistent logs. Prefer native /goal when continuing toward an objective is enough and you want fewer moving parts. If fresh-session handoffs are essential, evaluate the companion separately: the in-progress milestone covers goal persistence across a manual /clear, not a released automatic rotation workflow.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining frankbria/ralph-claude-code? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature frankbria/ralph-claude-code on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare