Fast semantic memory system with JSON indexing, auto-consolidation, and <20ms search. Capture learnings, decisions, insights, events. Use when you need persistent memory across sessions or want to recall prior work/decisions.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install memory-system-v2或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install memory-system-v2⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/memory-system-v2/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: memory-system-v2 description: Fast semantic memory system with JSON indexing, auto-consolidation, and <20ms search. Capture learnings, decisions, insights, events. Use when you need persistent memory across sessions or want to recall prior work/decisions. homepage: https://github.com/austenallred/memory-system-v2 metadata: {"clawdbot":{"emoji":"🧠","requires":{"bins":["jq"]},"install":[{"id":"brew-jq","kind":"brew","formula":"jq","bins":["jq"],"label":"Install jq via Homebrew"}]}} ---
Fast semantic memory for AI agents with JSON indexing and sub-20ms search.
Memory System v2.0 is a lightweight, file-based memory system designed for AI agents that need to:
Built in pure bash + jq. No databases required.
# Install jq (required dependency)
brew install jq
# Copy memory-cli.sh to your workspace
# Already installed if you're using Clawdbot
Capture a memory:
./memory/memory-cli.sh capture \
--type learning \
--importance 9 \
--content "Learned how to build iOS apps with SwiftUI" \
--tags "swift,ios,mobile" \
--context "Building Life Game app"
Search memories:
./memory/memory-cli.sh search "swiftui ios"
./memory/memory-cli.sh search "build app" --min-importance 7
Recent memories:
./memory/memory-cli.sh recent learning 7 10
./memory/memory-cli.sh recent all 1 5
View stats:
./memory/memory-cli.sh stats
Auto-consolidate:
./memory/memory-cli.sh consolidate
New skills, tools, patterns, techniques you've acquired.
Example:
./memory/memory-cli.sh capture \
--type learning \
--importance 9 \
--content "Learned Tron Ares aesthetic: ultra-thin 1px red circuit traces on black" \
--tags "design,tron,aesthetic"
Choices made, strategies adopted, approaches taken.
Example:
./memory/memory-cli.sh capture \
--type decision \
--importance 8 \
--content "Switched from XP grinding to achievement-based leveling with milestones" \
--tags "life-game,game-design,leveling"
Breakthroughs, realizations, aha moments.
Example:
./memory/memory-cli.sh capture \
--type insight \
--importance 10 \
--content "Simple binary yes/no tracking beats complex detailed logging" \
--tags "ux,simplicity,habit-tracking"
Milestones, completions, launches, significant occurrences.
Example:
./memory/memory-cli.sh capture \
--type event \
--importance 10 \
--content "Shipped Life Game iOS app with Tron Ares aesthetic in 2 hours" \
--tags "shipped,life-game,milestone"
Key conversations, feedback, requests from users.
Example:
./memory/memory-cli.sh capture \
--type interaction \
--importance 7 \
--content "User requested simple yes/no habit tracking instead of complex quests" \
--tags "feedback,user-request,simplification"
memory/
├── memory-cli.sh # Main CLI tool
├── index/
│ └── memory-index.json # Fast search index
├── daily/
│ └── YYYY-MM-DD.md # Daily memory logs
└── consolidated/
└── YYYY-WW.md # Weekly consolidated summaries
{
"version": 1,
"lastUpdate": 1738368000000,
"memories": [
{
"id": "mem_20260131_12345",
"type": "learning",
"importance": 9,
"timestamp": 1738368000000,
"date": "2026-01-31",
"content": "Memory content here",
"tags": ["tag1", "tag2"],
"context": "What I was doing",
"file": "memory/daily/2026-01-31.md",
"line": 42
}
]
}
All 36 tests passed:
./memory-cli.sh capture \
--type <learning|decision|insight|event|interaction> \
--importance <1-10> \
--content "Memory content" \
--tags "tag1,tag2,tag3" \
--context "What you were doing"
./memory-cli.sh search "keywords" [--min-importance N]
./memory-cli.sh recent <type|all> <days> <min-importance>
./memory-cli.sh stats
./memory-cli.sh consolidate [--week YYYY-WW]
Memory System v2.0 is designed to work seamlessly with Clawdbot:
Auto-capture in AGENTS.md:
## Memory Recall
Before answering anything about prior work, decisions, dates, people, preferences, or todos: run memory_search on MEMORY.md + memory/*.md
Example workflow:
memory-cli.sh capturememory-cli.sh search "build yesterday"Capture every new skill, tool, or technique you learn:
./memory-cli.sh capture \
--type learning \
--importance 8 \
--content "Learned how to publish ClawdHub packages with clawdhub publish" \
--tags "clawdhub,publishing,packaging"
Record why you made specific choices:
./memory-cli.sh capture \
--type decision \
--importance 9 \
--content "Chose binary yes/no tracking over complex RPG quests for simplicity" \
--tags "ux,simplicity,design-decision"
Log major achievements:
./memory-cli.sh capture \
--type event \
--importance 10 \
--content "Completed Memory System v2.0: 36/36 tests passed, <20ms search" \
--tags "milestone,memory-system,shipped"
Auto-generate weekly summaries:
./memory-cli.sh consolidate --week 2026-05
# Only high-importance learnings
./memory-cli.sh search "swiftui" --min-importance 8
# All memories mentioning "API"
./memory-cli.sh search "API" --min-importance 1
# Decisions from last 7 days with importance ≥ 8
./memory-cli.sh recent decision 7 8
# See memory distribution
./memory-cli.sh stats
# Output:
# Total memories: 247
# By type: learning=89, decision=67, insight=42, event=35, interaction=14
# By importance: 10=45, 9=78, 8=63, 7=39, 6=15, 5=7
...
安装 Memory System V2 后,可以对 AI 说这些话来触发它
Help me get started with Memory System V2
Explains what Memory System V2 does, walks through the setup, and runs a quick demo based on your current project
Use Memory System V2 to fast semantic memory system with JSON indexing, auto-consolidation,...
Invokes Memory System V2 with the right parameters and returns the result directly in the conversation
What can I do with Memory System V2 in my data & analytics workflow?
Lists the top use cases for Memory System V2, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/memory-system-v2/ 目录(个人级,所有项目可用),或 .claude/skills/memory-system-v2/(项目级)。重启 AI 客户端后,用 /memory-system-v2 主动调用,或让 AI 根据上下文自动发现并使用。
Memory System V2 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Memory System V2 可免费安装使用。请查阅仓库了解许可证信息。
Fast semantic memory system with JSON indexing, auto-consolidation, and <20ms search. Capture learnings, decisions, insights, events. Use when you need persistent memory across sessions or want to recall prior work/decisions.
Memory System V2 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Memory System V2
Identifies repetitive steps in your workflow and sets up Memory System V2 to handle them automatically