How to Debug Agent Loops When They Get Stuck | AgenticPrep