ralph-claude-code
Autonomous AI development loop for Claude Code with intelligent exit detection
GraphCanon updated today · GitHub synced today · 33 views this month
Decision brief
Ralph provides an autonomous AI development workflow with intelligent exit detection specifically integrated to work with Claude Code.
Good fit when
- - When you already have existing PRDs, specifications, or requirement documents that need conversion into the Ralph format and completeness assessment using Claude Code.
- - When you prefer working within a shell environment for automation of tasks such as PRD imports and workflow assessments.
Avoid when
- - If your development process does not rely heavily on PRDs or structured documents for specifications, as Ralph's primary strength lies in managing these.
- - If you don't want to integrate via an autonomous loop with intelligent exit detection, which is a key feature of Ralph compared to other workflow automation tools.
- Requirements:
- Requires Docker; - Requires Bash 4.0+ for script execution.; - Claude Code CLI must be installed (`npm install -g @anthropic-ai/claude-code`).; - tmux, jq, Git, and GNU coreutils are required system utilities.
Observed Jul 11, 2026 · Source: enrich:decision_facts
Verify the decision
Maintenance and security
Full trust report- Maintenance
- Steady (33d since push)
- As of today
- Provenance
- Not a fork · Personal account
- As of today
- Security (OSV)
- No criticals
- As of 1mo
Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.
Install
git clone https://github.com/frankbria/ralph-claude-codeHow it fits your stack(7)
Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.
Alternative
Integrates
Relationship graph
Optional deeper exploration of typed edges and category neighbours.
Similar tools
Same-category neighbours not already linked as typed edges.
Evidence and technical details
Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.
Overview
Ralph provides an autonomous AI development workflow focusing on the integration and management of PRDs, specifications, and requirements using Claude Code. It supports importing existing documents and assessing their completeness, generating plans where necessary.
Capability facts
- Deploy
- Self-host
Source: dockerfile:Dockerfile · Aug 20, 2026
- Docker
- Dockerfile present
Source: dockerfile:Dockerfile · Aug 20, 2026
- MCP server
- No MCP server detected
Source: repo_scan · Aug 20, 2026
- Languages
- shell, javascript
Source: github.language+package.json · Aug 20, 2026
Categories
Compatibility
Sourced claims from the README excerpt - not unsourced marketing copy.
Source: README excerpt (regex_v1, Aug 20, 2026)
- **Claude Code CLI** - `npm install -g @anthropic-ai/claude-code` (or use npx — set `CLAUDE_CODE_CMD` in `.ralphrc`Source link
Tags
README
Quick Start
Ralph has two phases: one-time installation and per-project setup.
INSTALL ONCE USE MANY TIMES
+-----------------+ +----------------------+
| ./install.sh | -> | ralph-setup project1 |
| | | ralph-enable |
| Adds global | | ralph-import prd.md |
| commands | | ... |
+-----------------+ +----------------------+
Phase 1: Install Ralph (One Time Only)
Install Ralph globally on your system:
git clone https://github.com/frankbria/ralph-claude-code.git
cd ralph-claude-code
./install.sh
This adds ralph, ralph-monitor, ralph-setup, ralph-import, ralph-queue, ralph-migrate, ralph-enable, and ralph-enable-ci commands to your PATH.
Note: You only need to do this once per system. After installation, you can delete the cloned repository if desired.
- .ralph/specs/requirements.md (technical specs)
Configure your project requirements manually
Importing Existing Requirements
Ralph can convert existing PRDs, specifications, or requirement documents into the proper Ralph format using Claude Code.
Also import issue comments (e.g. when a plan was posted as a comment)
ralph-import --github-issue 42 --include-comments
The issue title becomes the project name (slugified, e.g. `Add User Login` → `add-user-login`) and the issue body becomes the PRD content. `--github-issue` addresses an exact issue and cannot be combined with the filter flags below.
---
### Completeness Assessment and Plan Generation
GitHub issues vary widely in detail. During import, Ralph scores the issue 0–100 for implementation readiness (acceptance criteria, task checklists, code examples, section structure, guidance keywords, length). Issues scoring below the threshold (default: 60) get an implementation plan generated by Claude Code before conversion — the plan is folded into the generated `fix_plan.md` tasks and preserved verbatim at `.ralph/specs/implementation-plan.md`.
```bash
---
# Default: assess the issue, generate a plan only if it lacks detail
ralph-import --github-issue 42
---
# Always generate a plan, with a specific model
ralph-import --github-issue 42 --generate-plan --plan-model opus
---
# Never generate a plan (fails if the issue scores below the threshold)
ralph-import --github-issue 42 --no-generate-plan
---
## Docker Sandbox Execution
Run Claude Code inside an isolated Docker container instead of directly on your machine (Issue #74). Ralph's loop, rate limiting, and monitoring stay on the host; only Claude's execution — the part that edits files and runs commands autonomously — is containerized. The project directory is bind-mounted read-write at `/workspace`, so changes land on the host directly and `ralph-monitor` works unchanged.
---
# ...or build it yourself (from a source checkout, or ~/.ralph after install)
docker build -t ralph-sandbox .
System Requirements
- Bash 4.0+ - For script execution
- Claude Code CLI -
npm install -g @anthropic-ai/claude-code(or use npx — setCLAUDE_CODE_CMDin.ralphrc) - tmux - Terminal multiplexer for integrated monitoring (recommended)
- jq - JSON processing for status tracking
- Git - Version control (projects are initialized as git repos)
- GNU coreutils - For the
timeoutcommand (execution timeouts)- Linux: Pre-installed on most distributions
- macOS: Install via
brew install coreutils(providesgtimeout)
- Standard Unix tools - grep, date, etc.
Testing Requirements (Development)
See TESTING.md for the comprehensive testing guide.
If you want to run the test suite:
---
# Install BATS testing framework
npm install -g bats bats-support bats-assert
---
# Install coreutils (provides gtimeout)
brew install coreutils
---
# Verify installation
gtimeout --version
Ralph autom
For agents
This page has a .md twin and JSON over the API.