Discover and explore top open-source AI tools and projects—updated daily.
DmitrySolanaAutonomous AI development loop for code
New!
Top 33.5% on SourcePulse
Autonomous AI development loop for Claude Code, enabling continuous project improvement with intelligent exit detection and API overuse safeguards. It targets engineers and power users seeking to automate AI-driven development cycles, offering benefits like iterative self-improvement, robust error handling, and efficient API usage management.
How It Works
Ralph implements an autonomous development loop inspired by Geoffrey Huntley's technique. It iteratively reads project instructions from PROMPT.md, executes Claude Code, tracks progress, and evaluates completion signals. A novel dual-condition exit gate requires both heuristic completion indicators and an explicit EXIT_SIGNAL: true from Claude to terminate a loop, preventing premature exits. Rate limiting and an advanced circuit breaker with multi-line error matching further safeguard against infinite loops and API abuse.
Quick Start & Requirements
git clone https://github.com/DmitrySolana/ralph-claude-code.git, cd ralph-claude-code, ./install.sh. This adds ralph, ralph-monitor, and ralph-setup commands.ralph-setup <project-name> or ralph-import <requirements.md> <project-name>.ralph --monitor (integrated tmux monitoring) or ralph and ralph-monitor in separate terminals.npm install -g @anthropic-ai/claude-code)Highlighted Details
EXIT_SIGNAL: true prevents premature loop termination.Maintenance & Community
The project is under active development (v0.9.9) with a clear roadmap towards v1.0.0. Contributions are welcomed, with detailed guidelines provided in CONTRIBUTING.md. Priority areas for contribution include test implementation, feature development (log rotation, dry-run), and documentation.
Licensing & Compatibility
This project is licensed under the MIT License, which is permissive for commercial use and integration into closed-source projects.
Limitations & Caveats
The project is actively developed, with several features listed as "In Progress" (e.g., log rotation, dry-run mode, configuration files). While the test suite boasts a 100% pass rate across 308 tests, bash code coverage has inherent limitations. Full utilization of modern CLI features requires a specific version of the Claude Code CLI.
1 week ago
Inactive