Skip to Content
loop.fun

Start here

A field guide to loop engineering. Patterns, hints and tools for designing agentic loops, where to run them, and the failure modes to plan for.

A field guide for people who already work with AI agents and want to design better loops around them. Each section collects patterns, hints and tools you can take into your own loops: how to phrase a goal a machine can check, which shapes recur, where loops run, what they cost, and what tends to break.

Command flags live in each tool's own docs, linked from the pages. Every claim links to the source it came from.

Why loops matter now

Over roughly a year, an idea went from a joke to a product category:

  • July 2025. Geoffrey Huntley's "Ralph Wiggum" technique is a bash one-liner that feeds the same prompt to a coding agent forever (Steve Kinney's write-up).
  • Spring 2026. OpenAI ships /goal in Codex CLI (Simon Willison calls it "a built-in Ralph loop"). Claude Code, Hermes Agent and Google's Antigravity CLI follow with their own goal modes.
  • June 2026. Claude Code's creator Boris Cherny says he doesn't prompt Claude any more; he writes loops that do (The New Stack). Peter Steinberger and Addy Osmani name the practice loop engineering (O'Reilly Radar), and Andrew Ng describes product development as three nested loops.
  • July 2026. The backlash: "it's just a while loop with an LLM call", plus a rebrand attempt as "graph engineering".
  • Now. Loops are standard harness features, and the hard questions have moved elsewhere: how do you know the loop is done, what does it cost, and who reviews what it produced?

The working definition

An agentic loop is a program that keeps an agent working toward an outcome by deciding, after every step, whether to continue. Almost everything interesting about loops is in how that decision gets made.

Where to go

Short on time? Read The four layers, What is a goal? and Shortcomings, in that order, then sketch your own loop against them.

Reading the evidence

The 2026 discourse about loops is loud and young. Much of it consists of practitioner blogs, vendor content and posts on X. Where a claim rests on thin ground, you'll see a badge:

  • primary source the vendor's own docs or engineering blog, or a paper
  • secondary reporting reported by others, not checked against the original
  • anecdotal one person's numbers or story
  • contested sources disagree

As the August 2026 study of loop engineering puts it, the claims attached to the practice "rest almost entirely on anecdotes and self-reported productivity numbers."

Before you rely on a number

  • Follow the link. Pages summarize their sources; where a detail matters, read the original.
  • Dates, versions and prices disagree between sources. Many are SEO content or vendor blogs with a stake in the topic.
  • Tools change weekly. The environment and host pages are snapshots and will drift.

All sources are collected in the source library.

Add what you know

The most useful additions come from people who run loops. Share your story so we can learn from each other. Every page also has links to improve it or start a discussion.

loop.fun

Patterns, hints and tools for designing the loops that keep agents working, and for widening the set of loops you can think of.

© 2026 loop.fun · CC BY 4.0

On this page