Level 7Lesson 56โฑ๏ธ 45 min

From Prompter to Loop Designer

The biggest shift in AI coding isn't a better prompt - it's building a small system that prompts the agent for you

Start With a Simple Picture

Imagine you have a very fast junior assistant. Right now, the way most people use one looks like this: you ask for something, you wait, you read what it did, you spot a mistake, you ask again. You are holding the assistant's hand the whole time. Every single step needs you.

Loop engineering is the idea that you stop being the hand-holder. Instead, you build a little system - a loop - that finds the work on its own, hands it to the assistant, checks whether the result is actually good, writes down what happened, and decides what to do next. You set it up once, and from then on the system does the prompting, not you.

The one-sentence version: Loop engineering is replacing yourselfas the person who prompts the agent. You design the system that does it instead.

An Everyday Analogy: The Dishwasher

Washing dishes by hand is like prompting an agent by hand. You stand at the sink, you do one plate, then the next, then the next. You are involved in every plate. It works - but your hands are full the entire time.

A dishwasher is a loop. You load it, you choose a setting, you press start, and you walk away. The machine does the repetitive work and tells you when it's done. You didn't get rid of yourself - you still load it, you still check a glass came out clean - but you stopped doing the boring middle part by hand.

Key point: A dishwasher is only worth it for dishes you wash often. For one single cup, washing by hand is faster. Loops are the same - they pay off for repeated work, not one-off jobs. (We'll test exactly when in the next lesson.)

What People at the Frontier Are Saying

This isn't a hypothetical. The people building these tools have already changed how they work:

Boris Cherny (head of Claude Code at Anthropic): "I don't prompt Claude anymore. I have loops running that prompt Claude and figure out what to do. My job is to write loops."

Peter Steinberger (engineer): "You shouldn't be prompting coding agents anymore. You should be designing loops that prompt your agents."

Addy Osmani (Google): "You don't really need to be good at prompting anymore. The thing to get good at is the loop that does the prompting for you."

The claim they're all making: the leverage point moved. For two years, the win came from writing the best prompt. Now the win comes from designing the best system around the agent.

What Is an "Agent", Really?

Before loops, get this one idea straight. When Anthropic measured Claude on real software bugs (the SWE-bench test), they were careful to explain that an "agent" is not just the AI model. It's the model plus the scaffolding around it:

AGENT = AI model  +  scaffolding

Scaffolding is the boring plumbing:
  โ€ข the prompt that gets sent in
  โ€ข the tools the model can use (run a command, edit a file)
  โ€ข the bit that reads the model's output and takes the next action
  โ€ข the loop that feeds the last result back in as the next input

In their test, the model followed a tiny, repeated loop on its own: explore the code โ†’ write a script to reproduce the bug โ†’ run it โ†’ edit the code โ†’ run again โ†’ check it's fixed. The same model scored far higher just because the scaffolding around it was well designed.

Why this matters for you: If the scaffolding (the loop) is what makes a mediocre setup great or a great model mediocre, then designing the scaffolding is the real skill. That's the whole subject of this level.

Prompting vs. Looping - Side by Side

PROMPTING (you are the engine)
  You: "Fix the failing login test."
  Agent: makes a change.
  You: read it, run tests, spot a problem.
  You: "No, the token expiry is still wrong."
  Agent: tries again.
  ...you repeat this until it's right or you give up.

LOOPING (the system is the engine)
  A schedule wakes up every morning.
  โ†’ It scans for failing tests by itself.
  โ†’ It hands each one to the agent to fix.
  โ†’ It RUNS the tests to check (no human needed).
  โ†’ It writes "fixed 3, stuck on 2" to a memory file.
  โ†’ It opens a pull request and pings you only for the hard 2.
  You: review the finished work over coffee.

Notice what changed: in the second version you didn't type a single prompt during the work. You designed when it runs, what it looks for, how it checks itself, and where it writes things down. That design is the job now.

How Engineers Use This to Build Better Software

This isn't about replacing engineers - it's about moving boring, repeatable work off their plate so they can focus on the hard, interesting parts. Real examples teams run as loops today:

Everyday loops that help engineers:
  • Test triage: every night, classify which tests broke and why, draft fixes for the easy ones.
  • Dependency updates: weekly, check for outdated libraries and open tidy update requests.
  • Lint-and-fix: on every code change, auto-correct style issues so humans never nitpick them in review.
None of these are glamorous. That's exactly why handing them to a loop frees engineers to do the creative, judgment-heavy work software actually needs.

The Honest Caveat (Read This Twice)

Some people online say loops mean "software engineering is dead" or quote huge productivity numbers like "8ร— more code shipped." Be skeptical. Anthropic itself said that 8ร— figure is "almost certainly an overstatement." Loops are powerful, but they are not magic, and they are not for everyone or every task.

The motto for this whole level: Build the loop. Stay the engineer.A loop is a multiplier on your judgment - it makes a thoughtful engineer faster, and it makes a careless one ship bugs faster. The loop doesn't know the difference. You do.

Hands-On: Spot the Loops Around You

Hands-on (15 min): Don't open any AI tool yet. Instead, list 3 repetitive tasks you (or an engineer you know) do every week - e.g. "reply to the same kind of email," "update a status sheet," "rerun a report." For each, ask two questions: (1) Does it happen often? (2) Is there a clear way to check it was done right? Keep this list - in the next lesson you'll run a real test on it to see which ones could become a loop. You're already thinking like a loop designer.
Lesson 56 Quick Reference
Loop engineering

Designing a system that prompts the agent for you - instead of you prompting it by hand

The shift

Leverage moved from writing the best prompt to designing the best system around the agent

Agent = model + scaffolding

An agent is the AI model PLUS the prompt, tools, and loop around it; the scaffolding is where the skill lives

Dishwasher rule

Loops pay off for work you repeat often, not one-off jobs

You stay in the loop

Loops remove the boring middle, not the engineer - you design it and check the results

Build the loop, stay the engineer

A loop multiplies your judgment; it speeds up good and bad engineers alike

โ† Level 6 Capstone
Unlocks in ~12 min of reading