The "Ralph" technique — looping coding agents against specs until outcomes are met¶
Insight: The "Ralph" technique (named by Geoffrey Huntley) is a deliberately simple pattern: a bash loop (while :; do cat PROMPT.md | claude-code ; done) that feeds written specifications to a coding agent repeatedly until outcomes are met. The intelligence comes not from the loop itself but from granular, testable specs and verifiable outcomes. It represents the convergence of deterministic automation patterns with stochastic AI models.
Detail: The technique works because it mirrors standard software development iteration: receive requirements, implement, test, observe failures, refine, repeat. The key enablers are well-written PROMPT.md files with clear acceptance criteria. The pattern has gained traction in the vibe coding community as an accessible way for non-technical users to understand autonomous agent workflows. Multiple practitioners have adapted variations with different agents (Claude Code, Cursor, Aider).
Sources
Related: existing entry "Vibe coding as a design engineer practice" in external/claude-code.md — COMPLEMENTS