agent-memory: Persistent memory for agents: facts, lessons, entities

By DennisClawHub

AgentMemory gives an AI agent a memory that lasts across sessions. It stores facts, records lessons from actions with their outcomes, and tracks people and projects as entities. The agent can search this memory when a new session starts.

AI agentsClawHub
Total downloads
36.2K
ClawHub
Last 7 days
191
▲ 18.6% vs the week before
Best 100 rank
—
Not in Best 100
Days in Best 100
0
out of 104 days tracked

What problem this skill solves

An agent starts each session without the facts, decisions, or lessons from earlier sessions. Users must repeat context, and the agent can repeat the same mistakes.

With this skill, the agent saves facts and lessons to a local database file. At the start of a session, it loads recent lessons, entity details, and relevant facts before it starts work.

Good for

  • An agent that works on the same project or with the same people over many sessions
  • Agents that should learn from failures and avoid repeating them
  • Agents that need to remember details about people or projects they meet

Not for

  • One-off tasks where earlier context is not needed
  • Setups where the memory must be shared across machines or users; SKILL.md does not describe this

Install this skill

agent-memory only

openclaw skills install @dennis-da-menace/agent-memory

Trend

Growing steadily
010020030019108/2809/2510/3011/27
Daily downloads, last 30 days
22
Daily downloads, last 30 days vs the 30 days before
+4.8%

How this skill works

  1. 1Create an AgentMemory object with the default database at `~/.agent-memory/memory.db`, or pass `db_path` to use another file.
  2. 2Store durable facts with `remember()` and optional tags.
  3. 3After an action, record what was done, the context, the outcome (positive or negative), and the insight with `learn()`.
  4. 4Track people or projects as entities with `track_entity()` and a dictionary of attributes.
  5. 5At session start, call `get_lessons()`, `recall()`, and check entity context so the agent loads relevant memory before work begins.
  6. 6At session end, store new facts, record lessons, and update entity information, as described in the Memory Protocol section of AGENTS.md or HEARTBEAT.md.

Are you the author of this skill? Add its rank to your GitHub repo

Best Skills

The badge updates every day and links back to this page.

[![Best Skills](https://linkly.ai/skills/badge/clawhub/agent-memory.svg)](https://linkly.ai/skills/s/clawhub/agent-memory)
Linkly AI

Maintained by Linkly AI

Linkly AI is the knowledge brain for AI agents. It automatically parses the notes, study materials, bookmarks, knowledge bases, voice memos, meetings, videos and ideas on your computer, so your agent can search and read everything you have.

Download Linkly AI
Or send this line to your agent and it will help you install and connect.

Set up https://linkly.ai/docs/en/agent-setup.md