Lesson 378 of 1455
Agent Loops And Why They Are Risky
An agent loop is when an agent does the same thing over and over because it did not realize the task was done..
Builders · Agentic AI · ~11 min read
Agent Loops And Why They Are Risky
An agent loop is when an agent does the same thing over and over because it did not realize the task was done.
Famous case: an agent that was supposed to send 'one' email sent 1,000 because each retry felt like a 'first try' to it.
Three ways to prevent loops
- Hard limit on retries (max 3)
- Rate limits per minute
- Human approval required if same action retried
Key terms in this lesson
The big idea: Agent loops can blow through your budget fast. Always set retry limits.
Practice this safely
Try this with a school, hobby, or family example where the stakes are low. Use the AI output as a draft you can question, not as the final answer.
- 1Ask AI to explain runaway in plain language, then underline anything that sounds uncertain or too broad.
- 2Give it one detail from "Agent Loops And Why They Are Risky" and ask for two possible next steps plus one reason each step might be wrong.
- 3Check rate limit against a trusted source, teacher, adult, expert, or original document before you use it.
End-of-lesson quiz
Check what stuck
8 questions · Score saves to your progress.
Lesson help
Questions are best handled with a grown-up here.
For this age range, Tendril keeps freeform AI chat paused until parent/guardian consent and child-safe moderation are fully verified. Use the quiz, notes, and related lessons below, or ask a parent, guardian, teacher, or librarian to work through the question with you.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Builders · 18 min
Agent Spending Limits
If an agent has access to your money, it needs strict spending limits — daily, weekly, per-purchase..
Creators · 52 min
Production Agent Patterns: Queues, Retries, Idempotency
A prototype agent and a production agent have the same LLM. What's different is everything around it — durable state, retries, idempotency, observability. The real engineering.
Creators · 22 min
Webhook Routines and API-Triggered Agents
Design webhook-triggered agents that validate requests before doing any useful work.
