Back to list

Loop engineering: let go of execution, never of direction

Jim Lin
AGIProduct

Two weeks ago, hardly anyone had heard the term loop engineering. After one tweet, it was all over everyone's timeline. The gist: stop prompting your coding agent line by line, and design the loop that prompts the agent for you.

My first reaction wasn't "how novel." It was "finally."

Because this didn't come out of nowhere. It's where human-in-the-loop was always heading: the time humans spend in the loop was always supposed to keep shrinking. Wherever a person is involved, that person becomes the bottleneck on the whole pipeline's throughput. Moving people out of one step after another was only a matter of time.

But there's a question a lot of people skip: if humans don't have to manage anything anymore, what are humans for?

My answer: designing the system. Designing a system that can loop on itself and evolve on its own, finding problems, analyzing them, designing solutions, executing and verifying, and finally delivering a reliable "solution" end to end. What humans step out of is execution, not responsibility.

So this post comes down to one sentence:

Once execution can be handed to agents wholesale, what people can let go of is execution. Only two things can't be let go: direction (where to go), and the part of verification that hasn't been made objective yet (what counts as right).

Why loop engineering is inevitable

First, let's get the idea of "the loop" straight.

Building a product has always been a loop that never stops. Once a product ships, the cycle is endless, because requirements get discovered over time, and even redefined, and what makes a good product good is precisely whether it can keep adapting to new requirements. Iteration isn't a phase of the product. Iteration is the product.

In the past, every turn of this loop had to be pushed by people: people gathered feedback, came up with solutions, wrote the code, signed off, shipped the release. People were the engine and also the speed limiter. What loop engineering describes is, at heart, swapping the engine for agents and moving people behind the steering wheel. It points the same way as what I wrote in Anatomy of an agent harness: intelligence comes from the model, and the human's job is building the car, not the engine. Loop engineering just raises "building the car" from a single task to the whole iteration cycle.

Stepping out of execution isn't letting go

There's a line to draw here, or loop engineering easily degrades into its opposite.

I've written before that orchestration is overrated, and even predicted that orchestration-style AI will eventually disappear. Orchestration is, at heart, using deterministic code to make every decision on the model's behalf. The stronger the model, the more you box it in, the more you waste.

So is "designing a loop that prompts the agent for you" just bringing orchestration back?

No, and it actually points the opposite way. Orchestration decides every step for the model. Designing the system hands "how to get there" over even more completely, and the human is only responsible for holding these few things in place:

  • Direction: where this product is going, what to do and what not to do.
  • Signals: how the system knows "there's a problem here, worth fixing."
  • Verification: what counts as "done right" and ready to deliver.

It's the same philosophy as Context, not Control, just one altitude higher. It goes from "give a single task enough context, then let go" to "give the whole iteration system enough direction and verification criteria, then let go."

Three loops not to confuse

People throw around the "loop" in "loop engineering" loosely, but there are at least three, and their difficulty is completely different.

The first is the model's core loop. It's that twenty-line while: if the model wants a tool, it calls it, the result gets fed back, and the loop runs until the model decides to stop. This loop belongs to the agent. It's the model's judgment running, and you shouldn't touch it. I covered this thoroughly in the harness post.

The second is the short-term task loop. An end-to-end task with a clear short-term goal: set the goal, execute, verify, deliver. It's relatively easy, because the goal is clear and verification is clean. Run a browser simulating user clicks, run the unit tests, and red is red. When the industry talks about "putting something in the loop that can say no (a test, a type check, a real error)," this is the layer it means.

The third is the long-term self-evolution loop. Self-evolution across many tasks: the system captures signals from a period of running, diagnoses problems, proposes improvements, verifies, releases, and goes into the next round. I broke this down into eight steps in Agent self-reflection and self-evolution.

The latter is much harder than the former. The hard part: in the short-term loop, the goal and verification come ready-made, while in the long-term loop, "what counts as getting better" is something a person has to define. The next two sections both chew on this.

Verification has layers, and the line keeps moving

Once people step out of execution, "verification" immediately becomes the sharpest contradiction. I say people are the bottleneck and should step out, and in the same breath I say you can't flip the self-evolution switch without good evals. So is verification itself the last, and biggest, human bottleneck?

