ralph
Ralph is an autonomous AI agent loop that runs repeatedly until all PRD items are complete.
Fix poor Ralph code generation. Learn how context overflow, stale knowledge, and state issues cause problems and keep your iterations clean by mastering atomic stories and quality checks.
How to Set Up the Claude Code Marketplace Plugin for Ralph Skills: A Complete GuideEasily set up the Claude Code marketplace plugin for Ralph skills with two CLI commands. Install PRD generation and conversion skills instantly from snarktank/ralph without external configuration.
What Is the .last-branch File? Ralph Branch Tracking ExplainedDiscover the .last-branch file and how Ralph branch tracking works. Ralph automatically archives previous work when you switch Git branches for seamless feature development.
How to Configure Ralph to Use Claude Code Instead of AmpEasily configure Ralph to use Claude Code instead of Amp. Simply use the --tool claude flag or edit the script's default setting for a seamless switch.
How Ralph Ensures CI Remains Green Across IterationsLearn how Ralph keeps CI green with a feedback-loop-first architecture. Pass local quality checks automatically before committing code to prevent broken builds.
Ralph Quality Gates: The Three Mandatory Checks Before Committing ChangesDiscover the three essential Ralph quality gates typechecking linting and testing ensuring successful commits and preventing failed code changes.
How to Use the PRD Skill to Generate Detailed Requirements Documents in RalphLearn how to use the PRD skill in Ralph to generate detailed requirements documents quickly. Invoke the skill, answer questions, and retrieve your PRD from tasks/prd-[feature-name].md.
Understanding the progress.txt Format and How to Structure Learnings in RalphLearn the progress.txt format and structure your learnings effectively for the snarktank/ralph AI agent. Discover how this markdown log persists patterns and insights between iterations.
How Ralph Tracks and Switches Between Feature Branches During ExecutionLearn how Ralph tracks and switches feature branches during execution by comparing prd.json with .last-branch, archiving old states, and updating the tracker automatically.
What Happens When Max Iterations Is Reached Before All Stories Pass in Ralph?Ralph terminates with exit code 1 when max iterations is reached before all stories pass. Learn how it preserves state and what to do next.
How to Install Ralph Skills Globally for Multiple ProjectsInstall Ralph skills globally and make prd and ralph slash commands available across all your projects. Save time and streamline your workflow by following this simple installation guide.
What Is `amp.experimental.autoHandoff` in the Ralph Workflow and When Should You Enable It?Learn what amp.experimental.autoHandoff does in Ralph workflows. This flag prevents context limit exceeded errors during long-running iterations by automatically spawning new instances.
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 →