Agent Loops, Stop Conditions and Token Budgets
Learn how agent loops grow in cost, how to stop them safely, and how to budget tokens, time and money with guards, caching and graceful endings.
Syllabus
Anatomy of an Agent Loop
Stop Conditions
- Defining "Done"
- Hard Limits: Steps, Time, Tokens, Money
- Detecting No Progress
- External Stops and Cancellation