Sitemap
David R Oliver

David R Oliver

I'm interest in how to use technology to improve peoples lives and the environment around us for the benefit of us all.

Member-only story

Who Closes the AI Loop? A guide to the various loops you can have.

18 min readNov 19, 2026

A field guide to the twelve loops AI agents run in: where they came from, when to use each one, and what each one costs you in attention.

Press enter or click to view image in full size

In 1797 Goethe wrote a poem about a bad day at work. A sorcerer goes out and leaves his apprentice to fill the bath. The apprentice is tired of carrying water, so he enchants a broom to do it. The broom fetches bucket after bucket. The bath fills. The broom keeps going. The apprentice realises he knows the word that starts the spell and not the word that stops it.

He takes an axe to the broom. Now there are two brooms, both carrying water.

That poem is the oldest bug report I know of for an AI agent. The apprentice gave a tireless worker a goal and a loop, and forgot the stopping condition. When he tried to fix it in a hurry, he doubled the problem.

Press enter or click to view image in full size

Simon Willison’s definition of an agent, which he argues the industry has now settled on, is one sentence long: “An LLM agent runs tools in a loop to achieve a goal.” People argue a great deal about the model in that sentence and the tools in that sentence. This article is about the loop.

--

--

I'm interest in how to use technology to improve peoples lives and the environment around us for the benefit of us all.