AgentDB memory system with HNSW vector search. Provides 150x-12,500x faster pattern retrieval, persistent storage, and semantic search capabilities for learning
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-memory-management-c1a792e98f42 ,按照其中的说明把「memory-management」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
AgentDB memory system with HNSW vector search. Provides 150x-12,500x faster pattern retrieval, persistent storage, and semantic search capabilities for learning and knowledge management.
Store a pattern or knowledge item in memory
npx @claude-flow/cli memory store --key "[key]" --value "[value]" --namespace patterns
Example:
npx @claude-flow/cli memory store --key "auth-jwt-pattern" --value "JWT validation with refresh tokens" --namespace patterns
Search memory using semantic similarity
npx @claude-flow/cli memory search --query "[search terms]" --limit 10
Example:
npx @claude-flow/cli memory search --query "authentication best practices" --limit 5
Retrieve a specific memory entry by key
npx @claude-flow/cli memory get --key "[key]" --namespace [namespace]
Example:
npx @claude-flow/cli memory get --key "auth-jwt-pattern" --namespace patterns
List all entries in a namespace
npx @claude-flow/cli memory list --namespace [namespace]
Example:
npx @claude-flow/cli memory list --namespace patterns --limit 20
Delete a memory entry
npx @claude-flow/cli memory delete --key "[key]" --namespace [namespace]
Initialize HNSW vector search index
npx @claude-flow/cli memory init --enable-hnsw
Show memory usage statistics
npx @claude-flow/cli memory stats
Export memory to JSON
npx @claude-flow/cli memory export --output memory-backup.json
| Script | Path | Description |
|---|---|---|
memory-backup | .agents/scripts/memory-backup.sh | Backup memory to external storage |
memory-consolidate | .agents/scripts/memory-consolidate.sh | Consolidate and optimize memory |
| Document | Path | Description |
|---|---|---|
HNSW Guide | docs/hnsw.md | HNSW vector search configuration |
Memory Schema | docs/memory-schema.md | Memory namespace and schema reference |