Mempalace

MemPalace/mempalace/.antigravity-plugin/skills/mempalace

作者 MemPalaced439d1e6d01e2680d79fe3f5de5a336722cec779無授權條款收錄於 2026年10月9日更新於 2026年10月9日

MemPalace — mine projects and conversations into a searchable memory palace. Use when the user asks about MemPalace, memory palace, mining memories, searching memories, palace setup, wings, rooms, or drawers; or when they want to recall past work that may already be filed in their palace.

AI 產生的概覽

引導代理使用 MemPalace 命令列與 MCP 工具來挖掘、檢索和稽核本機記憶宮殿。

功能
此技能引導代理操作 MemPalace——一個本機優先、可檢索的記憶宮殿。內容涵蓋首次初始化、將專案或對話目錄挖掘入庫、對逐字儲存的記憶進行語意檢索、狀態彙總,以及針對宮殿組織情況的稽核與修復流程。它依賴已安裝命令列工具內建的版本正確指示,並使用 MCP 工具執行即時操作。
適用情境
當使用者提到 MemPalace、記憶宮殿、挖掘或檢索記憶、宮殿設定、翼、房間或抽屜時使用。也適用於回想過去的工作、決策、筆記或對話(可能已歸檔在宮殿中),或查看宮殿的組織狀況。
執行需求
需要安裝 mempalace 命令列工具(uv tool install mempalace 或 pip install mempalace),即時操作還需可選的 MCP 伺服器二進位檔 mempalace-mcp 位於 PATH 中。發行檢查為選用,僅在啟用時連線 PyPI。此技能不附帶指令碼,僅為說明文件。

MemPalace

A searchable memory palace for AI — mine projects and conversations, then search them semantically. Verbatim storage, local-first, zero external API by default.

Prerequisites

Ensure mempalace is installed:

bash
mempalace --version

If not installed (uv recommended):

bash
uv tool install mempalace   # or: pip install mempalace

Dynamic, version-correct instructions

MemPalace exposes operation-specific instructions through the CLI so this skill stays accurate as MemPalace evolves. To get instructions for any operation:

bash
mempalace instructions <command>

Always prefer the CLI output over what is written here when the two disagree — the CLI is the single source of truth for the installed version.

Common operations

These are the six operations users ask for most often. Each one wraps a single MemPalace CLI subcommand. The mempalace instructions <name> form returns the full, version-correct guidance.

help — discover what MemPalace can do

bash
mempalace instructions help

Use when the user is new, unsure what's possible, or asks "what can you do".

init — first-run setup of the palace

bash
mempalace instructions init

Use when the user has just installed MemPalace, no palace exists yet, or the user explicitly asks to set up / configure / re-initialize their palace.

mine — ingest a project or conversation directory

bash
mempalace instructions mine

Use when the user wants to fold a project's files into their palace, or to ingest exported conversation transcripts into the palace as searchable memory.

search — find verbatim memories by semantic query

bash
mempalace instructions search

Use when the user wants to recall something from the past, find a previous decision, or rediscover code/notes/conversations they already wrote.

status — what's in the palace right now

bash
mempalace instructions status

Use when the user asks "what's in my palace", "how big is my palace", or wants a summary of wings, rooms, and drawer counts.

audit — how well organized the palace is, plus a repair session

bash
mempalace instructions audit

Use when the user asks how well organized or "messy" the palace is, why a scoped search or wake-up misses things, or wants to clean up wings, rooms, tunnels, hallways, or the knowledge graph. Read-only until the user decides each repair.

MCP tools (preferred over CLI)

Inside Antigravity, the MemPalace MCP server registers a rich set of tools. Use these instead of shelling out to the CLI for live operations (search, diary writes, drawer adds, knowledge graph queries, palace status). The MCP tools always reflect the current palace state without spawning a subprocess.

The MCP server is auto-registered when this plugin is installed at ~/.gemini/config/plugins/mempalace/. If the server does not appear in Antigravity's MCP store, run mempalace-mcp --version to verify the binary is on PATH, then restart Antigravity.

Design principles (verbatim from the project)

  • Verbatim always — never summarize, paraphrase, or lossy-compress user data.
  • Local-first, zero external API by default — extraction, embedding, and LLM-assisted refinement happen on the user's machine.
  • Privacy by architecture — the system never calls out to external services for core operations.
  • Performance budgets — hooks under 500ms; startup injection under 100ms.
  • Background everything — filing, indexing, and timestamps happen via hooks in the background; zero tokens spent on bookkeeping in the chat window.

If a request would violate any of these principles, refuse and explain — even if it would be technically convenient.

Release awareness

Release checks are opt-in. Ask before enabling weekly checks with mempalace update configure --enable --installer uv-tool (or pipx / pip, matching the installation); the default is disabled. Enabling checks contacts PyPI but sends no palace content, identity, or telemetry. When mempalace_status reports an available release, distinguish updates.server from a local proxy's updates.client. Use the local update plan only for the client scope; a remote server update must be planned and authorized on the hub host by its operator. Never install an update without explicit user authorization.

Palace health: audit and repair session

When the user asks how well organized the palace is, whether memory is "messy", why a scoped search or wake-up misses things, or invokes /mempalace:audit, run the audit and then offer a repair session:

bash
mempalace instructions audit

Follow the returned instructions. In short: run mempalace audit --json (read-only, safe while the MCP server is running), present the five layer scores and findings, then walk the user through repairs one structured question at a time with a recommended option first: merging wings and rooms spelled two ways, folding stub wings, deleting tunnels on generic tokens and self-link hallways, agreeing a knowledge-graph predicate vocabulary, and deciding how to handle generic-room concentration on the next mine. Moves over deletions, numbers before actions, verbatim content always. Re-run the audit at the end and write a diary entry with the before and after scores and every decision made.

來源與署名

來源:MemPalace/mempalace位於.antigravity-plugin/skills/mempalace提交d439d1e

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架