The agent loop — CCA-F Exam Prep

He started a research agent before bed. He woke up to a $4,200 API bill.
The task was simple: 'Summarize everything about quantum computing.' The agent called a search tool, got results, decided it needed more context, searched again. 1,847 API calls. Six hours. It never returned a summary because it never decided it had 'enough' information.