Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 872 Bytes

File metadata and controls

26 lines (18 loc) · 872 Bytes

Ralph Agent Instructions

Overview

Ralph is an autonomous AI agent loop that runs Claude Code repeatedly until all PRD items are complete. Each iteration is a fresh Claude Code instance with clean context.

Commands

# Run Ralph (from your project that has prd.json)
./ralph.sh [max_iterations]

Key Files

  • ralph.sh - The bash loop that spawns fresh Claude Code instances
  • CLAUDE.md - Instructions given to each Claude Code instance
  • prd.json.example - Example PRD format
  • flowchart/ - Interactive React Flow diagram explaining how Ralph works

Patterns

  • Each iteration spawns a fresh Clude Code instance with clean context
  • Memory persists via git history, progress.txt, and prd.json
  • Stories should be small enough to complete in one context window
  • Always update AGENTS.md with discovered patterns for future iterations