用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mnemon-dev/mnemon --skill mnemon命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | mnemon |
| description | Persistent memory CLI for LLM agents. Store facts, recall past knowledge, link related memories, manage lifecycle. |
| metadata | {"openclaw":{"emoji":"🧠","requires":{"bins":"[Truncated]"},"install":["[Truncated]","[Truncated]"]}} |
Homebrew (macOS / Linux):
brew install mnemon-dev/tap/mnemon
Go install:
go install github.com/mnemon-dev/mnemon@latest
mnemon setup --target openclaw --yes
This single command deploys all components:
~/.openclaw/skills/mnemon/SKILL.md~/.openclaw/hooks/mnemon-prime/ (agent:bootstrap — injects behavioral guide)~/.openclaw/extensions/mnemon/ (remind, nudge, compact hooks)~/.mnemon/prompt/ (guide.md, skill.md)Restart the OpenClaw gateway to activate.
Edit ~/.mnemon/prompt/guide.md to tune recall/remember behavior.
Plugin hooks are configured in ~/.openclaw/openclaw.json:
{
"plugins": {
"entries": {
"mnemon": {
"enabled": true,
"config": {
"remind": true,
"nudge": true,
"compact": false
}
}
}
}
}
| Hook | Default | Description |
|---|---|---|
remind | on | Recall relevant memories + remind agent on each message |
nudge | on | Suggest remember sub-agent after each reply |
compact | off | Save key insights before context compaction |
mnemon setup --eject --target openclaw --yes
mnemon remember "<fact>" --cat <cat> --imp <1-5> --entities "e1,e2" --source agent
action (added/updated/skipped), semantic_candidates, causal_candidates.causal_candidates: does a genuine cause-effect relationship exist? causal_signal is regex-based and prone to false positives — only link if the memories are truly causally related.semantic_candidates: are these memories meaningfully related? High similarity alone is not sufficient — skip candidates that share keywords but discuss unrelated topics.mnemon link <id> <candidate> --type <causal|semantic> --weight <0-1> [--meta '<json>']mnemon recall "<query>" --limit 10mnemon remember "<fact>" --cat <cat> --imp <1-5> --entities "e1,e2" --source agent
mnemon link <id1> <id2> --type <type> --weight <0-1> [--meta '<json>']
mnemon recall "<query>" --limit 10
mnemon search "<query>" --limit 10
mnemon import --dry-run <file>
mnemon import <file>
mnemon forget <id>
mnemon related <id> --edge causal
mnemon gc --threshold 0.4
mnemon gc --keep <id>
mnemon status
mnemon log
mnemon store list
mnemon store create <name>
mnemon store set <name>
mnemon store remove <name>
When the user asks to import old chats, notes, or exported context, create a
memory_draft.json with schema_version: "1", insights entries containing
content, category, importance, tags, entities, and optional
created_at, plus optional edges using source_index, target_index,
edge_type, weight, and reason. Run mnemon import --dry-run <file>,
then run mnemon import <file> only after validation passes. After import,
verify with mnemon status and a focused mnemon search or mnemon recall.
Check the output errors field because imports can partially succeed.
exec tool to run mnemon commands.preference · decision · insight · fact · contexttemporal · semantic · causal · entity