AgentMemory Skill

Store and retrieve tagged facts, lessons, and entity profiles in a SQLite database.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/dingdyan/openclaw-workspace-v2 --skill agentmemory-skill-dingdyan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: AgentMemory Skill
Source: https://github.com/dingdyan/openclaw-workspace-v2/tree/main/skills/agent-memory
Command: npx skills add https://github.com/dingdyan/openclaw-workspace-v2 --skill agentmemory-skill-dingdyan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents AI agents from losing important context between sessions by providing persistent memory for facts, learned outcomes, and tracked entities.

Core Features & Use Cases

  • Facts with tags + confidence: Store reusable knowledge (e.g., preferences, technical constraints) and retrieve it later using full-text search.
  • Lessons from experience: Record what worked or failed in a given context, then review negative lessons to avoid repeating mistakes.
  • Entity tracking: Maintain stable profiles for people/projects with attributes and link related facts to them.
  • Auto-expiry and cleanup: Remove stale information using expiration and access-based forgetting to keep memory relevant.
  • Use Cases: Preference learning, error prevention after failures, and relationship/context continuity for repeated interactions.

Quick Start

Ask the AI assistant to initialize AgentMemory, store a fact, and recall the most relevant memories for a question.

Frequently Asked Questions about AgentMemory Skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist agent memory and context across different sessions?

To persist agent memory across sessions, you can use a local SQLite-backed database to store facts, lessons, and entity profiles. This enables the retrieval of context during new conversations or tasks.

What is the best way to prevent AI agents from repeating past mistakes?

Preventing AI agents from repeating mistakes involves recording lessons learned from negative outcomes. You can store these experiences in a database and review negative lessons to avoid repeating errors in similar contexts.

Can I track user preferences and entity attributes using SQLite full-text search?

Yes, you can track user preferences and entity attributes using a SQLite database. It supports FTS5-based semantic-style text search to retrieve tagged facts and maintain stable profiles for people or projects.

Does agent memory support automatic cleanup of stale facts and lessons?

Agent memory supports automatic cleanup of stale facts and lessons through optional expiration and access-based forgetting. This removes outdated information to keep the stored knowledge relevant.

How do I store reusable technical constraints and retrieve them later?

You can store reusable technical constraints as facts with tags and confidence levels. Later, retrieve this knowledge using full-text search to recall relevant context for ongoing tasks.