by DmitrySolana
Autonomous AI development loop for Claude Code with intelligent exit detection
# Add to your Claude Code skills
git clone https://github.com/DmitrySolana/ralph-claude-codeGuides for using ai agents skills like ralph-claude-code.
Last scanned: 5/1/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-01T06:37:43.865Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}No comments yet. Be the first to share your thoughts!
Autonomous AI development loop with intelligent exit detection and rate limiting
Ralph is an implementation of the Geoffrey Huntley's technique for Claude Code that enables continuous autonomous development cycles he named after Ralph Wiggum. It enables continuous autonomous development cycles where Claude Code iteratively improves your project until completion, with built-in safeguards to prevent infinite loops and API overuse.
Install once, use everywhere - Ralph becomes a global command available in any directory.
Version: v0.9.9 - Active Development Core Features: Working and tested Test Coverage: 308 tests, 100% pass rate
--continue flag for context preservation--output-format, --allowed-tools, --no-continuev0.9.9 - EXIT_SIGNAL Gate & Uninstall Script
EXIT_SIGNAL: trueresponse_analyzer.sh fix to respect explicit EXIT_SIGNAL over heuristicsuninstall.sh script for clean Ralph removalv0.9.8 - Modern CLI for PRD Import
ralph_import.sh to use Claude Code CLI JSON output format--output-format json for structured responsesv0.9.7 - Session Lifecycle Management
--reset-session CLI flag for manual session resetv0.9.6 - JSON Output & Session Management
parse_json_response() to support Claude Code CLI JSON formatstore_session_id(), get_last_session_id(), should_resume_session()v0.9.5 - PRD Import Tests
ralph_import.sh PRD conversion scriptv0.9.4 - Project Setup Tests
setup.sh project initialization scriptv0.9.3 - Installation Tests
install.sh global installation scriptv0.9.2 - Prompt File Fix
--prompt-file CLI flag with -p flag-p "$(cat file)"build_claude_command()v0.9.1 - Modern CLI Commands (Phase 1.1)
--output-format json (default)--continue flag for cross-loop context--allowed-tools flagv0.9.0 - Circuit Breaker Enhancements
"is_error": false)Timeline to v1.0: ~4 weeks | Full roadmap | Contributions welcome!
Ralph has two phases: one-time installation and per-project setup.
INSTALL ONCE USE MANY TIMES
+-----------------+ +----------------------+
| ./install.sh | -> | ralph-setup project1 |
| | | ralph-setup project2 |
| Adds global | | ralph-setup project3 |
| commands | | ... |
+-----------------+ +----------------------+
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, and ralph-setup commands to your PATH.
Note: You only need to do this once per system. After installation, you can delete the cloned repository if desired.
For each new project you want Ralph to work on:
# Convert existing PRD/specs to Ralph format (recommended)
ralph-import my-requirements.md my-project
cd my-project
# Review and adjust the generated files:
# - PROMPT.md (Ralph instructions)
# - @fix_plan.md (task priorities)
# - specs/requirements.md (technical specs)
# Start autonomous development
ralph --monitor
# Create blank Ralph project
ralph-setup my-awesome-project
cd my-awesome-project
# Configure your project requirements manually
# Edit PROMPT.md with your project goals
# Edit specs/ with detailed specifications
# Edit @fix_plan.md with initial priorities
# Start autonomous development
ralph --monitor
Once Ralph is installed and your project is initialized:
# Navigate to any Ralph project and run:
ralph --monitor # Integrated tmux monitoring (recommended)
# Or use separate terminals:
ralph # Terminal 1: Ralph loop
ralph-monitor # Terminal 2: Live monitor dashboard
To completely remove Ralph from your system:
# 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
Ralph operates on a simple but powerful cycle:
PROMPT.md with your project requirements