Agent memory and state patterns for loops | Hacker News Reader