Search all your past Claude Code sessions with MemPalace The MemPalace project released a local-first memory tool that stores Claude Code conversation transcripts verbatim and makes them searchable in plain language, addressing the fact that sessions expire after 30 days without auto-save hooks. The CLI, installable via uv or pipx, indexes history into a structured hierarchy of wings, rooms and drawers backed by ChromaDB, and exposes commands such as init, mine, search, wake-up and audit, plus an MCP setup path for coding agents. The README recommends scoping each project to its own wing and adding a rule to CLAUDE.md instructing the agent to run mempalace search before answering questions about past decisions. Every Claude Code session starts from zero. You explain why you picked GraphQL, and three days later you explain it again. Worse, the MemPalace README warns that Claude Code sessions expire in 30 days unless you wire auto-save hooks. MemPalace https://github.com/MemPalace/mempalace is a local-first memory tool that stores your conversation history verbatim and lets you search it in plain language. Here is the CLI route, with the commands from the README. The short version is on the Deduped use-case page https://dedupedai.com/use-cases/mempalace-mempalace/give-claude-code-searchable-memory-of-past-sessions/?utm source=devto&utm medium=article&utm campaign=howto mempalace . MemPalace stores conversation text as it was written. It does not summarize or paraphrase. The index is structured: people and projects become wings, topics become rooms, and original content lives in drawers, so you can scope a search instead of querying one flat pile. The default backend is ChromaDB, and per the README nothing leaves your machine unless you opt in. The README recommends installing the CLI in an isolated environment, which avoids PEP 668 errors on Debian, Ubuntu and Homebrew Pythons: uv tool install mempalace or pipx install mempalace There is also an agent-guided route. Install the skills, then ask your coding agent to set it up: npx skills add MemPalace/mempalace The setup skill detects your system, installs the package, configures MCP and asks whether you want a private local palace or a shared one. Installing the skill alone does not install the CLI or MCP server, so let the agent finish the guided setup. Point it at a project: mempalace init ~/projects/myapp mempalace mine ~/projects/myapp Then mine your Claude Code transcripts: mempalace mine ~/.claude/projects/ --mode convos Use --wing to scope each project to its own wing, so a search about one app does not pull in another. Ask the question you keep re-explaining: mempalace search "why did we switch to GraphQL" You get the original conversation back, not a summary of it. To start a new session with context loaded, run: mempalace wake-up To check how well organized the palace is, run the read-only audit: mempalace audit A search tool only helps if the agent runs it. A prompt you can put in your first message or in CLAUDE.md : Before answering any question about past decisions in this repo, run mempalace search with the question and quote the matching original text. Do not delete or move any transcript files. For other ways to give Claude Code memory, compare with claude-mem https://dedupedai.com/use-cases/thedotmack-claude-mem/resume-claude-code-project-context/?utm source=devto&utm medium=article&utm campaign=howto mempalace , which summarizes instead of storing verbatim, or the Deduped page on Docker MCP memory for Claude Code https://dedupedai.com/use-cases/mempalace-mempalace/run-mempalace-as-a-docker-mcp-server/?utm source=devto&utm medium=article&utm campaign=howto mempalace . If your sessions keep losing context, this is a 20 minute fix: install, mine, search, and add one line to your rules file. Want the setup commands for 50 AI repos people actually ship with? Get the free AI Repos That Actually Ship pack: https://dedupedai.com/ship-pack/?utm source=devto&utm medium=article&utm campaign=shippack https://dedupedai.com/ship-pack/?utm source=devto&utm medium=article&utm campaign=shippack Get one email every Monday with the week's hottest AI repos and exactly how to use them: subscribe free at dedupedai.com https://dedupedai.com/join/?utm source=devto&utm medium=article&utm campaign=howto mempalace