← Reddit

How I Created a Real Second Brain for Claude

Reddit · AregNoya · June 16, 2026
A developer created iai, a personal memory system for Claude that mimics human brain function by modeling autistic memory patterns where information is retained verbatim longer than typical neural processes. The system employs multiple AI models collaboratively to store all user input while surfacing only important information, with the ability to gradually forget outdated details and learn user patterns after repeated sessions. The open-source project is reportedly used daily by engineers at major technology companies and demonstrates performance comparable to existing memory management systems.

Detailed Analysis

A developer operating under the handle CodeAbra has published an open-source project called the **iai-personal-memory-engine** (IAI-PME), a custom ambient memory architecture designed to give Claude — and AI assistants broadly — a biologically-inspired, persistent cognitive layer that survives context window resets. The project grew out of a direct frustration with Claude's stateless nature: every new session effectively erased the personality and accumulated knowledge of what the author had constructed as a personalized AI assistant named "Igor." Rather than adopting existing memory solutions like LanceDB, the Leiden algorithm, or TorchHD, the author ultimately wrote custom replacements — dubbed HIPPO, MOSAIC, and LilliHD respectively — after finding that off-the-shelf tools introduced unacceptable latency, storage overhead, and licensing constraints (the Leiden algorithm's GPL license conflicted with the author's intent to release under MIT).

The theoretical foundation of the project is notably unconventional. Rather than drawing primarily from contemporary AI memory research, the author anchored the architecture in mid-20th-century cybernetics, specifically Norbert Wiener's tradition as expressed through W. Ross Ashby's *Design for a Brain*, Stafford Beer's *Brain of the Firm*, and Donald Hebb's *The Organization of Behavior*. The resulting system was explicitly modeled on what the author terms "CyberAutistic" memory patterns — referencing the tendency of autistic individuals to retain verbatim recall over longer durations than neurotypical memory curves — rather than standard forgetting-curve approximations. The system fires a hook at session start to preload salient context into the system prompt, stores all input verbatim, and then runs a consolidation process (described as "sleeping") that surfaces and retains only high-signal information: repeated references, sudden plan changes, and other priority signals, while allowing low-value data to decay.

The development methodology itself reflects an emerging pattern in independent AI engineering: multi-model consensus building. Rather than relying solely on Claude, the author orchestrated six frontier models — including Gemini, GPT, Grok, Kimi, and Codex — through tools like Antigravity CLI and Cursor, forcing them into structured debate cycles ("multisocratic discussion") until convergence was reached on architectural decisions. This adversarial multi-model workflow was used specifically to replace proprietary or GPL-licensed algorithms with bespoke equivalents that met the project's performance and licensing requirements. The author benchmarked IAI-PME against mem-palace and reports that it beats mem-palace on most evaluations while tying on long-term memory benchmarks — though the author candidly notes the comparison is imperfect, since IAI-PME is ambient and dynamic while mem-palace is a flat cosine similarity store.

The project sits at the intersection of several accelerating trends in AI tooling: the proliferation of memory and personalization layers built atop foundation models, the use of Model Context Protocol (MCP) as an integration substrate, and the rise of "vibe coding" — a term the author self-applies — in which non-traditional developers leverage AI assistants to build technically sophisticated systems without formal computer science backgrounds. The author's stack (Claude Code, RTK, Context Mode MCP, Get Shit Done, Antigravity CLI, Cursor CLI, Notebook LM CLI) is representative of an increasingly dense ecosystem of AI-adjacent developer tools that compress the distance between architectural ambition and functional output. The claim that an Nvidia engineer and an Apple engineer use the system daily, while anecdotal, suggests the project has found adoption beyond its creator.

Broader implications center on the question of what persistent memory means for AI identity and utility. The author's framing — that they wanted not a *memory tool* but a *brain* — captures a distinction that much of the current memory-augmentation discourse elides. Systems like IAI-PME are not merely retrieval indexes; they attempt to model salience, forgetting, and longitudinal learning in ways that more closely approximate cognitive continuity. As Claude and similar models bump against context window ceilings and stateless session architectures, third-party ambient memory systems like this one represent a grassroots engineering response to limitations that foundation model providers have been slow to address natively. Whether such community-built cognitive layers become standard infrastructure or get absorbed into first-party offerings will be a defining question for the next phase of AI assistant development.

Read original article →