Boris Cherny loop methodology + agent-loop skill
A fact-checked knowledge base of Claude Code creator Boris Cherny's loop methodology, packaged as a runnable agent-loop skill you can drop straight into Claude Code.
Implementation note
When to use: you want to learn or standardize on loop practice from the source — Boris Cherny created Claude Code, and this packages his loop methodology in runnable form rather than as scattered posts. How it works: a fact-checked knowledge base of Cherny's methodology for running Claude Code in loops, shipped with a runnable agent-loop skill in skill/agent-loop/ that you can drop straight into Claude Code and invoke. The knowledge-base half explains the reasoning; the skill half executes the pattern, so the methodology and its implementation stay in sync. Safety: fact-checked is the notable attribute — loop advice attributed to Cherny circulates widely with varying accuracy, and this repo's stated purpose is verifying claims before packaging them. Still treat the skill like any third-party skill: read what it does before running it, and apply your own turn caps and branch discipline around it.
Source: cocodedk/loop-engineering ↗
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.
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.
Set agent continuation budget
Configure max turns before agent stops, preventing runaway loops and controlling execution cost.