frankbria/ralph-claude-code
A Bash orchestrator for Claude Code with completion checks and call budgets
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
.ralph/ files; no MCP server is part of that execution path.EXIT_SIGNAL: true; recognized optional sections do not block checklist completion.--resume carries context between runs, with a configurable expiration that defaults to 24 hours.--live streaming expose current execution; ralph-stats reads per-loop JSON Lines metrics./workspace.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.
You need offline inference, a production-ready multi-provider backend, or only native /goal persistence without a separate loop and project configuration.
Quick Start & Installation
# 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 →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| ralph-claude-code ★ | 9.7k | +5 | Shell | MIT | A Bash orchestrator for Claude Code with completion checks and call budgets |
| gemini-cli | 109.6k | +376 | TypeScript | Apache-2.0 | A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools |
| oh-my-pi | 40.5k | +483 | TypeScript | MIT | A Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat |
| goose | 57.3k | +219 | Rust | Apache-2.0 | Rust 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.
curl -sL https://repoforai.com/repo/frankbria/ralph-claude-code.md
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?
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?
Can a company use or redistribute Ralph and run it on its own infrastructure?
When is Ralph Classic a better fit than Claude Code's native `/goal`?
/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.
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