// summary
Ralph is an autonomous AI agent loop that repeatedly executes coding tasks using tools like Amp or Claude Code until all project requirements are met. Each iteration operates within a fresh context, maintaining project state through git history, progress logs, and a structured JSON task list. The system ensures continuous progress by breaking down large features into manageable user stories that are verified through automated quality checks.
// technical analysis
Ralph is an autonomous AI agent loop designed to execute coding tasks by repeatedly invoking AI tools like Amp or Claude Code until a project's requirements are fully met. Its core philosophy centers on maintaining a clean context for each iteration, preventing context window degradation by offloading persistent memory to git history, a progress log, and a structured JSON task list. This approach solves the problem of AI agents losing focus on large projects, ensuring that complex features are broken down into manageable, verifiable units that are systematically implemented and tested.
// key highlights
// use cases
// getting started
To begin, install either the Amp CLI or Claude Code and ensure 'jq' is available on your system. Copy the Ralph scripts and relevant prompt templates into your project directory, then generate a PRD and convert it into the required prd.json format. Finally, execute the loop using the ralph.sh script to start the autonomous development process.