Files
mempalace/.claude-plugin
mvalentsev d17d14d8d9 fix(hooks): add bounded timeout to plugin Stop/PreCompact (#1465)
The `.claude-plugin/hooks/hooks.json` Stop and PreCompact entries
shipped without an explicit `timeout`, so a hung `mempalace hook
run` (reported on Windows under CLI/plugin version drift) blocks
the Claude Code UI for the full 600s `"type": "command"` default.

Set explicit bounds: Stop = 30s (fire-and-forget save path with
synchronous chromadb diary write, detached mine via _spawn_mine),
PreCompact = 90s (60s inner _mine_sync subprocess timeout in
mempalace/hooks_cli.py plus a 30s slack so legitimate mines for
users with MEMPAL_DIR are not truncated mid-flight).

Schema test in tests/test_claude_plugin_hook_config.py pins both
per-event (floor, ceiling) bounds and catches future events added
to the plugin config without a registered bounds entry.
2026-05-13 22:53:48 +05:00
..
2026-05-09 21:11:13 -03:00
2026-05-09 21:11:13 -03:00

MemPalace Claude Code Plugin

A Claude Code plugin that gives your AI a persistent memory system. Mine projects and conversations into a searchable palace backed by ChromaDB, with 19 MCP tools, auto-save hooks, and 5 guided skills.

Prerequisites

  • Python 3.9+

Installation

Claude Code Marketplace

claude plugin marketplace add MemPalace/mempalace
claude plugin install --scope user mempalace

Local Clone

claude plugin add /path/to/mempalace

Post-Install Setup

After installing the plugin, run the init command to complete setup (installs the mempalace package via uv tool or pip, configures MCP, etc.):

/mempalace:init

Available Slash Commands

Command Description
/mempalace:help Show available tools, skills, and architecture
/mempalace:init Set up MemPalace -- install, configure MCP, onboard
/mempalace:search Search your memories across the palace
/mempalace:mine Mine projects and conversations into the palace
/mempalace:status Show palace overview -- wings, rooms, drawer counts

Hooks

MemPalace registers two hooks that run automatically:

  • Stop -- Saves conversation context every 15 messages.
  • PreCompact -- Preserves important memories before context compaction.

Set the MEMPAL_DIR environment variable to a directory path to automatically run mempalace mine on that directory during each save trigger.

MCP Server

The plugin automatically configures a local MCP server with 19 tools for storing, searching, and managing memories. No manual MCP setup is required -- /mempalace:init handles everything.

Full Documentation

See the main README for complete documentation, architecture details, and advanced usage.