In the video I showed you my 3 favorites. As promised, here are all 15 from Matt van Horn’s roundup, each with a copy-paste command.
Matt van Horn pulled together the top 15 AI loops people are running right now. Here’s his original post on X, go give him a follow. I’ve put the full list here so you have every one in one place, and I rewrote each command into a fuller version you can paste.
Normally you ask, the AI answers once, and it’s done. A loop decides when and how long your agent keeps working, checking its own progress toward a finish line, for minutes or even hours.
These run in Claude Code, and most of the loops below start with one of these commands.
A few entries are tools you install instead, and I’ve marked those.
01
The Build-Test-Fix Pair
The most-demoed loop in Matt’s pull, from a creator named raycfu. One agent builds, a checker runs the tests, types and lint and reports exactly what broke, and they pass work back and forth until it’s clean. A one-shot agent ships its bugs. This one doesn’t.
02
Boris’s Verifier Loop
Boris Cherny, who created Claude Code, describes it as Claude Code plus a strong model plus a verifier, in a loop. The verifier is the part everyone skips. Without it you’re just trusting the agent.
03
The Loop-Engineer Starter
AI Jason (Jason Zhou) shared a free starter that wires up the build, observe, verify and stop plumbing for you. It now lives as a Claude Code plugin in AI-Builder-Club/skills. Run the harness setup inside your repo, then /new-loop to build your first loop. The fastest way to have one running tonight.
04
The Five-Minute Repo Maintainer
Peter Steinberger runs this one on a tight timer. Every five minutes the agent does one small, verified piece of upkeep, and the agent picks what to clean, not a hardcoded script.
05
Plan-Generate-Verify-Fix
From a creator named qbuilder. Plan, generate, verify, fix, repeat, with state saved to files and a hard cap of five passes. The cap is what makes it safe to walk away.
06
roborev, The Post-Commit Reviewer
An installed tool. roborev is free and open source. It adds a git hook so every commit gets a background code review, then an agent fixes the findings while the context is fresh. It works with Claude Code, Codex, Gemini CLI and more. Install with brew install roborev on a Mac, or see the repo for Linux and Windows.
07
The Goal-Meta-Skill
Surfaced by evgenii.arsentev: before any work starts, the agent turns your vague ask into a real goal and checks it with you first. His line: your agent isn’t dumb, your instructions are vague.
08
The 15,000-Emails-A-Day Loop
A builder on r/LangChain shared the architecture of an agent that handles 15,000 hotel guest emails a day. It sorts the inbox, drafts the routine replies and escalates only what needs a human. My version only drafts, and it needs your inbox added as a connector on the task.
09
The Anti-Spin Loop
A Claude Code skill shared on Reddit. It builds, audits and verifies until a machine-checkable contract passes, with hard stops for no progress, repeats, flip-flopping and budget.
10
Write Loops, Not Code
Boris Cherny has said he doesn’t write code by hand anymore. The shape here is a nightly cloud task that watches your pull requests and fixes what’s fixable while you sleep.
11
The Human Approval Queue
From the no-code crowd on r/n8n. The workflow runs, then pauses and asks you to approve, revise or skip. Same loop shape, but the stop condition is your yes instead of a passing test. You’ll need a messaging tool connected so it can reach you.
The last four come from Matthew Berman’s Forward Future Loop Library, a free, curated catalog of loops that each come with a built-in check and a clear stopping point.
12
The Production Error Sweep
Reads your production logs, separates real errors from noise, fixes the real ones and opens a pull request. Tell it what counts as actionable or it chases ghosts. (Original)
13
The Quality Streak Loop
It doesn’t stop at the first green run. Every failure becomes a regression test and resets the count. One green run is luck, a streak is reliability. (Original)
14
The Clodex Adversarial Review
An installed tool. Lukas Kucinski’s Clodex has Claude build and open a pull request, then Codex reviews it adversarially, and Claude fixes the findings and repeats. --max-iter 5 caps the rounds and --threshold medium sets the highest severity it will accept. You need the Clodex plugin and Codex set up first. (Original)
15
The Completion Contract
An installed skill for Codex, from 3goblack (@Dis_Trackted). Before work starts, it writes down what "done" means and the proof each requirement needs, then won’t call the work finished until every item is proved. Loop 7 is a no-install version of the same idea. (Original)
You can stack all three on one job. One warning: loops keep spending your usage until they stop, so always give them a cap.
Full credit for this roundup goes to Matt van Horn on X.