# Episodic, semantic and procedural memory for AI agents

URL: https://longtermmemoryai.dev/types-of-memory
Last updated: 2026-11-07
Published by Glen (https://tryglen.com), shared memory for coding agents.

> Agent-memory writing borrows three long-term memory types from cognitive science: episodic (what happened in a particular session), semantic (facts and decisions that hold regardless of when you learned them) and procedural (how to do a task). In a coding team's memory these map to recorded agent sessions, the decisions recalled from them, and reusable skills. Glen keeps all three for an organization.

## Three kinds of long-term memory

Cognitive science splits human long-term memory into remembering events, knowing facts, and knowing how. The same split is a practical way to sort what an AI agent should keep, because each kind is captured, stored and used differently.

*Memory types mapped onto a team of coding agents*

| Type | In people | In a coding agent | Where Glen keeps it |
| --- | --- | --- | --- |
| Episodic | Remembering last Tuesday's outage call | The transcript of the session that fixed the outage | Transcript library, searchable and shareable |
| Semantic | Knowing the payments service owns refunds | "Refunds go through the payments service" | Memories recalled into context by relevance |
| Procedural | Knowing how to ride a bike | The steps to cut a release or add a migration | Skills library |

Working memory, the fourth term you'll see, is the context window. It is covered on the [short-term vs long-term page](https://longtermmemoryai.dev/short-term-vs-long-term).

## Episodic memory: the sessions themselves

An episode is one conversation with a beginning and an end: the prompt, what the agent tried, what failed, what shipped. Glen's plugins record each turn through the agent's hooks, and the transcript library keeps those sessions searchable and shareable inside the organization.

Episodes matter most when you need the story behind code. `glen code-search <path:start-end> "<question>"` follows git blame from a range of lines to the agent conversations that wrote them, which is possible because the Claude Code plugin links each `git commit` to its session.

## Semantic memory: facts and decisions

Most of the time an agent doesn't need the whole episode, just the conclusion: which queue the webhooks use, which library the team dropped and why. These are the memories Glen recalls into the context window when a prompt touches the same ground, and the ones `glen search` cites when it writes an answer.

Semantic memory is also where staleness bites, because a fact outlives the episode that taught it. When a decision is reversed, Glen aims to recall the newer one. If the old one keeps coming back, `glen forget` takes it out of recall and `glen restore` undoes that. Tools that store semantic memory as a graph instead are covered in [AI agent memory tools compared](https://aiagentmemory.app/compared).

## Procedural memory: skills

Procedural memory is how-to knowledge: the sequence of steps a task needs. For agents this has two homes. Steps that must run every time go in `AGENTS.md` or `CLAUDE.md`, where the agent reads them without searching. Longer workflows that apply only sometimes fit better as skills.

Glen's skills library takes the skills you upload, distils new ones from the work your team's agents do, and surfaces the right one on its own when a task calls for it. MCP clients reach the same library through `glen_skill_search` and `glen_skill_use`.

> **Keep all three kinds of memory for your team** Sessions, decisions and skills, recorded from the agents you already use. Free covers 15,000 memories and up to 3 people. Install: `npx @tryglen/cli@latest install`. Start free at https://tryglen.com

## Frequently asked questions

### What is episodic memory in AI agents?

A record of specific past sessions: what was asked, what the agent did and how it ended. In Glen that is the recorded transcript of each agent conversation.

### What is the difference between semantic and episodic memory in AI?

Episodic memory is the event (the session where the team chose a queue); semantic memory is the fact that remains (webhooks go through the queue). Agents usually need the fact and reach for the episode when they need the reasoning.

### What is procedural memory for an AI agent?

Knowledge of how to do a task, such as releasing or adding a migration. Agents keep it in instruction files for steps that always apply and in skills for workflows that apply only sometimes.

### Is Glen a knowledge graph?

No. Glen records sessions and connected sources into an organization memory and recalls by relevance. It is not a graph or a database you query directly.