My answer: verification isn't an either-or between "hand it all to the agent" and "keep it all with people." It's layered by whether it can be made objective.

  • Whatever can be written down as standards and specs, the agent verifies itself. Functional interaction flows (running a browser to simulate clicks and usage paths), maintainability, security, unit tests: for these QA gates, the agent can judge for itself and close the loop on its own. How far it gets depends on how people design it and how they "require" the agent to meet the bar.
  • Value judgments stay with people. Whether the product direction is right, the blind spots the agent didn't think through, the standards and specs that haven't been written down yet: these higher-dimensional things, for now, need a person.

Why draw the line at "objective"? Because in the meta-skills post I described a trap: let the AI write its own exam and grade its own paper, and you get tests passing 100% with the logic all wrong. An agent's self-verification can only be trusted inside the fence where there's an objective referee. Once it strays into value judgment, it falls into a closed loop of justifying itself.

But what really matters isn't where this line is drawn. It's that the line moves.

Among the work people keep, one item is "filling in the standards and specs that haven't been written down yet." Once a value judgment has been thought through and written into an executable spec, it sinks from "human eval" into an "agent self-verification gate." In other words, one of the ongoing things a person does in the loop is keep compressing their own judgment into standards. That's exactly what I meant when I said the essence of a Skill is compression. Every time one gets compressed, the verification boundary between human and machine moves one notch toward the agent.

The endgame isn't people disappearing from verification. It's people constantly falling back to the front edge of this moving boundary, doing only the judgments that "haven't been made objective yet."

This loop is a dial, not a switch

So where exactly should people step back to?

There's no standard answer. The loop can be big or small, depending on two things: where people want to step back to, and whether the system can actually keep itself in check.

Put plainly, how far people step back is a function of how trustworthy the system currently is. The more the system can catch its own failures, the further people can step back. But which notch you step back to is something people choose actively, not something technology decides for them. If today's eval coverage isn't enough and the system can't catch its own failures, step back less and guard more. My principle hasn't changed: until there's good enough eval coverage, don't flip the self-evolution switch. Better to be a step slower.

Signals have layers too, and need careful picking

Verification answers "was it done right," but there's a step before it: once people stop scoring each item, how does the system know in the first place that "there's a problem here, worth fixing"?

There are plenty of candidate signal sources: real production behavior (retention, reuse, fewer steps per Skill invocation), self-play, A/B tests, another agent as judge. Any of them could be a signal source, but choose carefully. Some signals lag, and some are misleading.

My current split is still that line between objective and value:

  • Quantifiable signals: the agent judges and closes the loop itself. Things like production error counts and tickets with negative feedback are objective and low in ambiguity, and can directly drive short-cycle self-correction.
  • Value-judgment signals: for now I lean toward people providing them. Because value has no objective referee, and the self-play route is the easiest way to fool yourself (writing your own exam and solving it, the flaw I mentioned above). Letting the agent define "what counts as better" on its own is too risky.

My thoughts

After writing this, a few convictions got clearer for me.

First, loop engineering isn't orchestration; it points the opposite way. It's not about people drawing more complex flowcharts to box agents in. It's about handing execution decisions over more completely, with people keeping only three control points: direction, signals, verification. People who mistake it for orchestration will make things heavier and heavier, and end up back in the old trap of "deterministic code making judgments for the model."

Second, stepping out of execution isn't being replaced; it's moving up the job ladder. From executor to system designer, gatekeeper of direction, and recorder of standards. If people really had nothing to manage, you wouldn't need people. But precisely because someone has to design this self-running system, the bar for people goes up, not down.

Third, the human-machine verification boundary will keep moving toward the agent, and people are the ones pushing it. People keep compressing judgment into standards, and as soon as a standard lands, it goes to the agent. So people's long-term value isn't in holding some fixed boundary. It's in always standing at the front edge of the boundary, working only on what hasn't been made objective yet. This never ends, because new requirements keep creating new things that "haven't been made objective yet."

Fourth, direction is the final anchor, and the one place AI can't replace people. Too narrow a direction, and the system can't branch out or adapt to diverse needs. Too wide, and with more features it becomes big but shallow, loses the core usage path, and actually gets harder to pick up. When everything else can be handed to agents, the product's direction is the one thing you can't let go of. AI can work alongside people, but people are still the key bridge that feels the real world, that feels relationships and resource networks, and direction grows out of exactly that feeling. Without direction, you can't even define "what counts as better," and even the smartest evolution loop just spins its wheels.

Hand over everything that can be handed over, then hold on tight to the one thing that can't: direction. That's probably where people should stand in the agent era.

References