AI Strategy  ·  The New Leverage Point  ·  2026

Loop Engineering vs. Prompt Engineering.

For two years, the skill was writing the perfect prompt. That era is closing. The new skill is designing the loop — the system that prompts the AI for you, checks its own work, remembers what it learned, and gets better every cycle. Here's what the shift actually is, why the best builders in AI have all landed on it, and what it means for any business trying to put AI to work — not just engineers.

By Bob Clary, FrontPipe June 18, 2026 14 min read Cited sources throughout
TL;DR

60 seconds. The whole idea.

Prompt engineering was the craft of writing one great instruction and holding the tool through every turn. Loop engineering is the craft of building a small system that finds the work, hands it to the AI, checks the result, writes down what it learned, and decides the next move — so you stop being the one doing the prompting. The leverage didn't disappear. It moved up a level. And while the conversation started with coding agents, the pattern applies to any repeatable business process.

1 → ∞
Prompting is one instruction at a time, with you in every turn. A loop runs continuously — on a schedule, in the background, without you holding it.
LangChain, "The Art of Loop Engineering," 2026
4 loops
Agent → verification → event-driven → hill-climbing. Each layer wraps the last, turning a single capable model into a system that improves itself.
LangChain loop stack, 2026
5 + 1
Five building blocks — automations, isolation, codified knowledge, connectors, checkers — plus one external memory. The anatomy of a loop that holds together.
Addy Osmani, "Loop Engineering," 2026
The one-line version
"You shouldn't be prompting agents anymore. You should be designing loops that prompt your agents." That's Peter Steinberger's framing, echoed by the head of Claude Code at Anthropic, who put it even more bluntly: his job now is to write the loops that prompt the AI, not to prompt it himself.
First — a translation, if you don't write code
This conversation started among software engineers, and the examples below mention things like repos and tests. Don't let that lose you — the idea underneath is plain, and it's about your business, not your codebase. "Loop engineering" just means this: instead of a person handling a repeatable process one step at a time, you design a system that runs the steps for you, checks its own work, remembers what it learned, and gets better each time. A sales pipeline is a loop. Client intake is a loop. Monthly reporting, lead follow-up, content production — all loops. Most companies run them by hand. The rest of this piece is about what changes when you stop doing that. Read "agent" as "the AI doing a task," and you'll follow every word.
The Shift

Two eras of working with AI.

For about two years, getting value out of an AI model meant one thing: write a good prompt, give it enough context, read what came back, and type the next thing. The model was a tool, and you were holding it the entire time — one turn after another. Prompt engineering was the whole game, and people got genuinely good at it.

As Addy Osmani — a longtime engineering leader at Google — frames it, that part is largely over. The new move is to build a small system that finds the work, hands it out, checks it, records what's done, and decides what's next — and then let that system poke the AI instead of you. The model still does the work. You've just stopped being the one in every turn.

Where your effort goes
Conceptual comparison of the two approaches.
Prompt engineering — your time per unit of work
High & constant — you're in every turn
Loop engineering — your time per unit of work
Front-loaded into design, then it runs
Loop engineering — your time designing the system
Where the skill now lives

This is the part worth sitting with: loop engineering isn't easier than prompt engineering. The effort moved, it didn't vanish. You spend less time typing instructions and more time designing a reliable system — and designing a system that runs while you're not watching is a harder discipline, not a softer one. As Osmani puts it, the work didn't get easier; the leverage point moved.

Definition

What a "loop" actually is.

A loop is not a prompt. It's a recurring process with memory, verification, and boundaries. The core algorithm underneath every AI agent is deceptively simple: give the model context, let it call tools in a sequence until the task is done. That's the most fundamental loop — reason, act, observe, repeat. An AI that can only suggest isn't running a loop. One that can take an action, see the result, correct itself, and go again is.

The art — what people mean by "loop engineering," or what some call "loopcraft" — is stacking and extending those loops so a single capable model becomes a dependable system. And here's what changed in 2026 that made this go mainstream: a year ago, building a loop meant writing and forever maintaining a pile of custom scripts. Now the building blocks ship inside the products themselves. The shape of a good loop is the same whether you build it one way or another — which is exactly why it's worth understanding the pattern rather than any single tool.

