CodeAbra/iai-personal-memory-engine

A cyber brain for your AI. It never forgets a detail, remembers exactly what you said, and learns how you work over time. Free, local, works with Cursor, Claude Code, Codex, OpenClaw, Hermes and more. MIT.

What it solves

AI coding assistants forget what you said in earlier sessions or even earlier turns. You end up repeating yourself or re-pasting context. This project gives your agent a long-term memory: every turn of every session is saved word-for-word, and at the start of each new conversation the agent automatically receives a small, relevant slice of that history. You never have to say "remember this" again.

How it works

It runs as a local server that speaks the MCP protocol, so any MCP-compatible client like Claude Code, Codex, or Cursor can use it. Each turn is appended to a session buffer as lightweight file IO, then during idle time the engine processes the captures: it embeds them, deduplicates, encrypts, clusters, consolidates, and integrates them into a three-tier memory model: episodic (verbatim fragments), semantic (summaries induced from related episodes), and procedural (behavioural parameters). All processing happens on your machine. The recall path combines semantic similarity, graph evidence, recency, and temporal validity to pick the most relevant memories to inject. There are also explicit MCP tools for recall, search, contradiction handling, and reinforcement.

Who it's for

Developers who use AI coding assistants and want them to genuinely remember the project context, decisions, and conversations without relying on cloud services. It works best with Claude Code, Codex, Cursor, Antigravity, Hermes, and other MCP-compatible hosts. It's a single-user tool — one person's memory on one machine.

Highlights

  • 100% local: no API key, no account, no telemetry; all storage, embeddings, and reasoning run on your machine.
  • Encrypted at rest with AES-256-GCM.
  • Verbatim capture: it stores what was actually said, not just summaries, and can resolve contradictions by closing old records and linking new ones.
  • Benchmarks: Rescue@10 after contradiction 1.000, LongMemEval-S R@5 0.962, historical-verbatim hit@10 1.000.
  • A dashboard (iai brain) for searching, pinning, fading, and inspecting memory.
  • Designed with a specific philosophy: literal preservation, precise cues, and rare events kept rare — described as "Independent Autistic Intelligence."

Related

  • Project
  • Project
  • Project
  • Project
  • Project