Claude GuideDevantia × Executive Partners Group
DevantiaExecutive Partners Group
0/23 Jean-Christophe Leroy
Jean-Christophe Leroy
Guide author
✓ Verified on September 3, 2026⏱ 7 min read
Module 03 ter

Prompt or loop? — the shift

🎯 Learning objective Know when a single prompt is enough and when you need to build a loop. By the end of this module you'll be able to identify the type of task in front of you with three questions, write a stop criterion the machine can verify on its own, and turn your recurring work into loops that run without you.

Skills you'll gain

Tell a prompt from a loop · apply the three-question test · write a verifiable stop criterion · pick among the four loop types · set up your first routine without taking on risk.

Key concept — the prompt describes, the loop verifies

With a prompt, you are the judge: Claude produces, you read, you correct, you run it again. You are the loop — and your attention is the bottleneck. With a loop, the machine is the judge: you define a verifiable target, Claude produces, tests, retries, and stops only once the target is met.

The line that captures the shift comes from Boris Cherny, head of Claude Code at Anthropic: "I don't prompt Claude anymore. I have loops running that prompt Claude and figuring out what to do. My job is to write loops."

PROMPT — you are the loop you ask Claude delivers you review Every turn costs your attention. You are the bottleneck. LOOP — the test is the loop trigger Claude delivers the test decides automatically The loop runs without you and stops when the target is met.

The three-question test

Before asking yourself "how do I prompt this?", run these three questions in order. The first one settles it nine times out of ten.

① Can I write the test that says "this is good"… …without reading the output myself? NO Classic prompt see module 03 YES ② Does it repeat, or will it run long? a recurring task, or a project spanning hours NO Prompt + iterate 2-3 rounds are enough YES ③ Would a mistake be recoverable? publishing, client emails, payments, deletion = no NO Loop that prepares you review and publish YES Autonomous loop it runs, you read the output whenever you want
💡 Question ① is the only one that really matters "Lighthouse score ≥ 90," "all 12 rows in the table are filled," "no date is later than today," "the file compiles": those are tests. "A good LinkedIn post," "a compelling summary," "a professional tone": those are not. If you can't write the test, you don't have a loop yet — you have a prompt, and that's perfectly fine.

When to stick with a classic prompt

A loop isn't a promotion — it's a different tool. For most of your day-to-day work, the prompt is still the right reflex.

💬 Thinking, weighing, deciding

There is no automated test for "good decision." Your judgment is what settles it — and that's exactly what you're there for.

✍️ Writing something sensitive

A delicate email, a keynote, a message to an unhappy client. The success criterion is how the reader feels: that doesn't compile.

🔍 Exploring a new topic

When you don't yet know what you're looking for, a conversation beats a poorly aimed loop spinning in the dark.

⚡ A one-off, short task

Summarize a document, rewrite a paragraph, pull out figures. Building a loop would cost more than doing the task.

When to switch to a loop

🔁 The task comes back every week

Competitive monitoring, pipeline review, reporting, screening applications. You redo it identically: automate the trigger.

🎯 The result is measurable

A score, a threshold, a format to respect, a list to complete. The moment a number or a rule decides, the machine can judge alone.

⏳ The project is long

Data migration, auditing a document archive, compliance work. Opus 5 and Fable 5.1 sustains multi-hour tasks without losing the thread.

🧹 The work is repetitive and high-volume

200 product sheets to normalize, 80 contracts to index. The cost of one more iteration becomes negligible: let it run.

The four loop types

Anthropic distinguishes four. The first two fire on your request; the last two run without you.

TypeFires when…Stops when…What it's for
Turn-basedyou askClaude judges the task completeThe default mode — the one you already use without naming it.
Goal-basedyou askthe criterion is met, or the turn cap is hit"Keep going until this is true." The most useful one day to day.
Time-baseda schedule or intervalyou cancel, or the work is doneMonitoring, reporting, syncing. Cowork's scheduled tasks.
Proactivean outside eventeach pass succeedsAn email lands, a file changes, a threshold is crossed: it fires itself.

