Ralph is an autonomous AI agent loop that runs Amp repeatedly until all PRD items are complete. Each iteration is a fresh Amp instance with clean context.
# Run the flowchart dev server
cd flowchart && npm run dev
# Build the flowchart
cd flowchart && npm run build
# Run Ralph (from your project that has prd.json)
./ralph.sh [max_iterations]ralph.sh- The bash loop that spawns fresh Amp instancesprompt.md- Instructions given to each Amp instanceprd.json.example- Example PRD formatflowchart/- Interactive React Flow diagram explaining how Ralph works
The flowchart/ directory contains an interactive visualization built with React Flow. It's designed for presentations - click through to reveal each step with animations.
To run locally:
cd flowchart
npm install
npm run dev- Each iteration spawns a fresh Amp instance with clean context
- Memory persists via git history,
progress.txt, andprd.json - Stories should be small enough to complete in one context window
- Always update AGENTS.md with discovered patterns for future iterations