Memory types · Procedural

Procedural Memory in AI Agents

Procedural memory in AI agents stores skills, tool-use patterns and learned procedures — how to accomplish tasks — distinct from factual (semantic) or event (episodic) memory.

Procedural

“Run linter before commit”

Semantic

“Team uses pnpm”

Definition

What is procedural memory in AI agents?

Procedural memory is memory of how, not what — skills, workflows, tool sequences and learned action patterns.

Examples: “always run the linter before commit”, “escalate to tier-2 after two failed resets”, a stored multi-step tool plan that worked for deploying to staging. Also called skill memory or procedure cache. Cognitive science maps procedural = motor/skills memory; agents implement it as stored trajectories and tool policies.

Types of AI agent memory

Comparison

Procedural vs semantic vs episodic memory

TypeStoresExample
ProceduralHow to do something“Run tests → lint → commit”
SemanticStable facts“Repo uses pnpm”
EpisodicSpecific events“Deploy failed Tuesday”

Semantic memory · Episodic memory

Implementation

How agents store procedural memory

Four common patterns: few-shot examples in prompt, stored tool trajectories, RL policy checkpoints and agent skill libraries.

  1. Few-shot in prompt — worked examples of the procedure inline (simplest, token-heavy)
  2. Trajectory store — embed successful tool-call sequences; retrieve similar plans
  3. RL checkpoints — policy weights encode procedure (advanced, parametric)
  4. Skill libraries — named procedures the agent invokes as tools

Memory as a tool · Coding agents use case

Tools

Procedural memory and tool-based agents

Tool-using agents learn which tools to call in which order — storing successful plans as procedural memory.

The memory-as-a-tool pattern: the agent reads and writes procedure memories via explicit tool calls, separate from semantic fact retrieval. Engram and Mem0 can store trajectory summaries; LangMem stores procedure state in LangGraph checkpoints.

Memory as a tool architecture

FAQ

Frequently asked questions

What is an example of procedural memory in AI?

"Always run linter before commit", "escalate to tier-2 after two failed resets", or a stored 5-step deploy workflow. Memory of how, not what.

Procedural vs semantic memory?

Procedural = skills and workflows (how). Semantic = stable facts (what). "Use pnpm" is semantic; "pnpm install → test → deploy" is procedural.

Do coding agents use procedural memory?

Yes — stored tool trajectories, lint-test-commit workflows and codebase interaction patterns. Combine with semantic codebase facts. See coding agents.

Can you store procedural memory in a vector DB?

Yes — embed successful tool-call trajectories and retrieve similar plans by semantic similarity. Tag with memory_type=procedural for filtering.

Fine-tuning vs procedural memory?

Fine-tuning bakes procedures into weights (parametric). Procedural memory keeps workflows external and updatable. See memory vs fine-tuning.

Procedural memory in LangGraph?

LangMem checkpointers store graph state and tool sequences natively. External Engram/Mem0 can store trajectory summaries as procedural memories.

Shared procedural memory in multi-agent systems?

Store team-wide procedures (escalation workflows, deploy runbooks) in a shared namespace; scope user-specific procedures by agent_id. See shared memory.

Procedural memory and memory-as-a-tool?

Agents invoke memory read/write as tools — procedural memories are plans the agent stores and recalls via those tools. See memory as a tool.