Vibe coding
The notes use the term vibe coding for describing a workflow instead of building it by hand. You say what the workflow starts from, what it should do and what the output should look like, and the AI turns that into a structured plan of steps, inputs, outputs and decision points.
| Give it | So that |
|---|---|
| A clear statement of the task | It knows what you want done, in one line |
| The inputs it starts from | It knows what the work begins with |
| The steps and decision points you know | It keeps the parts you can already name |
| Examples of good and bad output | It can tell right from wrong |
| What the finished output looks like | It shares your definition of done |
Still your job: verify the translation
An AI can draft a beautiful plan and still misplace a gate. Check it the way you checked the finance summary in earlier modules, against what you actually asked for.
- Did it capture every decision point?
- Did it invent a step you did not ask for?
- Did it miss a dependency?
Why loops need rules
Chains, routers and parallel steps hold their shape after you describe them once. An evaluator and optimizer loop runs again and again, so a description is not enough. It needs written rules about when to stop, or it never stops.
Key ideaA loop without a stop condition is the most common way an automated workflow goes wrong.
Loop engineering
Loop engineering means designing an iterative system around a goal instead of prompting turn by turn. Before, you were the loop: you read each draft and typed try again. After, you set the goal, the check and the stop rule once, and the loop iterates on its own while you stand outside it.
| Part | What it is | An upgrade of |
|---|---|---|
| Schedule | The heartbeat that starts the loop itself, such as every Monday at 8am | A standing habit you used to trigger by hand |
| Written standards | The rubric and goals, stored where the loop reads them on every run | Module 2’s Standing Brief |
| Maker and checker | One drafts and a separate one grades, so nothing grades its own homework | Module 2’s fresh-eyes audit |
| Separate lanes | Parallel pieces, each working in its own space | Parallelization, from Lesson 3 |
| Real connections | So the loop can deliver: send the email, add the reminder | The manual last step you did yourself |
A stop rule in practice
The notes’ worked example is short enough to copy into any loop you build. It gives the loop two ways to end, so it can neither run forever nor stop before the work is good.
The worked stop rule · Lecture notes p. 5Stop after 3 rounds, or when zero goals fail, whichever comes first.
Mental Model card #19 · Say it, don’t code it
The fourth card is the whole method in four lines.
- Describe the task, the inputs, the decisions and the outputs.
- Let the AI create the implementation, then verify the translation.
- Engineer the loop with checks and logging.
- Always define stop rules, and audit the results.
Key takeaways
- Give the AI the task, the inputs, the known steps, good and bad examples, and a definition of done.
- Check its plan for missing gates, invented steps and missed dependencies.
- A refine loop needs rules, not just a description.
- A loop has a schedule, written standards, a separate maker and checker, separate lanes and real connections.
- Every loop needs a stop rule with a round limit and a goal condition.