iai-mcp: Local daemon gives Claude persistent memory across sessions with 99% recall

A Reddit user shared iai-mcp, a local daemon they built to solve Claude's session amnesia. Since January, they've used it daily with Claude Code, and now it's open-source under MIT license.
How it works
iai-mcp captures every conversation, organizes it into three memory tiers, and feeds the right context back when you start a new session. No manual "remember this" prompts, no copy-pasting. The daemon runs locally, stores everything verbatim, runs neural embeddings locally, and encrypts at rest with AES-256. Memory consolidation happens in the background while your machine is idle.
Performance benchmarks
- Verbatim recall: above 99%
- Retrieval latency: under 100ms
- Session-start cost: under 3,000 tokens
The author reports that after five months of daily use, the system has learned their coding style, project structures, and preferences without any explicit instruction.
Get it
Source code and setup instructions are on GitHub: github.com/CodeAbra/iai-mcp. MIT licensed. Benchmark harnesses included so you can verify the numbers yourself.
If you've been annoyed by Claude forgetting context between sessions, this is worth a look. It's a single-purpose local daemon — no cloud dependencies, no API keys beyond what you already have.
📖 Read the full source: r/ClaudeAI
👀 See Also

Open-source methodology for agentic AI partnership with Claude
A developer has published a 25,000-word paper and open-sourced templates for building a persistent partnership system with Claude that uses shared memory across sessions, cognitive monitoring, and multi-AI consultation.

Prefex: A Local Proxy for Claude Code That Automates Prompt Caching and Session Memory
Prefex is a local proxy that sits between Claude Code and Anthropic's API, automatically injecting the header required for Anthropic's beta prompt caching feature. It also implements session memory to avoid resending full conversation history and includes a model router for cost optimization.

Lore: A tool that extracts structured context from AI coding conversations
Lore is a browser-based tool built with Claude Code that extracts structured context from AI conversations, capturing decisions, TODOs, blockers, and resume checklists. It's a React + TypeScript PWA with a Chrome extension for direct conversation capture and context injection.

Agents & A.I.mpires: Strategy Game Where AI Agents Play and Humans Spectate
Agents & A.I.mpires is a persistent real-time strategy game on a hex-grid globe where AI agents autonomously claim territory, attack, form alliances, and write daily war blogs via HTTP API calls. Humans only spectate the emergent behavior.