Get Ralph running on your project in just a few minutes. This guide will walk you through creating your first autonomous AI agent loop.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/snarktank/ralph/llms.txt
Use this file to discover all available pages before exploring further.
What You’ll Build
By the end of this quickstart, you’ll have:- Ralph installed in your project
- A sample PRD converted to JSON format
- Ralph running autonomously to implement features
mkdir -p scripts/ralph
cp /path/to/ralph/ralph.sh scripts/ralph/
# For Amp (default):
cp /path/to/ralph/prompt.md scripts/ralph/prompt.md
# OR for Claude Code:
cp /path/to/ralph/CLAUDE.md scripts/ralph/CLAUDE.md
chmod +x scripts/ralph/ralph.sh
Choose either
prompt.md (for Amp) or CLAUDE.md (for Claude Code) based on which AI tool you’re using.If you installed the Ralph skills globally or via Claude Code marketplace, you can use the PRD skill:
tasks/prd-task-priority.mdEach user story should be small enough to complete in one context window. If a task is too big, the AI runs out of context before finishing.
{
"project": "TaskApp",
"branchName": "ralph/task-priority",
"description": "Add priority levels to tasks",
"userStories": [
{
"id": "US-001",
"title": "Add priority field to database",
"description": "As a developer, I need to store task priority.",
"acceptanceCriteria": [
"Add priority column to tasks table",
"Generate and run migration successfully",
"Typecheck passes"
],
"priority": 1,
"passes": false,
"notes": ""
}
]
}
branchName)passes: falseprd.json to mark story as passes: trueprogress.txtEach iteration spawns a fresh AI instance with clean context. Memory persists only via:
- Git history (commits from previous iterations)
progress.txt(learnings and context)prd.json(which stories are complete)
# See which stories are complete
cat scripts/ralph/prd.json | jq '.userStories[] | {id, title, passes}'
# View learnings from iterations
cat scripts/ralph/progress.txt
# Check git history
git log --oneline -10
What’s Next?
Installation Options
Explore all installation methods
How Ralph Works
Learn about the autonomous loop
Writing PRDs
Master the PRD skill
Troubleshooting
Debug common issues
Key Concepts to Remember
Feedback Loops Are EssentialRalph only works with automated quality checks:
- Typecheck catches type errors
- Tests verify behavior
- CI must stay green (broken code compounds across iterations)

