Knowing When to Stop: The Art of Making a Loop Converge

gmays2 pts0 comments

Knowing When to Stop: The Art of Making a Loop Converge | Andreessen Horowitz

Infra<br>Knowing When to Stop: The Art of Making a Loop Converge

Yoko Li

Posted<br>August 6, 2026

{ if(value) rect = $el.getBoundingClientRect(); });<br>" x-on:scroll.window="<br>const boundary = document.querySelector('.component-recommended--footer') || document.querySelector('.subscription-panel') || document.querySelector('footer');<br>const boundaryTop = boundary ? boundary.getBoundingClientRect().top : Infinity;<br>const buttonHeight = 48;

isSticky = (window.innerWidth >= 1024) && ($el.getBoundingClientRect().top = 1024) && ($el.getBoundingClientRect().top<br>Subscribe

Share

Share

Email

LinkedIn

Facebook

Hacker News

WhatsApp

Flipboard

Reddit

span]:rotate-180 [&.drop-active>div]:visible [&.drop-active>div]:opacity-100" :class="{'drop-active': isOpen}" x-data="toc()" x-show="navItems.length">

Knowing When to Stop: The Art of Making a Loop Converge<br>Table of Contents

Share

Share

Email

LinkedIn

Facebook

Hacker News

WhatsApp

Flipboard

Reddit

h1]:text-h1 [&>h1]:font-primary [&>h1]:mb-4 [&>h2]:text-h2 [&>h2]:font-primary [&>h2]:mt-[56px] [&>h2:first-of-type]:mt-14 [&>h2]:mb-4 [&>h3]:text-h3 [&>h3]:font-tertiary [&>h3]:mt-12 md:[&>h3]:mt-[56px] [&>h3:first-child]:mt-0 [&>h3]:mb-4 [&>h4]:text-h4 [&>h4]:mt-12 md:[&>h4]:mt-[56px] [&>h4:first-child]:mt-0 [&>h4]:font-medium [&>h4]:mb-4 [&>h5]:text-h5 [&>h5]:mt-[56px] [&>h5:first-child]:mt-0 [&>h5]:font-medium [&>h5]:mb-4 [&_a:not([class])]:text-[--post-link-color] [&_a:not([class]):hover]:text-[--post-link-color-hover] [&_strong]:font-bold [&>p:first-of-type]:mt-4 [&_p]:mb-7 [&>ul_li]:pl-6 [&>ul]:mb-7 [&>ul_li+li]:mt-3 [&>ul_li]:relative [&>ul_li]:before:content-[''] [&>ul_li]:before:size-1 [&>ul_li]:before:rounded-full [&>ul_li]:before:bg-black [&>ul_li]:before:absolute [&>ul_li]:before:left-[10px] [&>ul_li]:before:top-[13px] [&_figure]:my-6 [&_figure_img]:w-full [&_figure_figcaption]:mt-2 [&_figure_figcaption]:text-caption [&_figure_figcaption]:text-truffle [&_figure_figcaption]:font-secondary [&_figure_figcaption]:flex max-md:[&_figure_figcaption]:flex-wrap [&_figure_figcaption]:gap-2 [&_figure_figcaption]:justify-between [&_figure_figcaption]:italic [&_figure_figcaption_a]:not-italic [&>h5+ol]:-mt-2 [&_ol]:list-decimal [&_ol]:list-inside [&_ol]:my-4 [&_ol]:ml-4 [&_ol>li+li]:mt-2 [&>*:first-child]:mt-0 [&_.wp-caption-text]:italic [&_.wp-caption-text]:text-[#727069] [&_.wp-caption]:my-6 [&_iframe]:w-full [&_iframe]:mb-4 [&>strong+p]:mt-4 [&>blockquote]:py-6 [&>blockquote_p]:m-0 [&>blockquote_p]:italic [&>blockquote_p]:text-h3 [&>blockquote]:relative [&>blockquote]:pl-[26px] [&>blockquote_p]:before:content-[''] [&>blockquote_p]:before:bg-quote [&>blockquote_p]:before:bg-[length:24px_24px] [&>blockquote_p]:before:size-6 [&>blockquote_p]:before:absolute [&>blockquote_p]:before:left-0 [&>blockquote_p]:before:top-[2px]">

How can an AI model know when its work is done?

Well, how does a human know when our work is done.

A programmer waits for the tests to turn green or waits for PR review from their team. A designer adjusts a composition, steps away, returns, and decides the remaining imperfections no longer matter. A writer submits a draft because the deadline has arrived or because an editor accepts it, not because the prose has reached some objectively final state.

&ldquo;Done&rdquo; is rarely a property of the work itself. It is a judgment produced by the system around the work. Humans do not possess a universal detector for &ldquo;done&rdquo;. We rely on a patchwork of signals like tests, specifications, precedent, approval, deadlines, risk, and finding that point of diminishing returns. In each case, completion comes from outside the work itself.

The Model that Could Continue Forever

An AI model can almost always produce another answer.

It can revise the paragraph again. It can try another implementation. It can generate another image with more detail, different lighting, and a stronger composition. It does not become tired of the work. It does not notice, unless we give it some way to notice, that the last three revisions made the result different but not necessarily better.

This is part of what makes the recent idea of loop engineering so compelling. Instead of a human prompting a model, inspecting the result, describing what went wrong, and prompting it again, we can ask the system to perform the whole cycle itself. The person no longer has to sit inside every turn. The agent discovers the work, gives it to the model, checks the result, and decides what should happen next.

Peter Steinberger 咽<br>@steipete

Here&rsquo;s your monthly reminder that you shouldn&rsquo;t be prompting coding agents anymore.

You should be designing loops that prompt your agents.

6:58 PM &middot; Jun 7, 2026

8.5M

1,796

1,414

19,839

However, the nuance when writing a loop is that the loop is only as good as the verifier at each step . Even before we started talking about loop engineering,...

before text ul_li blockquote_p _figure_figcaption loop

Related Articles