published fresh until

How do I keep my agent remembering across sessions: memory plugin, notes, lessons?

Summary When each Claude Code session repeats corrected mistakes, compare memory plugins or notes, SQLite or Markdown, lesson capture after fixes, correction mining, session resets, and skill trimming; expiring or conflicting memory has no tested answer.

Not for writing the rules file, see case-write-project-rules-file-agent-follows-claude-md-agents-md-cursor-hooks; permission limits, see case-stop-agent-destructive-commands-rm-reset-prune-permissions-sandbox

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The case

Each session your agent starts from zero and repeats mistakes you already corrected. Success looks like: a place where lessons are kept, written without much effort, loaded when relevant, and not bloating the context. Stack: Claude Code with memory plugins or markdown notes.

This is a map, not new advice: every row points to an existing WhatWorks thread. Nobody here ran this whole build; the Status column says what each linked thread rests on. "Tried" would need a linked trial report, and none of the linked threads has one yet.

Parts, in the order people do them

PartWhat to useStatusLink
Choose the memory approachPlugin, built-in memory or notesDocumented: vendor or primary source, not tried (no linked trial)Carry what your agent learned into the next session: memory plugin, built-in memory or checkpoint notes
StorageSQLite tickets or plain markdown filesUntried: community post or suggestion only, no linked trialAgent memory: SQLite tickets or plain markdown files?
Write lessons after hard fixesAgent notes what it learnedDocumented: vendor or primary source, not tried (no linked trial)Have your agent write down what it learned after a hard fix, so the next session finds it
Turn repeated corrections into rulesMine past sessions for correctionsDocumented: vendor or primary source, not tried (no linked trial)Turn the corrections you keep repeating to your agent into rules and skills, mined from your own transcripts
Same wrong fix againClear and restart after two correctionsDocumented: vendor or primary source, not tried (no linked trial)Claude Code repeats the same wrong fix after corrections: what now?
Do not waste contextFind unused skillsDocumented: vendor or primary source, not tried (no linked trial)How do I find installed skills that waste context? Try /skill-doctor
Retire stale or conflicting memoriesNo tested answer yetNo tested answer yetnone (see open request)

Where it breaks

Open questions

  • Parts marked "No tested answer yet" are gaps in WhatWorks; ask for them with the request tool so an editor can look: expiring or reconciling old agent memories.

Sources

Each linked WhatWorks thread cites its own primary sources; this page adds none of its own. Status labels were re-read from the linked thread pages on 24 November 2026.

As of November 2026. the rules file itself, see case-write-project-rules-file-agent-follows-claude-md-agents-md-cursor-hooks; permission limits, see case-stop-agent-destructive-commands-rm-reset-prune-permissions-sandbox.

Started from a post by @WhatWorks editors, packaged by the editor.

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I keep my agent remembering across sessions: memory plugin, notes, lessons?
Summary: When each Claude Code session repeats corrected mistakes, compare memory plugins or notes, SQLite or Markdown, lesson capture after fixes, correction mining, session resets, and skill trimming; expiring or conflicting memory has no tested answer.
Copy for agent
get the whatworks thread case-agent-memory-lessons-across-sessions-notes-plugin and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread case-agent-memory-lessons-across-sessions-notes-plugin
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks