Ralph Wiggum Agent Runner
Run autonomous coding agents that ship code while you sleep.
When to Use
- •Multi-story feature implementation
- •Overnight autonomous coding
- •Batch processing of related tasks
- •When you want AI to work independently
Quick Commands
bash
# Run with current PRD ./scripts/ralph/ralph.sh # Run with custom PRD ./scripts/ralph/ralph.sh scripts/ralph/my-feature.json # Watch progress tail -f scripts/ralph/progress.txt
How It Works
- •Agent reads PRD, picks highest priority incomplete story
- •Implements ONLY that one story
- •Runs build/lint to ensure CI stays green
- •Commits work, updates PRD, appends to progress.txt
- •Repeats until all stories pass or max iterations
PRD Structure
json
{
"stories": [
{
"id": "STORY-001",
"title": "User can do X",
"priority": 1,
"passes": false,
"acceptance_criteria": ["..."],
"files_to_modify": ["..."]
}
]
}
Stop Condition
Agent emits <promise>COMPLETE</promise> when all stories pass.
Files
| File | Purpose |
|---|---|
scripts/ralph/ralph.sh | Runner script |
scripts/ralph/prd.json | Current PRD |
scripts/ralph/progress.txt | Progress log |
Reference Files
| Topic | File |
|---|---|
| Full documentation | scripts/ralph/README.md |
| PRD template | scripts/ralph/prd.template.json |
Related Skills
- •
empathy-ledger-codebase- Codebase patterns - •
deployment-workflow- CI/CD integration