Kape Tools

Loop Engineering

Teaching an AI to check on its own, no prompt needed

Loop engineering means setting up an AI so it checks on something by itself, again and again, on its own schedule, instead of waiting for a person to ask each time. It builds on top of simpler ideas like writing a clear instruction or giving the AI a plan for a big job. For a freelancer or VA, it matters because it shows where AI tools are heading: less 'please do this now' and more 'keep watching this for me.'

What loop engineering means

Loop engineering means setting up an AI so it checks on something by itself, over and over, on its own schedule. Instead of a person asking the AI to do a task each time, the AI starts the task on its own. The AI looks at a situation, decides what to do, does it, checks the result against a rule, and repeats. It only stops when that rule says the job is finished. This repeating pattern is why it is called a loop.

The problem it solves

To see why loop engineering came up, it helps to look at the ideas that came before it. Each one was invented because the one before it hit a limit.

Loop engineering stacks one more layer on top of harness engineering. It does not remove the need for a clear instruction, useful facts, or a solid plan. What it changes is who starts the work. In every stage before this one, a person had to ask the AI to begin. In loop engineering, the AI begins on its own, based on a schedule or a rule that was set up in advance.

A circular diagram showing an AI reasoning about a task, acting on it, checking the result against a rule, and repeating until the rule says the job is done
The same four steps repeat: reason, act, check, and go again, until the rule says stop.Open full size

How the loop actually runs

  1. Reason. The AI looks at the situation and decides what needs to happen next.
  2. Act. The AI does one piece of work, like updating a number or trying a fix.
  3. Check. The AI compares the result against a clear, checkable rule, not a feeling.
  4. Repeat or stop. If the rule is not met yet, the AI goes back to reasoning. If the rule is met, the loop stops.

What a loop needs to actually work

Who checks the work

The Check step is where most loops quietly fail, because the thing checking is usually the thing that did the work. An AI asked whether it did well says yes. It is not lying. It cannot see the mistake it just made, for the same reason it made it.

On the left one worker doing the job and then grading its own work, marked as marking its own homework; on the right a separate rule that passes or sends it back
The checker can be dull. What it cannot be is the same worker in the same run.Open full size

A real checker is separate, and it can be very boring: a test that runs, a number compared to a target, a second agent applying one written rule. What matters is that the rule existed before the work did, so it cannot be quietly reinterpreted to fit whatever came out.

Four brakes every loop needs

Four panels: a try limit, a spending cap, an approval gate for anything irreversible, and a log you can read afterwards
Four brakes. Decide all four before the loop runs once.Open full size

A real example you can picture

One builder set up an AI to run a website that shows live sports scores during a tournament. Scores change many times a day, so updating the site by asking the AI each time would mean typing the same request over and over. Instead, the builder set up a loop: check for new scores every hour, and update the site automatically when something changed. A second loop watched for bug reports from visitors and tried to fix small issues on its own. Neither loop needed a person to press go. Each one followed its own schedule and its own rule for when a fix counted as finished.

When to use a loop, and when not to

Good fit for a loopNot a good fit for a loop
A repeating check with a clear rule, like 'is this price still correct'A one-time task you only ever need once, like writing a single email
Small, low-risk fixes that are easy to undoA decision that needs real human judgment, like which client to prioritize this week
Something you would otherwise have to remember to check yourselfAnything that spends real money or deletes real data without a person confirming first

Mistakes that break a loop

More words

See all 11 explanations