What Happens When Max Iterations Is Reached Before All Stories Pass in Ralph?
When Ralph reaches its configured maximum iteration limit before all user stories pass, the script immediately terminates with exit code 1, prints a diagnostic message referencing progress.txt, and leaves remaining stories unprocessed while preserving the current state in prd.json for subsequent runs.
Ralph (snarktank/ralph) is an AI-driven development automation tool that spawns bounded loops of AI instances (Amp or Claude Code) to iteratively implement stories from a Product Requirements Document (PRD). Understanding its failure mode when hitting iteration ceilings is critical for CI
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →