Mirage Academy · Agent memory course

Agent memory course: long-term knowledge systems for AI agents

Your agent forgets the user between sessions, or it remembers too much and repeats stale facts. This course gives agents memory that helps: what to keep, how to retrieve it, when to forget and who may see it. Watch the course in a minute, see the loop behind it and rank six example memories yourself.

Open the courseTry a retrieval

The course in a minute

Watch what the course teaches

Agent Memory & Long-Term Knowledge Systems covers what an agent writes, retrieves, forgets and guards. Press play on the pitch video to see how the course frames it.

Still from the intro video for the course Agent Memory & Long-Term Knowledge Systems
Intro video, 1 min 7 s. Transcript below.
Read the transcript

Your agent forgets the user between sessions, or it remembers too much and repeats stale facts. This course is for builders who want agent memory that actually helps the person it serves. Memory works as a loop. You write memories by summarising and consolidating them. You retrieve them by weighing relevance and recency. You forget through expiry and deletion. And you guard them with permissions, consent and isolation. You also learn the four kinds of memory, how to hold profiles and preferences, and how to evaluate whether memory helps at all. The capstone is a coaching agent that remembers responsibly. Eight chapters take you from the kinds of memory to a working capstone. If your agent needs to remember well and forget on purpose, start with chapter one.

  • Advanced level

    The catalogue places this one at the Advanced level.

  • 8 chapters, 40 lessons

    Each of the eight chapters has five lessons, and the memory capstone comes last.

  • Who it is for

    Made for engineers and technical product people who build AI features and need them to remember.

The course's intro video with a play button, next to three facts: the level, the size and who the course is for.

Chapter 1

Four kinds of memory, each with its own home

The first chapter is called Kinds of memory: working, episodic, semantic, procedural. Its lessons include Where each kind lives and The memory budget.

Working memory

Working

The first of the four kinds.

Episodic memory

Episodic

The second kind.

Semantic memory

Semantic

The third kind.

Procedural memory

Procedural

The fourth kind.

Four tracks of dots. Working memory is a short bright run, episodic memory is dots spaced along a timeline, semantic memory is a tight cluster and procedural memory is a repeating pattern.

How context fits in: the context engineering course →

Chapters 3 to 6

Memory works as a loop: write, retrieve, forget, guard

Each station of the loop has its own chapter in the course.

  1. Chapter 3

    Write

    Summarize and consolidate. Lessons: what is worth writing, summarizing sessions, provenance and write guards, the cost of writing.

  2. Chapter 4

    Retrieve

    Weigh relevance and recency. Lessons: recency decay, filters before similarity, how many to retrieve, measuring retrieval.

  3. Chapter 5

    Forget

    Expire and delete. Lessons: why forget, expiry mechanisms, deletion requests, proving it is gone, forgetting by decay.

  4. Chapter 6

    Guard

    Permissions, consent and isolation. Lessons: row-level security, consent records, access requests, sharing across agents and users.

A ring of four stations joined by arrows: write, retrieve, forget and guard, with the memory store in the middle.

Try it: retrieval

Filter first, then rank: rank six memories

The retrieval chapter teaches recency decay, filters before similarity and how many memories to retrieve. This small example lets you try those three ideas.

Retrieval for one question

Example, not the course's formula

Question to the coaching agent: "Plan this week's session."

Half-life of recency
Memories to take
Filter first (other people, expired)

Retrieved: Prefers short sessions in the morning; Asked to focus on sleep last week.

  1. Prefers short sessions in the morning10 days old · Score 0.87Retrieved
  2. Asked to focus on sleep last week6 days old · Score 0.68Retrieved
  3. Training for a marathon in April120 days old · Score 0.58Ranked, not taken
  4. Likes dark roast coffee2 days old · Score 0.36Ranked, not taken
  5. Knee injury, healed (set to expire)200 days old · Score 0.28Filtered: expired
  6. Another person's goal: lose 5 kg3 days old · Score 0.87Filtered: belongs to someone else

The rule, in words

  1. 1. Filter first: a memory that belongs to another person, or that has expired, never enters the ranking.
  2. 2. Recency is 0.5 to the power of age divided by half-life, so a memory loses half its recency every half-life.
  3. 3. Score is 0.7 times relevance plus 0.3 times recency. Relevance is a fixed number for each example memory.
  4. 4. Rank by score and take the top few. With the filter off, the same rule ranks everything, and a leak can appear.
  • 1. Filter

    Other people's memories and expired ones are dropped before any scoring.

  • 2. Score

    Relevance counts for more, recency fades with a half-life.

  • 3. Cut

    Only the top few reach the prompt.

Six example memories as a ranked list. Three controls change the ranking: the half-life of recency, how many memories to take and whether to filter first.

Looking things up in documents: the RAG course →

Chapters 5 and 6

Forget on purpose and keep people's memories apart

Memory is personal data, and the course treats it that way: expiry and deletion on one side, permissions, consent and isolation on the other.

  • Expiry and deletion

    Expiry mechanisms, deletion requests and proving that a memory is gone.

  • Forgetting by decay

    Forgetting by decay.

  • Isolation

    Isolation and row-level security.

  • Consent and access

    Consent records, access requests and sharing across agents and users.

Two columns of memory dots, one for each person, with a dotted wall between them. The agent reaches into one column at a time, and the oldest dots in each column fade out.

Chapters 7 and 8

Evaluate memory, then build a coaching agent that remembers responsibly

Chapter 7 asks whether memory earns its cost, with multi-session test sets and safety tests. The capstone puts everything into one coaching agent.

  1. Requirements and memory map

    The first capstone lesson.

  2. Write and retrieve policy

    The second capstone lesson.

  3. Consent, access and deletion flow

    The third capstone lesson.

  4. Evaluation run

    The fourth capstone lesson.

  5. Go or no go

    The last capstone lesson.

GoNo go

Five capstone stations in a row, from requirements to the evaluation run, ending in a fork with two outcomes: go or no go.

Next in the agents family: Agent Orchestration & Workflow Engineering →The wider path: build AI agents →

Questions about the agent memory course

  • What is agent memory?

    The course sorts it into four kinds: working, episodic, semantic and procedural memory.

  • Who is the agent memory course for?

    People who build AI features, as engineers or as technical product owners, and want the agent to keep what matters.

  • What does the memory capstone produce?

    The capstone is a coaching agent that remembers responsibly. You write its requirements and memory map, its write and retrieve policy and its consent, access and deletion flow, then run an evaluation and decide go or no go.

  • Does it cover forgetting and privacy?

    Yes. One chapter covers forgetting, expiry and deletion, including deletion requests and proving a memory is gone. Another covers permissions, consent and isolation. This page is not legal advice.

  • Is the retrieval example the formula from the course?

    No. It is a small example written for this page, with invented memories and numbers. It shows the order of the steps: filter, score, then take the top few.

  • Do I get a certificate?

    We offer certificates, yes. This one comes with a verification code that anyone can check, and it is not a state recognized degree.

  • Is there an AI coach?

    Yes. In the Academy an AI coach asks you to explain what you learned in your own words, one question at a time.

  • Can I take the agent memory course in German?

    Not at the moment. The Academy site runs in German and English, but this course is taught in English only.