From prompting to loop engineering
Prompting has been moving toward longer-running loops.
With human in the loop, the human stayed close to the model, reviewed outputs, corrected mistakes, and decided the next step. This gave control, but it also created many interruptions.
With goal-driven prompting, we stop asking the model to do one small step at a time. We give it a clearer goal: what to achieve, what constraints to follow, and when to ask for help. The point is to reduce unnecessary interruptions without removing the human.
With loop engineering, we design the cycle around the prompt. The model takes an action, checks the result, updates what it knows, and tries again. This repeats until the goal is reached or something blocks progress.
Filter and improve
Most loops I care about reduce to two patterns: filter and improve.
A filter loop reduces many possibilities into a smaller set of stronger candidates.
It starts with a list, processes each item, evaluates the results, and keeps only the best ones. For example, a loop may collect high-performing thumbnail examples, analyze each one, score their visual patterns, keep the top few, then use those patterns to generate and score new caption ideas.
In short: many items go in, only the strongest few come out.
An improve loop makes one thing good enough.
It starts with a current artifact, applies a change, verifies the result, and repeats until it passes. For example, a coding loop runs tests, reads the failure, edits the code, runs tests again, and continues until all tests pass. An SEO loop runs a speed test, optimizes the website, reruns the test, and repeats until the score is above 95.
In short: keep changing one thing until it passes.
Most practical loops are one of these two shapes, or a combination of both. A content workflow may filter many ideas down to a few strong candidates, then improve the best one until it meets a clear quality standard.
Loop engineering gets easier when you reduce the workflow to filter or improve.
To comment and continue discussing this article, please comment on the X Article.