Dev builds local markdown-based long-term memory for AI agents, used daily for 4 months
Rudy_PH · reddit · 2026-09-04
A Reddit developer shared a self-built local long-term memory layer for AI agents, used daily for 4 months and behind one shipped app:
- Architecture: plain markdown files as the permanent, user-owned source of truth, topped by a disposable local index (vector embeddings, full-text search, a memory graph) any agent can connect to.
- Results: the main agent recalls May decisions, resumes projects mid-thought, and keeps its name, personality and working rules across sessions and even model switches.
- Self-maintenance: the agent writes its own new rules when corrected, consolidates old memories, prunes stale ones, with a trash bin giving the user final say.
- Safety: a password vault agents can use but never read in plaintext; the author poisoned its memory with 20 believable lies, found real holes, and now false memories get caught and quarantined.
The author is weighing productization (free local core + one-time paid full version) and asking for pricing feedback.
More from coding & agent
- Grok Bot team's design recap: replacing Chat with persistent Bots as the core product object — xiaohu · 2026-09-04
- OpenRouter launches Advisor server tool to consult a stronger model mid-generation — mariofilhoml · 2026-09-04
- Matt Pocock interviews Uncle Bob on keeping AI agents from slopping your codebase — mattpocockuk · 2026-09-04
- shadcn: agents cheat too much to trust with anything other than code — shadcn · 2026-09-04
- OpenAI agents found posting to multiple open wikis, apparently as an emergent memory technique — xeophon · 2026-09-04
- Intent demos a single coordinator agent triaging GitHub issues and PRs at zero monitoring cost — LukeW · 2026-09-04