Building LLM-Powered Agents with Real-Time Reasoning Loops