mempalace
GitHub本地AI记忆系统技能,支持检索过往工作、保存事实及更新关系。提供查询、写入、失效等操作规范,并涵盖MemPalace在OpenClaw中的安装与故障排查指南。
Trigger Scenarios
Install
npx skills add MemPalace/mempalace --skill mempalace -g -y
SKILL.md
Frontmatter
{
"name": "mempalace",
"version": "3.12.0",
"homepage": "https:\/\/github.com\/MemPalace\/mempalace",
"metadata": {
"openclaw": {
"os": [
"darwin",
"linux",
"win32"
],
"emoji": "🏛",
"install": [
{
"id": "mempalace-pip",
"bins": [
"mempalace"
],
"kind": "uv",
"label": "Install MemPalace (Python, local ChromaDB)",
"package": "mempalace"
}
]
}
},
"description": "Recall past work or facts; save memories; update relationships; set up or troubleshoot MemPalace in OpenClaw.",
"user-invocable": true
}
MemPalace
- Choose the branch. For past work, people, preferences, decisions, or continuity, use the procedure below (canonical recall). Honor session-start context and known wing scope; omit uncertain filters. Skip recall for greenfield work. Use exposed tools with current schemas/permissions; logical names below may be namespaced. Reuse an existing connection without requiring a local CLI or another palace. Never substitute local data on a remote-only failure. Consult tool selection only for unfamiliar syntax/edge cases; ordinary recall needs no extra read. For explicitly requested installation or connection diagnosis, read setup instead. Proceed once the question and authorized operation are clear; do not run setup as a recall prerequisite.
- Retrieve only what answers the question. With preferred light MCP, use
palace_querywithKG,FIND, orDIARYfor relationships/time-bound facts, source words, or recent handoffs. Supported full MCP equivalents aremempalace_kg_query,mempalace_search, andmempalace_diary_read. Useactive_factsfor current-state KG answers withoutas_of; other facts can be historical or future. Keep search queries short and private: keywords or a question, never prompts or conversation dumps. Use small result limits and known filters. If KG is insufficient, try text; if scoped text misses, check or relax scope. Stop when answered, quoting stored words verbatim. If bounded fallback still misses, state what was checked, not that nothing exists. - Preserve source and temporal history when writing. Store exact verbatim
content, not a summary. For a confirmed single-valued replacement use
light
palace_execwithKG SUPERSEDE, or fullmempalace_kg_supersede: one atomic boundary closes the old value and opens its successor. UseKG INVALIDATE/mempalace_kg_invalidatefor an ending without replacement andKG ADD/mempalace_kg_addfor independent/coexisting facts. Never hand-roll invalidate-then-add replacements or rewrite uncertain conflicts. Check the result before claiming persistence; see tool selection for provenance, historical backfill, and exact temporal semantics. - Gate maintenance and recover safely. Import, bulk cleanup, destructive changes, and host settings require explicit user intent and confirmed scope. Preview supported bulk operations before applying; never change hook settings silently. Surface unavailable tools and errors rather than inventing history. Reconnect after external writes only for stale in-memory state; it is not corrupt-index repair. Follow canonical index recovery for corruption: guide an operator through offline SQLite-backed recovery, never an in-process rebuild or blind re-mining. Finish with a verified result or a concrete error and safe next step.
- Close substantive work without double filing. Check hook/save evidence
before recording continuity; use light
FILEDor fullmempalace_memories_filed_awaywhen needed. If not already saved, use a diary entry or a checkpoint combining verbatim items with agent continuity. Consult lightAAAK SPECor fullmempalace_get_aaak_specfor diary notation; compressed observations never replace verbatim source drawers. Confirm the save or report failure.
The references directory must travel with this skill; do not install only
SKILL.md. The shared protocol remains authoritative and is linked online so
installed bundles do not depend on sibling repository directories. If it cannot
be read, report that limitation before attempting its detailed recovery steps.
A skill guides model-invoked memory operations; it does not install auto-save
hooks or prove automatic recall injection. Verify optional automation separately.
MemPalace is local-first; use only user-approved storage and services, and do not
send private source content to an unconfigured external service.
License
MemPalace is MIT licensed. Created by Milla Jovovich, Ben Sigman, Igor Lins e Silva, and contributors.
Version History
-
4f7745a
Current 2026-11-03 00:25
优化文档以明确KG覆盖操作,精简技能描述并刷新行为导向的记忆协议说明。
-
f884dd4
2026-10-19 07:23
新增检索引导文档,优化上下文获取策略;版本升级至3.12.0。
-
beb945f
2026-09-22 12:42
新增批量获取和删除抽屉的工具,优化响应形状一致性,修复批量删除路径共享问题,并补充相关文档。
-
d9f0590
2026-09-03 08:10
将未发布的累积更改提升并合并至3.9.0版本发布日志中,同时升级所有包、插件、集成、徽章及锁文件的版本号。
-
4c1e6d0
2026-08-27 21:29
发布版本3.8.0,统一了多源版本号,并修复了uv.lock中onnxruntime-gpu依赖问题。
-
517a7a0
2026-08-19 23:47
版本更新至3.7.1,修复FIFO摄入挂起、完整性重采、ChromaDB缓存回退及信号处理问题;3.7.0增强单写者所有权、HNSW写入默认值及安全加固。
- aa89bd8 2026-07-25 05:32


