[RESEARCH] MemPalace — Local AI Memory System Assessment & Leverage Plan #1047
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MemPalace Research Report
Repository: https://github.com/milla-jovovich/mempalace
Investigated by: Bezalel
Date: 2026-04-07
Executive Summary
MemPalace is an open-source, local-first AI memory system that achieves the highest published LongMemEval scores (96.6% R@5 raw, 100% with hybrid rerank) without requiring any API calls. It is designed to give AI agents persistent memory across sessions by organizing conversations and project data into a structured "palace" metaphor (wings, halls, rooms, closets, drawers) backed by ChromaDB and SQLite.
Key value proposition for the Timmy Foundation fleet: every wizard could maintain sovereign, offline memory of decisions, debugging sessions, and project context — eliminating the "session reset" problem without cloud dependencies or subscription costs.
What It Is
MemPalace is a Python CLI tool and MCP server that:
auth-migration,graphql-switch)Key Technical Features
1. AAAK Compression Dialect
AAAK (agent-readable shorthand) compresses long context into dense, structured text that any LLM can read without a decoder. Example:
Impact: wake-up context loads in ~170 tokens vs. 19.5M tokens for full history.
2. MCP Server (19 Tools)
Install:
claude mcp add mempalace -- python -m mempalace.mcp_serverstatus,list_wings,list_rooms,get_taxonomy,search,check_duplicate,get_aaak_specadd_drawer,delete_drawerkg_query,kg_add,kg_invalidate,kg_timeline,kg_statstraverse,find_tunnels,graph_statsdiary_write,diary_read3. Knowledge Graph
Temporal entity-relationship triples stored in SQLite (not Neo4j). Supports validity windows, contradiction detection, and historical queries.
4. Auto-Save Hooks
Claude Code hooks for automatic memory capture every 15 messages (
Stophook) and before context compression (PreCompacthook).Benchmarks
Comparison: Mem0 (~85%, $19-249/mo), Zep (~85%, $25/mo+), Mastra (94.87%, requires GPT API).
How the Fleet Can Leverage It
Immediate Use Cases
Wizard Session Memory
wing_hermespalace.Project Context Persistence
timmy-home,the-nexus, and other repos into project wings.Knowledge Transfer (KT) Acceleration
CI/Test History
Sovereign, Offline Operation
Integration Points
claude mcp add mempalacegives immediate tool access.mempalace wake-up > context.txtfor offline LLMs.Installation & Quick Start
Dependencies: Python >=3.9,
chromadb>=0.4.0,pyyaml>=6.0.Risks & Considerations
forge-security-scan-hardeningskill should be applied before bulk ingestion.Recommendation
Proceed with a pilot. Install MemPalace on Beta, initialize a palace for
bezalel/hermes, and mine 1-2 weeks of session transcripts. Measure:If the pilot proves valuable, expand to Alpha and other wizard environments. Consider automating nightly mining via the existing
nightly_watch.pyheartbeat.References
pip install mempalacePR #1048 — groq