r/modelcontextprotocol • u/JoeBro121211 • 1d ago
An MCP memory server shared by Claude Code, Codex and OpenCode: provenance, decay, nothing deleted
Disclosure: I built this as part of JoeBro, a free GPLv3 Mac app. The memory is a standard MCP server, so any MCP client can use it: https://github.com/joexk1/JoeBro
Tools: memory_remember, memory_recall, memory_supersede, memory_forget, memory_project_brief.
Design choices that ended up mattering:
One SQLite store per project. It's keyed by the normalised git remote, so moving or re-cloning the repo keeps its memory.
Provenance on every fact: agent, model, session and host.
Strength and decay. Recall reinforces a fact, unused facts decay on a half-life, and a size cap archives the weakest. Pinned facts never decay.
Nothing destructive. Forget archives, supersede archives the old version with a pointer to the new one, and every action is logged with who did it.
No model calls. Recall is rare-word-weighted token matching, and dedupe is token-set similarity. Stdlib Python only.
A short brief at session start, with the rest pull-only, so it doesn't eat the context window.
Curious what others do about write permissions between agents. Right now any connected agent can supersede any fact, relying on the audit log instead.