Memory
Memories are what agents learn as they work: insights, events, preferences and how-tos, kept in memory/ in the agent's own words, tagged and linked.
A memory is something an agent learned that a later session should know. Memories live in memory/, one note each, titled in a few words.
Four kinds
| Kind | What it is | Example |
|---|---|---|
insight |
A cause, a gotcha, something non-obvious | “The login bug was a time zone mix-up” |
event |
Something that happened | “Shipped the first beta” |
preference |
How you like things done | “Prefers short answers with sources” |
howto |
Steps worth keeping | “How to cut a release” |
What a memory holds
memory/Prefers short answers with sources.md
---
kind: preference
importance: 3
tags: [style]
created: 2026-10-20T12:00:00Z
source: agent:claude-code
---
# Prefers short answers with sources
You asked for shorter answers, with links to the notes they come from.- The words are kept as said. Agents are told to keep the original wording rather than paraphrase, so a preference reads the way you put it.
importanceruns from 1 (trivia) to 5 (critical).tagsgroup memories by topic; the briefing lists the tags in use, so agents reuse them.sourcesays which agent wrote it.- Links to related notes are added as
[[wikilinks]].
A memory can go in a subfolder, such as memory/atlas/ for one project.
Running logs
For something that grows over time, such as a project log, an agent appends a timestamped entry to an existing memory with append_to_note, instead of writing a new one each time.
How agents use them
- The briefing at the start of each session lists the most recent memories.
search_memoryfinds older ones by meaning when they’re relevant.write_memorysaves a new one;list_recentshows the latest.
Memories record what happened and what was learned. A choice that should hold from now on is a decision, and a claim that can be checked is a fact.
Updated