Skip to content
AgenticAIWiki
  1. Learn
  2. Part 10
  3. 54. The memory types map
  4. 54.4

Lesson 54.4 · 4 of 5 · 4 min read · Reviewed 24 Nov 2026

Procedural memory: how to do things

By the end, you can

  • Describe procedural memory for agents.
  • Package procedures so agents follow them reliably.

Procedural memory answers: how do I do this?

Where procedures live

Form Example Chapter
System prompt Steps for handling a refund 11
Few-shot examples Three worked examples of a good summary 12
CLAUDE.md “Run lint, then tests, before committing” 80
Skills A release checklist with scripts 83
Tool descriptions When and how to use each tool 34

Learned procedures

AgentsAgent: A system where a model decides its own next steps, calling tools in a loop until the task is done. can also discover procedures. A coding agent that figures out how to run a tricky test suite can write that down:

## Running integration tests
- Start the DB container first: docker compose up -d db
- Then: pnpm test:int
- Flaky test checkout.spec: rerun once before investigating

Next session, the agent reads this note instead of rediscovering it.

Keep procedures short and current

Long procedure files cost context in every session. Review them like code: remove steps that no longer apply, and keep the most important rules near the top.

The three types together

A support agent might load the customer’s last episode (episodic), their preferences and plan (semantic, looked up), and the refund procedure (procedural), all into one context for one reply.

Key points

  • Procedural memory holds how to do things: steps, checklists, house style, tool recipes.
  • In practice it often lives in system prompts, CLAUDE.md files, skills and few-shot examples.
  • Procedures can be learned: when an agent finds a working method, save it for next time.
Hands-on labOn your own machine

Write a procedures file for your project

Capture one real procedure from your own project as procedural memory that a coding agent reads every session, then check it is followed.

You will have: A short procedures file (for example CLAUDE.md or AGENTS.md) with one checklist, plus a note of before and after behaviour.

Steps

  1. Pick a procedure your team repeats, such as releasing, running integration tests or adding a database migration.
  2. Write it as 5 to 8 numbered steps with exact commands, and put the two most important rules at the top.
  3. Save it in the file your coding agent reads at session start (for Claude Code, the project CLAUDE.md; other tools use AGENTS.md or similar).
  4. Start a fresh session and ask the agent to carry out the task without mentioning the steps.
  5. Note which steps it followed, then trim or reword the file and try once more.

Done when

  • The file is under 40 lines.
  • In a fresh session the agent follows every step without being reminded.
  • The file is committed so the team can review changes like code.

Docs: Manage Claude's memory: CLAUDE.md (Claude Code docs) · Agent Skills in Claude Code (Claude Code docs)

Quick checkA team wants Claude Code to always follow the same 6-step release checklist. Where does this procedural memory best live?
How sure are you?
Pick an answer and how sure you are