agent-memory
/install peng-agent-memory
AgentMemory Skill
Persistent memory system for AI agents. Remember facts, learn from experience, and track entities across sessions.
Installation
clawdhub install agent-memory
Usage
from src.memory import AgentMemory
mem = AgentMemory()
# Remember facts
mem.remember("Important information", tags=["category"])
# Learn from experience
mem.learn(
action="What was done",
context="situation",
outcome="positive", # or "negative"
insight="What was learned"
)
# Recall memories
facts = mem.recall("search query")
lessons = mem.get_lessons(context="topic")
# Track entities
mem.track_entity("Name", "person", {"role": "engineer"})
When to Use
- Starting a session: Load relevant context from memory
- After conversations: Store important facts
- After failures: Record lessons learned
- Meeting new people/projects: Track as entities
Integration with Clawdbot
Add to your AGENTS.md or HEARTBEAT.md:
## Memory Protocol
On session start:
1. Load recent lessons: `mem.get_lessons(limit=5)`
2. Check entity context for current task
3. Recall relevant facts
On session end:
1. Extract durable facts from conversation
2. Record any lessons learned
3. Update entity information
Database Location
Default: ~/.agent-memory/memory.db
Custom: AgentMemory(db_path="/path/to/memory.db")
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install peng-agent-memory - After installation, invoke the skill by name or use
/peng-agent-memory - Provide required inputs per the skill's parameter spec and get structured output
What is agent-memory?
Provides persistent memory for AI agents to remember facts, learn from experience, and track entities across sessions. It is an AI Agent Skill for Claude Code / OpenClaw, with 335 downloads so far.
How do I install agent-memory?
Run "/install peng-agent-memory" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is agent-memory free?
Yes, agent-memory is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does agent-memory support?
agent-memory is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created agent-memory?
It is built and maintained by penglovemeng (@penglovemeng); the current version is v1.0.0.