The argument in one line.
Anthropic defines four loop primitives on a spectrum from fully manual to fully autonomous, and the stop condition is what separates a useful agent from a $6,000 mistake.
Read if. Skip if.
- You use Claude Code regularly and want to understand when /goal and /loop actually make sense to reach for.
- You are building agentic workflows and have not thought carefully about defining what done looks like.
- You are already running automated tasks with no stop criteria or token budget and have been lucky so far.
- You are a non-coder who wants to automate repetitive workflows using AI agents without writing code.
- You need production-grade agent architecture — this is a conceptual overview aimed at beginners, not an implementation guide.
- You are already fluent in agentic loop design and understand the difference between goal-based and proactive loops in practice.
The full version, fast.
Anthropic published how their Claude Code team actually runs loops internally, categorizing them into four types on a spectrum from manual to fully autonomous. Turn-based is just you hitting enter each time; goal-based hands the stop condition to the model with a retry cap and requires a separate judge model so the agent cannot grade its own homework; time-based adds a timer trigger via /loop for local use or /schedule for cloud runs; proactive combines all three so the agent finds its own work without any human in the loop. The video closes with six token-management rules, anchored by a cautionary graphic about a run that cost $6,000 overnight because no stop condition was set.
Chat with this breakdown — free.
Sign in and you get 23 free chat messages on us — ask for the hook, quote a framework, find the exact transcript moment, generate a markdown action plan. Bring your own key when you want unlimited.
Create a free account →Where the time goes.

01 · What is a loop?
Opens on the Anthropic docs page. Establishes the chatbot vs agent distinction: chatbot answers once; agent gathers context, takes action, verifies work, and repeats. Key slide: 'A loop with no stop condition is a tap left running.'

02 · Turn-based loops
The human is the loop. Each prompt equals one turn. SKILL.md files provide context; the agent verifies its work and waits for the next Enter. You hand off nothing — you are the stop condition.

03 · Goal-based loops /goal
Hand off the stop condition. Set a retry cap and a success score. A separate judge model grades each turn — never the same model grading its own output. Best for deterministic work; avoid for subjective tasks.

04 · Time-based loops /loop + /schedule
A timer kicks off the loop. /loop requires the local machine to be on; /schedule offloads to Anthropic cloud. Use cases: inbox concierge, daily intel brief, lead watcher, invoice chaser. Slide: 'If you ever say remember to check X then do Y, that is a loop.'

05 · Proactive loops
The highest autonomy tier: /schedule + /goal + skills + auto mode. Agent finds its own work, monitors Slack for bug reports, fans out to parallel dynamic-workflow agents, adversarial judge reviews fixes.

06 · Keep It Cheap — six rules
Six token-management rules anchored by the '$6,000 Night' graphic: no stop condition, rebuilt 800k tokens, ran 48x overnight. Rules: right primitive + model, clear stop criteria, pilot first, scripts for deterministic work, do not over-schedule, review /usage.
Lines worth screenshotting.
- An agent without a stop condition is not autonomous — it is a tap left running that will drain your API balance overnight.
- The same model cannot reliably grade its own output; a separate judge model is non-negotiable for goal-based loops to work correctly.
- Every time you say 'remember to check X then do Y', that is a loop you could hand to an agent with /loop or /schedule.
- A script that runs the same deterministic logic every time is always cheaper than re-asking an AI to reason through it again.
- /loop runs while your machine is on; /schedule moves the same task to the cloud and runs whether your laptop is open or not.
- Goal-based loops work well for objective, measurable tasks but fail for subjective work because the model's taste is not your taste.
- The proactive loop is the only type where the agent finds its own work — everything below it requires a human to initiate each cycle.
- Pilot any workflow on a small slice before wrapping it in a loop; what looks right in a test run can churn hundreds of dollars at scale.
- Dynamic workflows that fan out to parallel agents can deliver faster, adversarially reviewed outputs — but they also multiply token cost.
- Over-scheduling is its own risk: match the trigger interval to how often the thing you are monitoring actually changes, not to what feels automated.
Stop conditions are cost controls, not just logic gates.
Every agent loop that runs without a defined exit condition is a financial liability, not just a technical oversight.
- The four loop types form an autonomy spectrum: turn-based requires a human each cycle, goal-based hands off retry logic, time-based adds scheduling, proactive combines all three and lets the agent find its own work.
- A separate judge model is required for goal-based loops to work reliably — the same model that does the work will rationalize its own output as done, even when it is not.
- Every time a recurring manual check could be expressed as 'check X, then do Y', it is a candidate for a time-based loop via /loop or /schedule.
- Deterministic, repeatable logic belongs in a script, not an AI call — once a workflow is stable, the AI's judgment adds cost without adding value.
- The /schedule command moves a loop off the local machine and onto Anthropic's cloud, so it runs regardless of whether the developer's session is open.
- Token consumption scales with loop frequency and agent count — over-scheduling or using dynamic parallel workflows without a budget cap can generate $6,000 in charges overnight from a single unchecked run.
Terms worth knowing.
- Turn-based loop
- The most basic agent loop where the human initiates every cycle by sending a prompt; the agent cannot proceed until the human acts again.
- Goal-based loop
- An agent loop that runs autonomously until a specified success condition is met or a maximum retry count is reached, triggered via the /goal slash command.
- Stop condition
- The definition of done that tells an agent when to exit a loop; without one, the loop continues indefinitely and keeps consuming tokens.
- Separate judge
- A second, independent model used to evaluate the primary agent's output; prevents the agent from gaming its own grading and declaring success prematurely.
- /schedule (Claude Routines)
- A Claude Code slash command that offloads a recurring task to Anthropic's cloud infrastructure so it runs on a cron schedule whether the local machine is on or not.
- Proactive loop
- The highest-autonomy loop type that combines scheduling, goal-setting, and skill files so an agent discovers and completes work with no human in the loop in real time.
- Dynamic workflow
- A pattern where multiple agents run in parallel on different sub-tasks or perspectives of the same problem, allowing mass concurrent work and adversarial review.
- Definition of done
- A precise, verifiable success criterion given to an agent so it knows exactly what good output looks like; the single most important input for any goal-based or proactive loop.
Things they pointed at.
Lines you could clip.
“A loop with no stop condition is a tap left running.”
“You absolutely do not want the same agent checking its own homework because it can cheat that or gamify it.”
“A finish line is not just quality control. It is a money control.”
“A script is cheaper than re-reasoning — ship it once, run it every time.”
Word for word.
Don't just watch it. Burn it in.
See every word as it's spoken — crank it to 2× and still catch all of it. The same dual-channel trick behind Amazon's Kindle + Audible.
The bait, then the rug-pull.
Anthropic published the playbook their own engineers use to run agent loops — and it turns out the gap between a useful agent and a $6,000 overnight mistake is a single missing stop condition.
Named ideas worth stealing.
The Four Loop Types
- Turn-Based
- Goal-Based (/goal)
- Time-Based (/loop + /schedule)
- Proactive
Anthropic's internal classification of agent loops on an autonomy spectrum from fully manual to fully autonomous.
Keep It Cheap (6 Token Management Rules)
- Right Primitive + Model
- Clear Success + Stop Criteria
- Pilot Before a Big Run
- Scripts for Deterministic Work
- Do Not Over-Schedule
- Review Usage
Six practical rules for keeping agentic loop costs under control, built around the principle that tokens are money and every loop decision is a spend decision.
How they asked for the click.
“Check out my video on workflows before you dive into that because it will show you how to actually use this thing and how to set it up properly.”
Soft verbal CTA to the Dynamic Workflows video, then end-screen close with community mention. No hard sell.










































































