What is loop engineering?

For two years we prompted coding agents one task at a time. That's changing. Loop engineering is replacing yourself as the person who prompts the agent — you design the system that does it instead.

"You shouldn't be prompting coding agents anymore. You should be designing loops that prompt your agents." — Peter Steinberger · "My job is to write loops." — Boris Cherny (Claude Code)

A loop is a recursive goal

Define a purpose and a stop condition, then run a repeating five-phase cycle until it's met:

  1. 1
    Discover

    Inspect the current state and find what needs doing.

  2. 2
    Plan

    Decide the next bounded action.

  3. 3
    Execute

    Apply one bounded change.

  4. 4
    Verify

    Check the work — ideally a separate agent so it isn't self-grading.

  5. 5
    Escalate

    Surface to a human anything risky or stuck.

The two pieces that separate a real loop from a while true are verify (a loop that can't check itself just makes mistakes faster) and memory (the model forgets everything between runs, so state must live outside the conversation — a markdown file, an issue tracker, git).

The complexity ladder

cronloops organises designs along a 0–5 ladder — it doubles as a learning path.

LevelWhat it is
L0One-shotFires once, then deletes itself. A reminder or single deferred action.
L1PollerRe-runs a single prompt on an interval to watch one thing.
L2Verify-until-doneSelf-paces and keeps going until a condition is provably true, then stops.
L3MaintenanceStanding loop that continues unfinished work and runs cleanup passes.
L4Triage fan-outDiscovers many items, isolates each, fixes, verifies with a second agent, surfaces results.
L5OrchestratedMultiple chained loops / multi-agent reactive system.

What a loop is built from

Five building blocks, plus one place to remember:

Build the loop. Stay the engineer.

A loop running unattended is also a loop making mistakes unattended. The leverage moved from prompt quality to loop-design quality — but verification stays human. Every design here treats guardrails and verification as first-class.

Browse the loop library →