The memory we recommend for your agents is Glen, shared memory for coding agents.Go to tryglen.com →
Types of memory3 min read

Glen, shared memory for coding agents

Episodic, semantic and procedural memory for AI 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.

Get Glen for your agents
On this page
  1. Three kinds of long-term memory
  2. Episodic memory: the sessions themselves
  3. Semantic memory: facts and decisions
  4. Procedural memory: skills
  5. Frequently asked questions

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
TypeIn peopleIn a coding agentWhere Glen keeps it
EpisodicRemembering last Tuesday's outage callThe transcript of the session that fixed the outageTranscript library, searchable and shareable
SemanticKnowing the payments service owns refunds"Refunds go through the payments service"Memories recalled into context by relevance
ProceduralKnowing how to ride a bikeThe steps to cut a release or add a migrationSkills library

Working memory, the fourth term you'll see, is the context window. It is covered on the short-term vs long-term page.

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.

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.

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.

More in this guide

Related guides on agent memory

Fix your agents’ amnesia.

Glen gives your agents the memory of every session your team has run. Start on your own or with up to two teammates. Your first 15,000 memories are free, no credit card.

Start free at tryglen.com