Developer Gives Claude Code Long-Term Memory Using Simple Markdown Files
A developer running a fully autonomous, schedule-based coding system built on Claude Code found that each new session started with no memory of previous work, causing the agent to repeatedly re-investigate and sometimes undo its own fixes. To solve this without adding external infrastructure, the developer implemented a file-based persistence layer using three Markdown files: a project spec, a session state memo, and an append-only decision log. The system runs entirely on a single Mac mini using macOS and launchd for scheduling, with no vector databases or external APIs involved. Two core rules enforce the memory system: every session must read the state files before touching any code, and must update them before ending. The developer reports this structural change, rather than any prompt or model improvement, was the single biggest upgrade to the agent's reliability and continuity.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in