Persistent Memory and Derived Context: A Two-Layer Pattern for Agents | Dark Hacker News