Overview
- Skill Key
- dennis-da-menace/agent-memory
- Author
- dennis-da-menace
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/dennis-da-menace/agent-memory
- Latest Commit SHA
- 96133c0447e112a87f23949d5a494704be965a62
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Agent Memory 技能。 若已安装,则直接安装 Agent Memory 技能。
# AgentMemory Skill
Persistent memory system for AI agents. Remember facts, learn from experience, and track entities across sessions.
## Installation
```bash
clawdhub install agent-memory
```
## Usage
```python
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:
```markdown
## 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")`
# 🧠 AgentMemory
**Persistent Memory for AI Agents**
[](https://opensource.org/licenses/MIT)
[](https://www.python.org/downloads/)
[](https://clawdhub.com)
Every AI agent session starts fresh. We forget learnings, repeat mistakes, and lose context. **AgentMemory** solves this.
Built for [OpenClaw](https://github.com/openclaw/openclaw) and [Clawdbot](https://github.com/clawdbot/clawdbot) agents, but works with any LLM-powered system.
## ✨ Features
- **📝 Facts** - Store and recall information across sessions
- **🎓 Lessons** - Learn from successes and failures
- **👤 Entities** - Track people, projects, and preferences
- **🔍 Semantic Search** - Find relevant memories fast (FTS5)
- **🧹 Auto-cleanup** - Forget stale information automatically
- **📦 Zero Dependencies** - Just Python + SQLite
## 🚀 Quick Start
```python
from agent_memory import AgentMemory
# Initialize (creates ~/.agent-memory/memory.db)
mem = AgentMemory()
# Remember facts
mem.remember("Boss prefers brief status updates", tags=["preference", "communication"])
mem.remember("API rate limit is 100 req/min", tags=["technical", "api"])
# Learn from experience
mem.learn(
action="Used RSI momentum strategy for crypto trading",
context="trading",
outcome="negative",
insight="RSI alone is insufficient, need confirmation signals"
)
# Track entities
mem.track_entity("Alex", "person", {
"role": "boss",
"timezone": "America/New_York",
"communication_style": "brief and direct"
})
# Recall relevant memories
facts = mem.recall("how does boss like updates?")
# → Returns facts about boss preferences
lessons = mem.get_lessons(context="trading", outcome="negative")
# → Returns failed trading lessons to avoid repeating mistakes
# Stats
print(mem.stats())
# → {'active_facts': 42...
youmind-openlab
AI skill for OpenClaw & Claude Code — recommend from 10000+ Nano Banana Pro (Gemini) image prompts. Smart search by use case, content remix, sample images.
23blocks-os
AI Agent Orchestrator with Skills System - Give AI Agents superpowers: memory search, code graph queries, agent-to-agent messaging. Manage Claude, Codex or any AI Agent from one dashboard. Move Agents between computers and locations
hashgraph-online
AI agent skills for the Universal Registry - search, chat, and register 72,000+ agents across 14+ protocols. Works with Claude, Codex, Cursor, OpenClaw, and any AI assistant.
rito-w
A cross-platform skills manager for AI IDEs. Search marketplace, download locally, and install to Claude, Cursor, Windsurf, and more with one click.
besoeasy
Battle-tested skill library for AI agents. Save 98% of API costs with ready-to-use code for crypto, PDFs, search, web scraping & more. No trial-and-error, no expensive APIs.
zeropointrepo
YouTube Transcript API skills for AI agents. Get transcripts, search videos, browse channels. Works with OpenClaw, ClawdBot, Claude Code, Cursor, Windsurf.