Logo

Claude Code memory vs a session archive

Memory carries a few facts into every session; an archive keeps the sessions those facts came from

Claude Code has persistent memory built in, in two forms: CLAUDE.md files that you write, and auto memory, notes Claude writes for itself under ~/.claude/projects/<project>/memory/. Both are loaded at the start of every session and both survive across sessions. Neither one is the conversation: transcripts are separate files, and Claude Code deletes them after 30 days by default. So the best memory tool for Claude Code depends on what you want remembered - a small set of facts that is always in context, or the full record of past sessions that you search when you need it. They are different jobs, and most setups want both.

What memory is for

Memory is small, always loaded, and changes how the agent behaves without being asked. That is its strength.

Built into Claude Code (How Claude remembers your project, checked 2026-11-24):

Built into Codex (Memories, checked 2026-11-24): AGENTS.md for instructions, plus Memories, which are off by default ([features] memories = true). When on, Codex turns eligible past chats into local memory files in the background and injects them into later sessions.

Memory layers such as Mem0, Letta and claude-mem do the same job with more machinery: an extraction step decides what is worth keeping and a store hands it back. How pond compares goes through them one by one.

If you want an agent that knows you use pnpm, that the API tests need a local Redis, and that the last reviewer asked for smaller PRs, this is the tool. An archive is the wrong shape for it: nothing in an archive is in context until something asks.

What memory does not keep

The session. Every memory system works by deciding, at the time, what was worth keeping. What it passed over is not recoverable from it later.

Claude Code is explicit about what auto memory passes over. Its docs say Claude skips anything it can derive from the codebase, "such as architecture, file paths, or debugging fixes", and that it does not save something every session. That is a sound rule for a file that loads into every context window. It also means the debugging session itself - the error text, the three things that did not work, the command that finally did - is exactly what memory is designed not to hold. That lives in the transcript, and the transcript is on a 30-day timer.

What an archive does that memory does not

A session archive keeps the transcripts instead of a summary of them: every message, tool call, tool result and reasoning block, as the client wrote it. With pond that means:

What an archive does not do

It is not memory, and it is worth being exact about the difference.

Memory layer or full transcripts?

You want the agent toUse
always follow a rule or conventionCLAUDE.md / AGENTS.md
pick up your corrections without you writing them downauto memory, Codex Memories, or a memory layer
find how something was solved months ago, with the exact commandsan archive, searched on demand
answer "which tools fail most" or "what did we work on in March"an archive, queried with SQL
continue an old sessionthe client's own resume while the file exists; after that, pond resume writes it back for the client that made it

The first two rows are about behavior. The last three are about the record. A memory tool is not a worse archive and an archive is not a worse memory tool.

Run both

They do not overlap, so the setup is additive.

Leave memory on

Keep your CLAUDE.md and leave auto memory enabled. This is where preferences and standing rules belong.

Add the archive

pond init              # storage, adapters, MCP server and the agent skill
pond sync              # ingest what is on disk now
pond schedule start    # keep it current, every 5 minutes

pond init registers pond as an MCP server for Claude Code and installs a skill that tells the agent when to reach for it. See Connect your agents for Codex and other clients.

Point memory at the archive

Memory is good at holding one standing instruction, so give it this one, in CLAUDE.md:

Before re-solving a problem that looks familiar, search pond for how it was solved before.

After that the division of labor is plain: memory holds the short list of things that should always be true, and the archive holds everything that actually happened, for the times a short list is not enough.

Next