← 返回 Skills 市场
Mempalace Memory
作者
mars82311111
· GitHub ↗
· v1.1.0
· MIT-0
91
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install mempalace-memory
功能描述
基于MemPalace融合SuperMem增强层,提供自动hook注入、多样性重排、相似度去重和高效上下文记忆管理。
安全使用建议
This skill is plausibly a local-memory enhancement, but it makes strong assumptions about the environment (hardcoded /Users/mars paths, Python site-packages, local Ollama at http://localhost:11434, and local ChromaDB paths). Before installing or activating: 1) Review the three Python scripts line-by-line (they will execute on your machine and access local files and DBs). 2) Replace or parameterize hardcoded paths (MEMPALACE_CLI, sys.path inserts) to match your system or remove them. 3) Ensure Ollama/chroma services are intended and secured (they are contacted locally via curl/subprocess). 4) Back up any local ~/.mempalace or ~/.super-mem data you care about; the scripts include deletion/forget functionality. 5) Prefer running first in a sandbox or test account, and only register the hook under ~/.openclaw/hooks when you trust the code. If you want, provide the full remainder of the truncated mempalace_cli.py (credential filter section) so I can re-evaluate any missing behaviors.
功能分析
Type: OpenClaw Skill
Name: mempalace-memory
Version: 1.1.0
The skill bundle implements a sophisticated memory retrieval and storage system (MemPalace/SuperMem) for an AI agent. It features proactive security measures, including regex-based credential filtering in `mempalace_cli.py` and `super_mem_cli.py` to prevent the accidental storage of GitHub tokens or passwords. While the scripts utilize `subprocess` to interact with local binaries and `curl` to communicate with a local Ollama instance (localhost:11434), these actions are strictly aligned with the stated purpose of managing a local vector database and generating embeddings. The presence of hardcoded paths (e.g., `/Users/mars/`) indicates a personalized configuration rather than malicious intent.
能力标签
能力评估
Purpose & Capability
The name/description (memory retrieval + MMR/dedup) aligns with the included scripts (search, dedup, mmr, strip, ChromaDB bridge). However the code hardcodes paths tied to a specific developer environment (/Users/mars/Library/Python/3.9/bin/mempalace, sys.path insert to /Users/mars/...site-packages) and references local storage locations (~/.mempalace, ~/.super-mem, ~/.openclaw) and a local Ollama endpoint. Those hardcoded environment assumptions are not justified by the skill metadata (which declares no required binaries or env) and are likely to fail or cause unintended file access on other machines.
Instruction Scope
SKILL.md instructs running the packaged Python scripts and registering a hook under ~/.openclaw/hooks/... and the scripts do exactly that: they call a local mempalace CLI, access local ChromaDB stores, read/inspect files (source file paths, identity file, workspaces) and call a local embeddings endpoint (http://localhost:11434). The instructions and code also reference creating/reading ~/.mempalace/identity.txt and deleting memories (ChromaDB). While these operations are consistent with a memory skill, they grant the skill broad local file and DB access and assume specific local services; the instructions do not ask for explicit confirmation or provide a safe fallback for environments where these paths/services are absent.
Install Mechanism
There is no formal install spec (instruction-only), which limits automatic risk from downloads. But the skill ships executable Python scripts that will be executed by the agent (via /usr/bin/python3). Those scripts depend on external binaries/services (mempalace CLI at a hardcoded path, Ollama embedding endpoint, chromadb/persistent client). Because the skill contains runnable code, it will execute with the agent's local file and network privileges if invoked — review the code before running.
Credentials
The skill declares no environment variables or credentials, which is appropriate, but the code inspects and manipulates local files and local ChromaDB stores (e.g., ~/.mempalace/palace, ~/.super-mem/chroma, ~/.openclaw/workspace). It also embeds an explicit reference to a developer's Python binary location and site-packages. These file-system accesses are broad relative to the metadata (no explicit permission/consent steps) and could expose or modify local data. The scripts include credential-detection/filtering code (masking patterns) which indicates they may process data that contains secrets — that makes the local data access capability more sensitive.
Persistence & Privilege
The skill is not forced-always and does not request elevated platform privileges. However SKILL.md expects a hook file at ~/.openclaw/hooks/mempalace-recall/handler.ts to be installed/registered for automatic invocation; that implies persistent integration with the agent if you or the integrator place that file. The skill itself does not include an install step to create system-wide effects, but following the document will involve adding a persistent hook and allowing scripts to access local storages.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install mempalace-memory - 安装完成后,直接呼叫该 Skill 的名称或使用
/mempalace-memory触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
### v1.1.0
- Updated `mempalace_cli.py` (details not specified; see diff for code-specific changes).
- No user-facing command, architecture, or documentation changes detected.
- Core skill functionality and usage unchanged from previous release.
v1.0.1
v1.0.1
- Updated `mempalace_cli.py`; minor adjustments and cleanup.
- No changes to overall features or user-facing behavior.
- Documentation and CLI usage remain unchanged.
v1.0.0
MemPalace Memory Skill 1.0.0 (Enhanced v4) introduces major improvements and critical fixes:
- Fixed hook now correctly calls `mempalace_cli.py` instead of the legacy `super_mem_cli.py`
- Removed unsupported `--no-exact` argument from command calls
- Enabled MMR diversity reranking, Levenshtein deduplication (>85% similarity), and metadata cleaning by default
- Legacy `super_mem_cli.py` hook usage fully removed, with SuperMem now an optional standalone bridge
- Added creation of the identity file `~/.mempalace/identity.txt` and included full first-principles architecture documentation
元数据
常见问题
Mempalace Memory 是什么?
基于MemPalace融合SuperMem增强层,提供自动hook注入、多样性重排、相似度去重和高效上下文记忆管理。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 91 次。
如何安装 Mempalace Memory?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install mempalace-memory」即可一键安装,无需额外配置。
Mempalace Memory 是免费的吗?
是的,Mempalace Memory 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Mempalace Memory 支持哪些平台?
Mempalace Memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Mempalace Memory?
由 mars82311111(@mars82311111)开发并维护,当前版本 v1.1.0。
推荐 Skills