How AI agent memory works | Dark Hacker News