Agent Memory

👤 dennis-da-menace 📦 v1.0.0 ⭐ 4.4 ⬇️ 117.5K 下載
🤖 AI-Agent 免費

📖 技能介紹

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

    想要更強大的技能外掛,就來小蔥技能站7w4.net看看吧。

  • 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")

🤖 AI 評測

這個 Skill 質量不錯,核心功能完整,文件和測試都比較齊全。它能幫助 AI 記住重要資訊、從錯誤中學習、跟蹤人物專案等,使用簡單方便。主要不足是 Skill 本身的說明文件比較簡單,安裝使用指南不夠詳細;另外命令列工具功能也不夠完整。對於想為 AI Agent 新增記憶功能的開發者來說,這是一個值得一試的基礎元件。

📊 多維度評分

適應性4.4
規範性4.2
有效性4.7
可靠性4.2
可信度4.8

📁 包含檔案 (11 個)

📄 README.md 5.5 KB
📄 SKILL.md 1.4 KB
📄 _meta.json 131 B
📄 cli/entity.py 3.5 KB
📄 cli/fact.py 3.4 KB
📄 cli/learn.py 2.3 KB
📄 examples/basic_usage.py 2.8 KB
📄 requirements.txt 48 B
📄 src/__init__.py 212 B
📄 src/memory.py 21.6 KB
📄 tests/test_memory.py 5.1 KB