Every morning for three months, I re-explained myself to my coding agents. The same preferences. The same project structure. The same "no, we already tried that" conversation. Fresh context window, zero memory of anything we'd discussed before. Then I built Lorekeeper — an open-source memory layer for AI agents. Fixing the storage problem was the easy part. The hard part was making memory get better over time. Not just fuller. Sharper. Less noise. The approach that surprised me: let the agent re