7 Ways to Actually Use Loops
Everyone talks about loops. Nobody says where you'd point one. Here's seven — ready to paste.
The Idea
Everyone's talking about loops right now — but no one tells you what to actually point one at. So here are seven practical ones you could set up today.
Quick reminder: a loop is where you give Claude a goal and it works on its own until it hits it — no babysitting. Each one below is a paste-ready starter: drop it into Claude Code and it'll help you set the whole loop up — goal, checks, stop condition and all — and walk you through the plan before it runs.
The Seven
The Speed Loop
Optimises every page until it loads under fifty milliseconds — measuring after each change so it knows when it's done.
The Overnight Docs Sweep
Updates your docs to match the day's changes and opens a PR. Wake up to documentation that's actually current.
Refactor Till Happy
Cleans up the architecture until it's genuinely tidy — testing and committing after each step.
The Logging Loop
Adds logging until every important path is covered — so next time something breaks, you can see what happened.
The Nightly Error Sweep
Reads your production logs, fixes what's broken, and opens a PR. Triage while you sleep.
The SEO + GEO Audit
Improves how you show up in search engines (SEO) and AI answer engines (GEO) — fixing gaps and re-checking until nothing critical is left.
The Eval Loop
Runs a hundred real scenarios through your app and fixes everything that fails — until they all pass.
Two Things Before You Run One
The whole trick is giving it a goal it can actually check — "loads under 50ms," "tests all pass," "no critical SEO or GEO issues left." That's why every starter above asks Claude to nail down the checks before it runs. A loop with nothing to verify against just runs in circles agreeing with itself. (That's the entire point of the Verify Loop.)
And be straight with yourself about cost: loops burn through tokens, and some of these run for hours. That's fine for an overnight docs sweep or a weekend refactor — just don't kick one off and wander away from a metered account expecting it to be cheap. Set a stop condition and let it work.
Inspired by a video from Matthew Berman. He's also collecting these in his Loop Library — worth a look if you want more than seven.