agent-memory

生产级 Agent 记忆系统 — 6维坐标编码 + 语义检索 + 智能压缩

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "agent-memory" with this command: npx skills add concisegjh/super-memory

Agent Memory Skill

为 OpenClaw Agent 提供结构化记忆能力。替代 MEMORY.md 的扁平文件方案,提供语义搜索、自动分类、记忆衰减、因果链等高级功能。

快速使用

# 写入记忆
python3 ~/.openclaw/workspace/agent-memory/cli.py remember "我决定用 Chroma 做向量库"

# 检索记忆
python3 ~/.openclaw/workspace/agent-memory/cli.py recall "用户选了什么向量库"

# 组装上下文(直接拼入 system prompt)
python3 ~/.openclaw/workspace/agent-memory/cli.py context "当前对话主题"

# 查看统计
python3 ~/.openclaw/workspace/agent-memory/cli.py stats

# 执行维护(衰减分析 + 去重 + 自修复)
python3 ~/.openclaw/workspace/agent-memory/cli.py maintain

# 压缩老记忆
python3 ~/.openclaw/workspace/agent-memory/cli.py compress

# 生成图谱
python3 ~/.openclaw/workspace/agent-memory/cli.py graph --format ascii

集成方式

对话中自动使用

当用户谈论技术决策、踩坑、偏好时,自动写入记忆:

python3 ~/.openclaw/workspace/agent-memory/cli.py remember "内容" --importance high

对话前检索上下文

在回复用户之前,检索相关记忆:

python3 ~/.openclaw/workspace/agent-memory/cli.py context "用户的问题"

Cron 定期维护

设置 cron job 每天执行维护:

  • 衰减分析
  • 批量去重
  • 自我修复(矛盾/过时检测)

数据存储

  • SQLite 数据库: ~/.openclaw/workspace/agent-memory/memory.db
  • 向量缓存: ~/.openclaw/workspace/agent-memory/chroma_db/
  • 质量统计: ~/.openclaw/workspace/agent-memory/quality_stats.json
  • 每日索引: ~/.openclaw/workspace/agent-memory/daily_index/

依赖

Python 3.10+(已安装)。可选:chromadb + sentence-transformers(语义搜索)。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Research

Cognee Memory System

AI知识引擎 - 6行代码实现记忆系统。remember/recall/forget/improve循环,向量+图搜索,支持OpenClaw插件。

Registry SourceRecently Updated
660Profile unavailable
Research

MemCore

Agent long-term memory system with five-layer architecture (Context/Task/User/Knowledge/Experience). Use when building agents that need persistent memory, ta...

Registry SourceRecently Updated
1400Profile unavailable
Automation

Openclaw Memory Master

AI Memory System with LLM Wiki

Registry SourceRecently Updated
2231Profile unavailable
Automation

Project Trident

Four-tier persistent memory architecture for OpenClaw agents. Implements LCM-backed durability, hierarchical .md file organization, agentic signal routing, a...

Registry SourceRecently Updated
1351Profile unavailable