Putting it into practice — in five steps

1

Spot the task that comes back. Look at the week behind you: what did you do twice or more, identically? That's your first candidate. Don't invent a loop for a task you never actually do.

2

Write the stop criterion before the prompt. This is the single most important mental switch in this module. One sentence, verifiable, with no adjectives: "every entry has a price, a date, and a clickable source."

3

Have it stop at a queue. The loop prepares, sorts, proposes — you review and you publish. Never the other way around, at least until you have several weeks of experience with it.

4

Let it run for a week, then read it back. A loop is tuned in use: you'll find the criterion was too loose, or too strict. That's normal — and that's where the value gets made.

5

Watch the spend. A running loop consumes continuously. In Claude Code, the /usage command breaks down consumption by skill, by subagent and by loop — you see exactly what each loop costs.

# A loop you can adapt — Monday morning competitive monitoring TRIGGER: every Monday at 8 a.m. TASK: report what changed at [competitor A], [competitor B], [competitor C] (website, pricing page, LinkedIn, press) since last Monday. STOP CRITERION: every item kept has a clickable source, a date later than the previous Monday, and fits in one sentence. If nothing is new, write "nothing to report" — do not pad. OUTPUT: prepend to monitoring.md, without overwriting the history. GUARDRAIL: publish nothing, send nothing. I review before anything goes out.
⚠️ The two mistakes that cost real money 1 · The soft criterion. A loop with no objective test never converges: it runs, declares itself satisfied, starts over — and bills you for every turn. The symptom: you can't describe the stopping point without using an adjective.
2 · The loop that acts in the real world. Publishing, sending, paying, deleting: none of it can be walked back. A loop that prepares is a major win; a loop that publishes is a risk nothing justifies at the start. Have it stop right before the button.
Stop asking Claude to "check its work" Until now, the guidance was to add "check your work" or "review before answering" to your prompts. With Opus 5, you should remove those instructions: the model already checks itself, and asking for it triggers over-verification that burns tokens without improving the result. Anthropic's documentation is explicit on this. Same goes for "double-check" and "re-verify."
🎯 In practice — the Monday morning dashboard Before: every Monday, 40 minutes spent compiling the week's numbers, chasing unpaid invoices, and prepping the committee agenda.
After: a weekly loop produces three drafts — the summary note, the list of payment reminders, the agenda — and stops there. Stop criterion: "all three files exist, every figure is sourced, no reminder concerns an invoice already paid." You show up Monday, you read, you fix two lines, you send. 40 minutes become 8.
🛠️ Your turn — 5 minutes

List three tasks you did twice last week. For each, try to write the stop criterion without an adjective.

Expected result : At least one task has a verifiable criterion: that is your first loop candidate.

🧪 Exercise — Check your understanding
You want Claude to write your newsletter's monthly editorial, "with an inspiring tone." Prompt or loop?
A. A monthly loop: the task is recurring, so it can be automated
B. A prompt: "inspiring tone" isn't a test the machine can verify on its own
C. A proactive loop triggered by each new subscriber

Going further

This module answers "prompt or loop?". To build the loop once you've decided, move on to module 15 bis — the 5 patterns that work (chaining, routing, evaluator-optimizer) and module 15 — building AI agents. Scheduled tasks live in Cowork (module 05), and the /loop, /goal and /schedule commands live in Claude Code (module 06). Official reference: Loop engineering — the Anthropic blog.

💡 Expert tips → Start with one loop. Three badly tuned loops make more noise than work.
→ Your best first loop is one where you already know the expected result: you'll see immediately if it drifts.
→ Ask Claude: "Turn this recurring task into a loop: propose the trigger, the stop criterion, and the guardrail."
→ A loop that never stops is a badly written loop, not an ambitious one.