mempalace
它能做什么
这个技能指导你安装和设置 MemPalace,可以作为单台机器上的私人记忆,也可以作为多个智能体共用的记忆。适合希望获得引导式设置的人。
适用场景
- ✓当你第一次安装 MemPalace,并希望获得引导式设置的时候。
- ✓当你想通过 MCP 把 MemPalace 连接到你的 AI 工具的时候。
- ✓当你想设置一个供多个智能体共同使用的共享记忆库的时候。
技能链接
https://github.com/MemPalace/mempalace/blob/develop/.claude-plugin/skills/mempalace/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请一步步带我把 MemPalace 安装为我笔记本电脑上的私人记忆。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能会先检查已安装的内容,然后询问你想要哪种设置。它会安装命令行工具,建立记忆库,并把它连接到你的 AI 工具,同时不会重建已经存在的内容。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
MemPalace Setup
A guided, skill-first setup for a searchable memory palace. The user may have
installed this skill with npx skills add before the MemPalace Python package
or MCP server exists; that is the normal bootstrap path.
Setup protocol
1. Inspect before changing anything
- Detect the OS and current agent harness.
- Run
mempalace --version,uv --version, and an appropriate Python version check. Do not assume that an installed Python package is reachable on PATH. - Check for an existing palace and MCP registration. Never reinitialize or rebuild an existing palace just to make setup simpler.
2. Install the CLI when necessary
Prefer an isolated uv tool installation:
uv tool install mempalace
If uv is unavailable, use the PATH-visible Python installation:
python -m pip install mempalace
After installation, run mempalace --version. If it still is not reachable,
fix PATH or use the matching uv tool run invocation before continuing.
3. Choose the topology with the user
Ask which outcome they want unless it is already clear:
- private local palace — one machine, local stdio MCP;
- shared-brain hub — this machine owns the palace and serves the fleet;
- client joining an existing hub — this machine connects to a hub owned elsewhere.
Also ask which project or conversation corpus should be initialized, offering the current working directory as the default. A shared-brain client does not initialize a second copy of the owner's palace.
4. Run version-correct initialization
MemPalace provides dynamic, version-correct instructions via the CLI. To get instructions for any operation:
mempalace instructions <command>
Where <command> is one of: help, init, mine, search, status.
Run the appropriate instructions command, then follow the returned instructions step by step.
For a new local palace or hub, follow mempalace instructions init, configure
the selected corpus, then verify with mempalace status. For a client, skip
local initialization and obtain the hub URL and bearer token from the user.
5. Configure MCP
For local stdio integrations, use the command printed by mempalace mcp.
Typical registrations are:
claude mcp add mempalace -- mempalace-mcp
codex mcp add mempalace -- mempalace-mcp
For a shared-brain hub, guide the user through mempalace serve and the
official shared-brain guide. Do not expose a non-loopback server without
authentication. For a client joining an existing hub, configure the harness's
HTTP MCP transport with the supplied bearer token; never print or store that
token in project instructions, drawers, or logstream events.
Restart or reconnect the harness when required, then verify that the live MCP tool list includes MemPalace tools. Package installation alone is not proof that MCP is connected.
6. Configure shared-brain identity and coordination
When shared-brain mode is selected:
Agree on a stable
host:harness:projectidentity: lowercase host label (machine), harness family (claude,codex,grok,antigravity, …), and the current workspace as project. Two windows in the same project are one actor.Render the canonical rules with:
mempalace rules --host <host> --harness <harness> --project <example>Default
--mcp fullmatches the 47-toolmempalace-mcpserver this skill registers. If the user opted intomempalace-light-mcp, re-render with--mcp lightinstead. Replace an existing<!-- mempalace-shared-brain -->block instead of appending a duplicate.Install the rendered marker-delimited block in the harness's durable agent instructions (Claude
~/.claude/CLAUDE.md, Codex~/.codex/AGENTS.md, Grok~/.grok/AGENTS.md, Antigravity~/.gemini/config/GEMINI.md).Check coordination access with a read-only
mempalace logstream listor the equivalent MCP event-list call.Interactive sessions are declared-idle: they sweep the inbox on collab / before long tasks and do not arm a watcher at session start. Arm
mempalace logstream watch --agent <host>:<harness>:<project>(the CLI defaults a sanitized--state-file) only when the user asked to listen, the agent claimed a task, or it delegated. A remote-only MCP client must instead loop onmempalace_event_wait, preserving the last event id assince_event_id; never poi
常见问题
它会删除我现有的记忆库吗?
不会。该技能从不会为了简化设置而重新初始化或重建已有的记忆库。
有哪些设置选项?
你可以选择私有本地记忆库、为其他机器提供服务的共享中心,或加入现有中心。
它使用哪种安装工具?
它优先使用 uv 进行隔离安装,如果没有 uv,则退回使用 pip。
详情
作者的原始描述
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing hub. Use for first-time setup, MCP wiring, mining, status, palace audit and repair, wings, rooms, drawers, shared-brain identity, or logstream readiness.
repo: MemPalace/mempalace
热度
- GitHub 星标
- 60k
- 排名
- #3177
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
mempalace-recall
60k帮你的智能体在回答有关过去工作、人物、项目或早先决定的问题之前,先搜索你的 MemPalace 记忆库。
mempalace
60k帮你的智能体安装和使用 MemPalace,这是一个可搜索的记忆库,用于保存你的项目和对话,包括导入和搜索。
mempalace-task
60k帮你的智能体通过 MemPalace logstream 在智能体之间创建、交接和跟踪任务,让工作在它们之间清楚地流转。
mempalace
60k帮你的智能体回忆过去的工作或事实、保存记忆、更新人与项目之间的关联,并排查 MemPalace 的问题。