agent-memory: Persistent memory for agents: facts, lessons, entities
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.
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-memoryTrend
Growing steadily- Daily downloads, last 30 days
- 22
- Daily downloads, last 30 days vs the 30 days before
- +4.8%
How this skill works
- 1Create an AgentMemory object with the default database at `~/.agent-memory/memory.db`, or pass `db_path` to use another file.
- 2Store durable facts with `remember()` and optional tags.
- 3After an action, record what was done, the context, the outcome (positive or negative), and the insight with `learn()`.
- 4Track people or projects as entities with `track_entity()` and a dictionary of attributes.
- 5At session start, call `get_lessons()`, `recall()`, and check entity context so the agent loads relevant memory before work begins.
- 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
The badge updates every day and links back to this page.
[](https://linkly.ai/skills/s/clawhub/agent-memory)