Run your AI agent in a loop: read tasks → implement → verify → commit → repeat.
- 🎯 Why Ralph?
- 📦 Installation
- 🚀 Quick Start
- ✨ Features
- 🤖 Supported Agents
- ⚙️ Configuration
- 📚 Documentation
- 🙏 Credits
- 📄 License
Ralph automates the iterative development process for SpecKit projects. Each iteration:
- Reads context —
tasks.md,progress.txt, project docs - Picks ONE task — First uncompleted item with all dependencies met
- Implements — Follows project patterns, runs quality checks
- Verifies — Tests pass, lint pass, build succeeds
- Commits — Saves work with descriptive message
- Updates progress — Marks task complete, logs learnings
- Repeats — Until
<promise>COMPLETE</promise>
curl -sSL https://raw.githubusercontent.com/merllinsbeard/ralph-speckit/main/install.sh | bashcurl -sLO https://raw.githubusercontent.com/merllinsbeard/ralph-speckit/main/ralph.sh
curl -sLO https://raw.githubusercontent.com/merllinsbeard/ralph-speckit/main/ralph-prompt.md
chmod +x ralph.sh# Copy to your SpecKit project
./install.sh
# Run in HITL mode (human-in-the-loop)
./ralph.sh --iterations 1 --verbose
# Or run in AFK mode (autonomous)
./ralph.sh --iterations 10| Feature | Description |
|---|---|
| SpecKit Native | Reads specs/<branch>/tasks.md automatically |
| Smart Task Selection | Picks first uncompleted task with dependencies met |
| Progress Tracking | Updates tasks.md checkboxes, appends to progress.txt |
| Quality Gates | Runs tests, lint, typecheck before committing |
| Completion Signal | Stops when <promise>COMPLETE</promise> detected |
| Multi-Agent | Supports Claude Code, OpenCode, or custom CLIs |
| Agent | Support | Notes |
|---|---|---|
| Claude Code | ✅ | Default |
| OpenCode | ✅ | Set --agent opencode |
| Custom | ✅ | Set RALPH_CUSTOM_AGENT_CMD |
Set via environment variables or .env file:
# Agent selection
RALPH_AGENT=claude # claude | opencode | custom
RALPH_ITERATIONS=1 # Number of iterations
RALPH_PROMPT=ralph-prompt.md
# Custom agent (for RALPH_AGENT=custom)
RALPH_CUSTOM_AGENT_CMD="my-cli --print"- SpecKit Integration — How Ralph works with GitHub SpecKit
- Architecture — Loop flow, completion signal
- Examples — Working SpecKit task example
Inspired by ghuntley.com/ralph and GitHub SpecKit.
