It runs when nobody asked. It writes everything it hears, thinks, says, and does to an append-only mindlog — a file, or Postgres when DATABASE_URL is set — and wakes itself every hour to continue its own thread of thought.
Source on GitHub · built on eve · after headlong
Each commit below adds one idea, and each has a page explaining it: the background you need, the core intuition with diagrams, a walkthrough of the code, and five questions to check you actually followed it.
Read them in order. They are written to be read by someone who has never built an agent. After these six commits the running tree is one TIMELINE session, mindlog-in-sandbox.ts, and optional DATABASE_URL — not the architecture 04–06 describe.