How AI agent memory works | Hacker News Reader