Skip to content

Session memories

Session memories are short facts that agents save in one session and find again in later ones: a person’s preference (“open PRs as drafts”) or a process lesson (“run the migration check before just test in the api repo”). They are on for every organization; there is nothing to turn on.

Agents use them through the nori-sessions memories commands and the using-session-memories platform skill: they search at the start of a substantive task and when they change repository or workflow, and save when you state a reusable preference or they learn a lesson worth keeping.

Field Meaning
Content One fact or lesson, up to 1200 characters
Kind preference or process
Person Optional. Set: applies to that member. Empty: applies to the whole org
Repositories Optional, up to 8. Set: applies only in those repos. Empty: applies everywhere
Keywords Optional, up to 12 extra search words
Capture mode automatic (the agent chose to save it) or user_requested
Verified at Optional time the lesson was confirmed

Person and repository scope decide where a memory applies, not who can see it. All memories are visible within the organization.

Any member, and any agent working in the organization’s sessions, can search, add, update, and delete memories of any scope. By convention, agents ask before saving something org-wide. Usage stats are for org admins.

Search returns at most 3 memories, ranked by relevance to the query. A search without a person skips personal memories, and a search without a repository skips repository-scoped ones. When a person is given, one result is reserved for their newest preference.

Current instructions and maintained docs win over an old memory, and a memory never authorizes an action on its own.

There is no settings page. Ask the agent in any session: “forget that I prefer draft PRs” or “update the memory about the migration check”. Or use the CLI:

Command What it does
nori-sessions memories search --query <text> [--user-email <e>] [--repo <r>] Find applicable memories (at most 3)
nori-sessions memories add --content <text> --kind preference|process [--user-email <e>] [--repos <r,...>] Save a memory; omit the person for org-wide
nori-sessions memories get --id <id> Read one memory
nori-sessions memories update --id <id> --expected-revision <n> ... Revise it without overwriting omitted fields
nori-sessions memories revisions --id <id> List its revision history
nori-sessions memories delete --id <id> --expected-revision <n> Remove it from future searches
nori-sessions memories stats [--days N] Storage and retrieval counts (org admins)
nori-sessions memories status Always reports that memories are enabled

Every save keeps a full revision. Delete is soft: the memory stops appearing in searches, and its history is kept. An update or delete fails if someone changed the memory since you read it; get it again and retry. update also takes --clear-user (make it org-wide) and --clear-repos (apply everywhere).

nori-sessions memories stats --days N (default 30, up to 365) shows how many memories are stored (by kind, capture mode, and scope, and how many were never retrieved), how many searches came back empty, who searched (agents or people), the most-retrieved memories, and daily counts. Stats record ids and counts only, never memory content or search text.

Use For
Session memories Lightweight preferences and lessons that agents find when relevant
Org skillset and org instructions Maintained rules every session must follow, reusable skills, and runtime setup

Agents do not save the same fact in both places. If the memory service is unavailable, they do not fall back to writing into the org skillset.

Limit Value
Content 1200 characters
Repositories per memory 8
Keywords per memory 12, each up to 80 characters
Search results 3
Search query 1000 characters

Are personal memories private? No. A personal memory applies only to that person’s sessions, but anyone in the organization can read it.

Can I turn memories off? No. There is no opt-out setting.

Why didn’t the agent use a memory I saved for a repository? Repository memories match only when the agent searches with that repository. Check the repo identity, for example github.com/your-org/api.

How do I make a rule that every session must follow? Put it in the org instructions or skillset, not in a memory.

Can I undo a bad edit? Use memories revisions --id <id> to find the earlier text, then memories update with it.

this page as markdown: /sessions/guides/memories.md· index for agents: /llms.txt