The Pain: You spent an afternoon tuning your agent. Next morning, it stares at you blankly — as if yesterday never happened.

What You'll Learn: The 4-stage evolution (Prompt → Context → Harness → Loop), and a runnable 50-line Loop Agent that persists memory.

0. Prerequisites

Python ≥ 3.10

pip install openai (openai ≥ 1.0.0)