The Architecture

The four loops that stack.

The clearest map of the pattern comes from LangChain, who break it into four layers. Each one wraps the layer beneath it — and the magic is in how they compound.

Loop 1

The agent loop — automate the work

A model calls tools repeatedly until a task is complete. This is the foundation: give it the ability to act in the real world — read files, query a system, send a message, open a ticket — and let it run until done.

Loop 2

The verification loop — ensure quality

The agent doesn't always get it right on the first pass. So you wrap it in a checker that scores the output against a standard and sends it back with feedback when it falls short. The grader can be a simple rule or a second AI acting as judge. It costs more time and money per run — and it's worth it whenever quality matters more than speed, which is most real work.

Loop 3

The event-driven loop — work at scale

The agent stops being something you invoke and becomes a component running continuously inside a larger system. An event fires — a new document lands, a schedule ticks, a webhook arrives — and the loop runs on its own. This is the integration layer that lets the work happen in the background while nobody's watching.

Loop 4

The hill-climbing loop — automate improvement

The first three loops automate work. The fourth automates getting better at it. Every run leaves a trace of what happened; an analysis pass reads those traces and rewrites the system's own configuration to fix what's failing. The return arrow doesn't just loop to the top — it reaches inside and upgrades the inner loops. Each cycle makes the next one sharper.

Where the value compounds
LangChain's own takeaway: loops 1 and 2 are well-understood, but the real advantage is in loops 3 and 4 — embedding the system into your environment so it runs continuously and improves against your own standards. As Microsoft's CEO framed the stakes, the organizations that build these learning loops early — where human judgment and compute compound together — gain an edge that's hard to copy.
The Anatomy

The five pieces of a working loop (plus the one that matters most).

If the four loops are the architecture, here are the components that make one actually run — Osmani's breakdown, generalized beyond code:

1
Automations
The heartbeat. Something that fires on a schedule and does discovery and triage by itself — turning "a thing you ran once" into an actual loop.
2
Isolation
So two agents working in parallel don't collide — the same problem as two people editing the same file with nobody coordinating. Each worker gets its own clean workspace.
3
Codified knowledge
Your conventions, context, and hard-won lessons written down once where the AI reads them every run — instead of re-explaining your business from zero every single time.
4
Connectors
Plugging the AI into the tools you already use — the issue tracker, the database, the inbox — so the loop can act in your real environment, not just describe what it would do.
5
A checker
A separate agent that verifies the work — because the one who did the work is far too generous grading its own homework. Keep the maker away from the checker.
+1
Memory
The most important piece. A file or board that lives outside any single session and holds what's done and what's next. The AI forgets everything between runs — the memory doesn't. "The agent forgets, the repo doesn't."

That sixth piece — external memory — sounds too simple to matter. It's the opposite. It's the single trick every long-running automated system depends on: because the model starts every run cold, the memory has to live on disk, not in the conversation. Without it, the loop re-derives everything from scratch each cycle. With it, the work compounds.

The Bigger Picture

Why this matters far beyond coding.

The loop-engineering conversation started among software engineers, because coding agents were the first place the pattern got real. But strip out the code and look at the shape, and it's a description of any repeatable business process: find the work, do the work, check the work, remember what happened, decide what's next.

That's a sales pipeline. It's a client-intake process. It's monthly reporting, lead triage, follow-up sequences, content production, compliance review. Every one of those is a loop — most companies just run it by hand, with a person in every turn, the same way everyone used to prompt AI one message at a time.

vs
Prompting the work (most companies)
A person in every single turn
Quality depends on who's doing it that day
Nothing is remembered between runs
It never gets better on its own
Engineering the loop (the advantage)
The system runs the turns; people set direction
A built-in checker enforces a consistent standard
Memory compounds — every run builds on the last
The system improves against your own criteria

