Back to Search
snwfdhmp

snwfdhmp/awesome-ralph

A curated list of resources about Ralph, the AI coding technique that runs AI coding agents in automated loops until specifications are fulfilled.

313stars
24forks
313watchers
Updated 1/20/2026
ai-codingclaudeclaude-coderalphralph-loopralph-wiggumvibe-coding

README.md

Ralph Wiggum AI Coding method

Awesome Ralph Awesome Follow on X

A curated list of resources about Ralph (aka Ralph Wiggum), the AI coding technique that runs AI coding agents in automated loops until specifications are fulfilled.

Ralph is a technique created by Geoffrey Huntley for autonomous AI coding. The core concept is elegantly simple:

while :; do cat PROMPT.md | claude-code ; done

Key principles:

  • Run an AI agent repeatedly until a PRD/specification is complete
  • Progress persists in files and git history, not in context
  • Each iteration starts fresh with clean context
  • Use "backpressure" (tests, lints, type checks) to validate work
  • Philosophy: "Sit on the loop, not in it" — or as Huntley puts it: "deterministically bad in an undeterministic world"

Found this useful? ⭐️ Like this repo to help others discover it

Contents

Official Resources

Primary sources from Geoffrey Huntley, the creator of the Ralph technique.

Playbooks & Methodology

Comprehensive implementation guides covering the 3 Phases, 2 Prompts, 1 Loop workflow.

  • How to Ralph Wiggum - Geoffrey Huntley's official playbook covering context management, sandboxing, and prompt patterns.
  • ralph-playbook - Comprehensive methodology guide with diagrams, phase explanations, and "signs & gates" steering techniques.

The Core Workflow

Phase 1: Define Requirements — Human + LLM conversation produces JTBD-aligned specifications Phase 2: Planning Mode — Gap analysis generates prioritized TODO list (no implementation) Phase 3: Building Mode — Implement from plan, run tests, commit, repeat

Essential File Structure

project-root/
├── loop.sh                    # Ralph loop script
├── PROMPT_build.md            # Build mode instructions
├── PROMPT_plan.md             # Plan mode instructions
├── AGENTS.md                  # Operational guide (~60 lines max)
├── IMPLEMENTATION_PLAN.md     # Prioritized task list (generated)
├── specs/                     # Requirement specs (one per JTBD)
└── src/                       # Application source code

Implementations

Claude Code Plugins

  • ralph-claude-code - Claude Code with intelligent exit detection, rate limiting, circuit breaker, and semantic response analyzer.

Standalone Implementations

  • snartank/ralph - PRD-driven task management with automatic branching, flowchart visualization, and auto-archiving.
  • iannuttall/ralph - Minimal file-based agent loop supporting codex/claude/droid/opencode.
  • smart-ralph - Spec-driven development workflow. Transforms feature requests into structured specs (research, requirements, design, tasks) then executes them task-by-task autonomously.
  • ralph-wiggum-bdd - A standalone Bash script for Behavior-Driven Development with Ralph Wiggum Loop.

Tool-Specific Implementations

  • ralph-wiggum-cursor - Cursor implementation with token tracking, context rotation at 80k tokens, and interactive setup.
  • opencode-ralph-wiggum - OpenCode implementation with real-time status display, mid-loop context injection, and struggle detection.
  • ralph (GitHub Copilot) - VS Code extension with visual Control Panel, Progress Timeline, and Fresh Chat Mode.
  • ralph-tui - Terminal UI orchestrator connecting to task trackers with interactive PRD creation.
  • Goose Ralph Loop Tutorial - Block's Goose implementation with cross-model review and recipe-based workflows.

Multi-Agent Systems

  • ralph-orchestrator - 7+ AI backends (Claude, Kiro, Gemini, Codex, Amp, Copilot, OpenCode), Hat System for personas, 20+ workflow presets.
  • ralph-loop-agent - Vercel's TypeScript SDK wrapper with verification callbacks and context summarization.
  • multi-agent-ralph-loop - Multi-agent orchestration for complex projects requiring parallel work streams.

Tutorials & Guides

Articles & Blog Posts

Videos & Podcasts

Videos

Podcasts

Community

Hacker News Discussions

Tools & Directories

Ralph Communities

  • r/ralphcoding - A subreddit about Ralph Coding. Share your learnings, resources, achievements with the community.
  • Ralph Discord - Discord community discussing Ralph methods/resources/achievements.

Related Tools

Support

If this list helped you discover useful Ralph resources, please give it a ⭐️ star! It helps others find this collection.

Stargazers repo roster for @snwfdhmp/awesome-ralph

Contributing

Contributions welcome! Please read the contribution guidelines first.

Join the community on Discord and Reddit