← 返回 Skills 市场
Deep Memory
作者
halfmoon82
· GitHub ↗
· v1.0.0
· MIT-0
291
总下载
1
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install deep-memory
功能描述
One-click clone of a production-grade semantic memory system: HOT/WARM/COLD tiered storage + Qdrant vector DB + Neo4j graph DB + qwen3-embedding. Enables cro...
使用说明 (SKILL.md)
Deep Memory Skill 🧠
A production-grade semantic memory system for AI agents. Combines tiered file storage with vector search and graph relationships.
Architecture
┌─────────────────────────────────────┐
│ File Layer (always-on) │
│ HOT / WARM / COLD Markdown files │
│ semantic_memory.json │
└──────────────┬──────────────────────┘
↓
┌─────────────────────────────────────┐
│ Vector Layer (Docker) │
│ Qdrant: semantic similarity search │
│ Collection: semantic_memories │
│ Dimensions: 4096 (qwen3-embedding) │
└──────────────┬──────────────────────┘
↓
┌─────────────────────────────────────┐
│ Graph Layer (Docker) │
│ Neo4j: entity relationship memory │
│ Constraints: Memory.key + Entity.id │
└─────────────────────────────────────┘
↓
┌─────────────────────────────────────┐
│ Embedding Model (Ollama) │
│ qwen3-embedding:8b (4096 dims) │
│ Local, free, no API calls │
└─────────────────────────────────────┘
Prerequisites
- Docker Desktop (running)
- Ollama installed (
brew install ollamaon macOS)
Usage
Setup (first time)
python3 ~/.openclaw/workspace/skills/deep-memory/scripts/setup.py
Write a memory
from deep_memory import MemorySystem
mem = MemorySystem()
mem.store("user_sir", "Sir prefers direct communication, no pleasantries", tags=["preference", "communication"])
Search memories
results = mem.search("how does Sir like to communicate?", top_k=5)
for r in results:
print(r['content'], r['score'])
Joint query (vector + graph)
results = mem.joint_query("investment strategy", entity="Sir", top_k=3)
Setup Flow
When triggered, the setup script will:
- Check Docker is running
- Check Ollama is installed and pull qwen3-embedding:8b if needed
- Start Qdrant container (port 6333/6334)
- Start Neo4j container (port 7474/7687)
- Create Qdrant collection (semantic_memories, 4096 dims, Cosine)
- Create Neo4j constraints (Memory.key, Entity.id)
- Create HOT/WARM/COLD directory structure
- Copy Python toolkit to workspace
- Run end-to-end verification test
Agent Integration
In your SOUL.md or AGENTS.md, add:
## Memory Retrieval
Before answering questions about prior work, decisions, or preferences:
1. Run: python3 ~/.openclaw/workspace/.lib/qdrant_memory.py search "\x3Cquery>"
2. Combine with memory_search tool results
3. Use top results as context
安全使用建议
This skill largely does what it claims, but review these points before installing:
- The registry metadata does not list Docker or Ollama even though SKILL.md and the setup script require them. Don't assume the environment already meets prerequisites.
- The setup script will automatically pull and run Docker images and download an Ollama model (large downloads). It uses qdrant/qdrant:latest (mutable); consider changing to a pinned image tag if you install.
- Neo4j is started with NEO4J_AUTH=none (no password) and both Qdrant and Neo4j are published on host ports (6333/6334 and 7474/7687). On a machine with open network exposure this could be accessible to others—run on an isolated host, VM, or ensure firewall rules block external access.
- The script will attempt to run 'brew install ollama' automatically if ollama is missing. Expect system-level changes if you allow it.
- If you decide to proceed: inspect scripts/setup.py and the written docker-compose file, run the setup in a controlled environment (local VM or container host), pin image/model versions, and remove/stop the containers and volumes when you no longer need the service.
If you want, I can: (1) show the exact lines to change to pin qdrant and disable NEO4J_AUTH=none, or (2) produce a safe checklist and commands to run the setup in an isolated Docker network or VM.
功能分析
Type: OpenClaw Skill
Name: deep-memory
Version: 1.0.0
The 'deep-memory' skill provides a local semantic memory system using Qdrant, Neo4j, and Ollama. The setup.py script automates the deployment of Docker containers and the installation of Ollama via Homebrew, which is consistent with its stated 'one-click' purpose. The Python toolkit (qdrant_memory.py) facilitates local vector and graph searches without any evidence of data exfiltration or malicious intent.
能力评估
Purpose & Capability
The SKILL.md, README, and scripts implement a Qdrant + Neo4j + local Ollama embedding memory system, which matches the skill description. However the registry metadata declared no required binaries/env; SKILL.md clearly requires Docker and Ollama. That metadata mismatch is an incoherence (the skill will actually need Docker & Ollama to work).
Instruction Scope
The setup script will: check Docker, attempt to install Ollama via brew, pull an Ollama model, write a docker-compose file into ~/.openclaw/workspace/.lib, run docker compose up to start Qdrant and Neo4j containers, create DB collections/constraints, create HOT/WARM/COLD directories, and copy a Python client into the user's workspace. Those actions modify local system state and start network services bound to host ports. The Neo4j container is started with NEO4J_AUTH=none (no authentication). All network calls in the client use localhost only, but exposing these services without auth on host ports is a security decision you should evaluate.
Install Mechanism
There is no formal install spec in the registry, but the included setup script pulls Docker images (qdrant/qdrant:latest and neo4j:5-community) and runs 'ollama pull' (model download). Using 'latest' for qdrant is fragile and can introduce supply-chain risk. These are downloads from public registries (Docker Hub, Ollama); that is expected for this functionality but still higher-risk than an instruction-only skill because binaries/images and model weights are fetched and executed on your host.
Credentials
The skill requests no secrets or external API credentials and the runtime only contacts localhost endpoints (Ollama, Qdrant, Neo4j). That's proportionate. However, the registry metadata omitted required runtime binaries (docker, ollama) referenced in SKILL.md and the script—another metadata mismatch that could mislead users about prerequisites.
Persistence & Privilege
The skill is not force-included (always:false) and does not request platform-level privileges. It writes files into the user's OpenClaw workspace (~/.openclaw/workspace/.lib), creates Docker volumes and containers, and leaves services running on host ports. Those are normal for a local infrastructure installer but they do create persistent local services that you must manage.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install deep-memory - 安装完成后,直接呼叫该 Skill 的名称或使用
/deep-memory触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of deep-memory: a one-click, production-grade semantic memory system for AI agents.
- Features HOT/WARM/COLD tiered storage, Qdrant vector DB, Neo4j graph DB, and qwen3-embedding for local, cross-session semantic retrieval and entity memory.
- Supports semantic similarity search and joint vector+graph queries.
- Easy setup via script; automatic validation and resource download.
- Integrates with AI agent workflows for memory-augmented prompting and contextual recall.
元数据
常见问题
Deep Memory 是什么?
One-click clone of a production-grade semantic memory system: HOT/WARM/COLD tiered storage + Qdrant vector DB + Neo4j graph DB + qwen3-embedding. Enables cro... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 291 次。
如何安装 Deep Memory?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install deep-memory」即可一键安装,无需额外配置。
Deep Memory 是免费的吗?
是的,Deep Memory 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Deep Memory 支持哪些平台?
Deep Memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Deep Memory?
由 halfmoon82(@halfmoon82)开发并维护,当前版本 v1.0.0。
推荐 Skills