Memory: the bot remembers the conversation
Without memory the bot sees every message as its first: 'what were you asking?' We break down how the program assembles the bot's memory from message history, what it costs in tokens, and the trimming strategies. Plus the line 'program memory ≠ database' — what must survive a restart.