CLI ToolsMay 12, 2026·2 min read

MemPalace — Local-First AI Memory CLI

MemPalace is a local-first memory system with a `mempalace` CLI (+ MCP tools), hitting 96.6% R@5 on LongMemEval with no LLM required.

Agent ready

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 17/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
CLI Tool
Install
Stage only
Trust
Trust: Established
Entrypoint
Asset
Safe staging command
npx -y tokrepo@latest install ceb88da6-2067-5ba0-93d6-49a073b332fb --target codex

Stages files first; activation requires review of the staged README and plan.

Intro

MemPalace is a local-first memory system with a mempalace CLI (+ MCP tools), hitting 96.6% R@5 on LongMemEval with no LLM required.

  • Best for: teams that want durable memory across coding sessions (projects + Claude Code transcripts)
  • Works with: Python + uv/pip; CLI-first workflow; optional MCP tools for Claude Code/Desktop, Cursor, etc.
  • Setup time: 10–25 minutes

Practical Notes

  • Quant: LongMemEval raw retrieval recall is 96.6% R@5 (500 questions) without any LLM calls.
  • Quant: the README also reports 98.4% R@5 on a held-out 450-question split (Hybrid v4) with no LLM required.

Main

Use MemPalace like a “memory pipeline”, not a chat add-on:

  1. Mine two sources: your repo + your agent transcripts (Claude Code sessions).
  2. Search before you re-explain: ask MemPalace for the decision history instead of retyping context.
  3. Wake up at session start: run mempalace wake-up and paste only the returned context into the new chat.

Watchouts

  • The project warns about impostor domains; treat installers outside GitHub/PyPI/docs as untrusted.
  • Memory can still leak secrets if you mine private folders into a shared store—scope mines per project.

FAQ

Q: Is an LLM required to get value? A: No. The raw retrieval benchmark reported is 96.6% R@5 with no LLM calls.

Q: What should I mine first? A: Start with one repo and one transcript folder, then expand only after retrieval stays high-signal.

Q: How do I keep memory scoped? A: Mine per project path and avoid mixing unrelated repos into one shared store.

🙏

Source & Thanks

Source: https://github.com/MemPalace/mempalace > License: MIT > GitHub stars: 52,030 · forks: 6,855

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets