Quick Start
Check Your Version
Section titled “Check Your Version”ralph --version# orralph -VPrerequisites
Section titled “Prerequisites”- Node.js 20+
- An AI coding agent CLI installed (e.g., Claude Code)
1. Initialize Your Project
Section titled “1. Initialize Your Project”pnpm dlx @smplcty/ralph init# ornpx @smplcty/ralph initRalph will prompt you for:
- Project name
- Language (TypeScript, Python, Go, etc.)
- Package manager
- Test framework
- Quality check command
- AI agent to use
This scaffolds:
docs/PRD.md— your product requirements documentdocs/tasks/T-000.md— your first infrastructure taskdocs/prompts/rules.md— project-specific rulesralph.config.json— project configuration
2. Write Your PRD
Section titled “2. Write Your PRD”Edit docs/PRD.md with numbered sections describing what to build:
## 1. User Authentication
The system must support email/password authentication with JWT tokens.
### 1.1 Registration
Users can register with email and password. Passwords must be hashed with bcrypt.3. Create Tasks
Section titled “3. Create Tasks”Create task files in docs/tasks/ that reference PRD sections:
# T-001: Implement user registration
- **Status**: TODO- **Milestone**: 1 — Authentication- **Depends**: T-000- **PRD Reference**: §1.1
## Description
Create a registration endpoint that accepts email and password,validates input, hashes the password, and stores the user.
## Produces
- `src/auth/register.ts`- Tests4. Run the Loop
Section titled “4. Run the Loop”pnpm dlx @smplcty/ralph loop# ornpx @smplcty/ralph loopRalph will:
- Find the next eligible task (lowest TODO with all dependencies DONE)
- Build a boot prompt with the task details and PRD content
- Launch your AI agent in a stateless session
- The agent implements the task using red/green TDD
- Quality gates run (lint, format, typecheck, build, test)
- The agent commits and ralph moves to the next task
5. Monitor Progress
Section titled “5. Monitor Progress”In another terminal:
pnpm dlx @smplcty/ralph monitor -w# ornpx @smplcty/ralph monitor -wThis shows a live dashboard with task progress, current phase, and agent activity.