Ralph the PRD backlog
The canonical Ralph loop: each iteration starts fresh, reads the PRD and guardrails, ships exactly one backlog item end-to-end, and records what it learned.
Implementation note
Write prd.json as small, independently-shippable items — Ralph lives or dies on backlog granularity. Fresh context per iteration prevents long-session drift.
Source: Geoffrey Huntley (Ralph technique) ↗
More planning loops
loop-init, loop-audit, loop-cost CLI patterns
Three starter CLI tools that turn loop design into a repeatable workflow: scaffold a loop with a goal, budget, and verify step; audit an existing loop design; and estimate cost before you run.
Draft a sprint plan from the backlog
Turn the open issue backlog into a proposed two-week sprint plan with estimates, a dependency ordering, and an explicit cut line, written as a document for the team to edit.
Set agent continuation budget
Configure max turns before agent stops, preventing runaway loops and controlling execution cost.