The agent loop — CCA-F Exam Prep
L2.17|The agent loop
1/12
His agent ran for 6 hours. He woke up to a $4,200 bill.
A developer built a research agent. "Summarize everything about quantum computing." He started it before bed. The agent called a search tool, got results, then decided it needed more context. Called the search tool again. Got more results. Decided it needed even more.
1,847 API calls. 6 hours. $4,200 in Claude API charges. The agent never returned a summary because it never decided it had "enough" information.
The loop had no exit condition. So it never exited.
