The log.md operation solves the AI amnesia problem where the LLM forgets context when a new chat session begins by creating an append-only diary where the AI writes timestamped entries detailing every successful ingest, query, and lint operation.

factualpending

Speaker

Anil Nattu

Evidence Quote

Karpathy solves this elegantly with a simple append-only markdown file called log.md. It functions exactly like a captain's log on a naval ship. Every single time the AI successfully performs an ingest, a query, or a lint operation, it is hardcoded to write a meticulous timestamped entry into this log detailing exactly what it accomplished.

Source

Karpathy Method for Building a Second BrainAnil Nathoo
Created: 8/13/2026, 9:52:16 AM

My Notes

Loading notes...