This is the same conclusion we keep arriving at from the business side: AI doesn't create value as a tool you pick up and put down. It creates value as a system — designed once, running continuously, improving over time. Loop engineering is simply the engineering vocabulary for the thing we've been building for clients all along.

The Honest Part

The trap nobody warns you about.

Here's where most of the hype skips a beat. Three problems get harder as the loop gets better, not easier — and every serious voice in this space says the same thing.

Verification is still on you
A loop running unattended is also a loop making mistakes unattended. Splitting the checker from the maker is what makes the loop's "it's done" mean something — but even then, "done" is a claim, not a proof. Someone still has to ship work they've actually confirmed.
Your understanding rots if you let it
The faster the loop produces work you didn't do yourself, the wider the gap between what exists and what you actually understand. A smooth loop just grows that gap faster — unless you keep reading what it produced. Greyling calls it the question of the moment: is comprehension debt the new technical debt?
The comfortable posture is the dangerous one
When the loop runs itself, it's tempting to stop having an opinion and just take whatever comes back. Osmani names this "cognitive surrender." Two people can build the identical loop and get opposite results — one moves faster on work they understand deeply, the other uses it to avoid understanding the work at all. The loop doesn't know the difference. You do.

This is why loop design is harder than prompt design, not easier. The leverage is enormous, but it's leverage — it multiplies judgment in both directions. Build the loop like someone who intends to stay the engineer, not just the person who presses go.

What To Do

What to do with this — whether you write code or not.

You don't need to be an engineer to act on the shift. You need to start seeing your business as a set of loops, then build them deliberately.

Step 1

Find the loop you're running by hand

Pick one repeatable process where a person is in every turn — lead triage, intake, follow-up, reporting. The best first candidate is high-frequency, rule-heavy, and currently eating someone's hours.

Step 2

Write down the knowledge first

Before automating anything, codify the conventions and judgment the process depends on — the "we do it this way because of that one incident." That external knowledge is what stops the system from guessing.

Step 3

Build the checker before you trust the maker

Decide what "done correctly" means and who (or what) verifies it — separate from whatever produced the work. A loop you can walk away from is only as good as the verifier you actually trust.

Step 4

Give it memory, then let it improve

Put the state somewhere durable so each run builds on the last, and review the traces so the system gets better against your standards — with a human keeping judgment in the loop at the points that matter.

The bottom line
Prompt engineering taught a generation to talk to AI. Loop engineering is about building the system that does the talking — and the checking, remembering, and improving — for you. The companies that learn to see their work as loops, and engineer them with judgment intact, will compound an advantage that's genuinely hard to copy. The leverage point moved. The question is whether you move with it.
FrontPipe
We build the loop. You stay the operator.
FrontPipe designs and runs AI growth systems — the loops behind your pipeline, intake, and follow-up — that find the work, do it, check it, and improve over time. Not a tool you have to hold. A system that runs, with your judgment where it matters. First workflow live in 14 days.
Sources

Where this comes from.

This piece synthesizes the people and teams defining loop engineering in 2026. The framing, quotes, and frameworks belong to them.

LangChain — "The Art of Loop Engineering"Sydney Runkle, June 2026. The four-loop stack: agent, verification, event-driven, and hill-climbing.
Addy Osmani — "Loop Engineering"June 2026. The five building blocks plus memory, and the central argument that the leverage point moved rather than the work getting easier.
Cobus Greyling — "Loop Engineering Playbook"June 2026. Where loops live, the runtime tiers, cost discipline, and comprehension debt.
Peter Steinberger & Boris ChernyThe originating framing: stop prompting agents; design the loops that prompt them. Cherny leads Claude Code at Anthropic.
swyx — "loopcraft: the art of stacking loops"Latent Space. The "loopcraft" framing the LangChain piece builds on.
Anthropic Engineering"Effective harnesses for long-running agents" — the harness and long-running-agent foundations underneath the loop.

Informational synthesis as of mid-2026. Quotes and frameworks attributed to their original authors. FrontPipe is an AI growth agency that designs and runs AI-powered systems for B2B firms and growing SMBs.