Agentic AI · Module 4Lesson 4

Study explanation · Lesson 04 · 13 min

Say it, don’t code it

Describe the workflow in plain language and let an AI turn it into a structured plan. You still check that the translation is right, and any loop that refines its own work needs a stop rule, or it never stops.

Listen to this lesson

Hear the lesson read aloud, with each sentence highlighted as you go.

Narrated by an AI voice.

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.

What the AI needs from you · Lecture notes pp. 4-5
Give itSo that
A clear statement of the taskIt knows what you want done, in one line
The inputs it starts fromIt knows what the work begins with
The steps and decision points you knowIt keeps the parts you can already name
Examples of good and bad outputIt can tell right from wrong
What the finished output looks likeIt 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.

The anatomy of a loop · Lecture notes p. 5
PartWhat it isAn upgrade of
ScheduleThe heartbeat that starts the loop itself, such as every Monday at 8amA standing habit you used to trigger by hand
Written standardsThe rubric and goals, stored where the loop reads them on every runModule 2’s Standing Brief
Maker and checkerOne drafts and a separate one grades, so nothing grades its own homeworkModule 2’s fresh-eyes audit
Separate lanesParallel pieces, each working in its own spaceParallelization, from Lesson 3
Real connectionsSo the loop can deliver: send the email, add the reminderThe 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.

Study explanation based on the supplied Module 4 lecture notes and reading list for Agentic AI in Practice. The slides the notes accompany were not supplied, so nothing here is attributed to them. Open the source notes above for page-level traceability.

Your study checkpoint

Ready to continue?

Mark the lesson complete once you have read it and tried its idea on something real.

Next · Lesson 5