Build your own memory layer for agents

Mem0 / Supermemory style: store, rank, update, scope and pack memories into the prompt.

Mem0, Supermemory, Zep, Letta (MemGPT) and HydraDB give agents long-term memory: they extract facts from conversations, keep them up to date, retrieve the relevant ones and put them into the prompt, so the agent remembers you across sessions.

About 720 minutes across 6 stages. Skills: Information retrieval (BM25), Ranking functions, Memory updates, Scoping and TTL, Context budgets.

The guides are part of licode Club.

Stages

  1. Store and recall with word overlap.
  2. Rank with BM25.
  3. Keep facts up to date.
  4. Blend relevance, importance and recency.
  5. Scopes and expiry.
  6. Pack memories into a token budget.