All articles

Loop Engineering: How to Stop Prompting and Build AI Systems That Run Themselves

7 min readClaudio Branno

The shift in serious AI building is not better prompts — it is better loops. Define done, let the agent act, let a judge verify, and repeat until it ships. Here is how to move from prompting to loop engineering.

There is a shift happening in how serious AI builders think about agents.

It is not about better prompts. It is about better loops.

The Prompting Bottleneck

Most people use AI the same way they would use a search engine. You ask. It answers. You review. You ask again.

This keeps you in the loop — literally.

Every time the agent needs direction, it needs you. Every time the output is not right, you write another prompt. You are the system's bottleneck. The one variable that cannot be automated away.

Prompting made AI productive. Looping makes AI operational.

What Loop Engineering Actually Means

The concept is straightforward. Instead of writing a prompt, you write a loop.

A loop has four parts:

  • Define done. What does the correct output actually look like? Not "good" in general — specifically what you would accept and what you would reject. This is harder than it sounds and most of the value is here.
  • Agent acts. The agent executes against the definition.
  • Judge checks. A separate evaluator — another agent, a structured rubric, an automated check — assesses the output against the definition.
  • Repeat or ship. If it passes, it ships. If not, it loops again.

You are not in that cycle. You designed it. You move on.

Addy Osmani from Google put it plainly: "You don't really need to be good at prompting anymore. The thing to get good at is the loop that does the prompting for you."

The creator of Claude Code, Barış Özcanlı at Anthropic, said it the same way: "I don't prompt Claude anymore. I have loops that are running. They're the ones that are prompting Claude and figuring out what to do. My job is to write the loops."

From Theory to Production

This is not hypothetical. We run this in production at Aleria Labs.

Heartbreaker — our CMO agent — runs an intelligence loop every night. It scans competitor activity across LinkedIn, X, and YouTube. It extracts trending signals. It evaluates what is worth acting on against our positioning strategy. It produces a structured brief.

By the time I open my laptop, the intelligence is already delivered.

Nobody sat at a keyboard at 3am writing prompts. The loop ran. The output shipped.

That is loop engineering applied to a real marketing function — not a demo.

The Three Levels of Looping

Not all loops are equal. Here is a useful progression:

Verification loops — The agent checks its own output against a definition before shipping. Basic, but already more reliable than single-pass prompting. Good starting point.

Doer/Judge loops — Two agents: one acts, one evaluates. The evaluator operates on explicit criteria and is independent of the actor. Higher quality, less hallucination, better consistency. This is where most serious systems operate.

Self-improving loops — The loop tracks performance over time and adjusts its own parameters. The system gets better without human intervention. This is the frontier — most teams are not here yet, but the architecture should point toward it.

What This Changes Operationally

When you move from prompting to looping, three things shift:

Your job changes. You stop being the person who writes prompts. You become the person who defines what done looks like and designs the verification layer. This is harder than prompting. It requires you to think precisely about quality, not just output.

Your system gets reliable. A loop with a clear definition and a good judge produces consistent results. Single-pass prompting produces high variance. Variance is the enemy of any operational system you want to trust.

Your scale changes. Loops run in the background. They do not need your presence at each cycle. The same system can run overnight, complete more work than you could supervise, and deliver outputs while you are working on something else.

How to Start

If you are currently prompting AI agents manually, here is the fastest path to your first loop:

  • Pick one repeating task you already run with AI.
  • Write down exactly what "good" looks like for that task — not in general terms, but specific criteria you would use to evaluate the output. Be precise.
  • Add a second pass where the agent evaluates its own output against those criteria before delivering it to you.
  • Review what ships, not what the agent produces internally.

That is your first loop. It is not fully automated yet. But it is the architecture you are building toward.

The future is not a clever prompt. It is a better loop.

Aleria Labs builds AI-powered operating systems for companies that want to move from using AI to running with AI. If you are building toward loop engineering in your organization, get in touch at hello@alerialabs.com.