Your Agent Loop Needs a Governor

Tips 1 to 8 of 100. The loop is the least glamorous part of an agent and the only one that decides when it stops.