# Claude Code memory: what it remembers, and how to give it the rest

Ahmet Karaca · 12 October 2026 · Updated 30 October 2026 · https://coredence.com/guides/claude-code-memory

Each Claude Code session starts with a fresh context. Two things carry over: `CLAUDE.md` files you write, and auto memory that Claude writes itself. Skills and MCP add more on demand. Knowing what each is good for decides how often you explain yourself again.

## Why does a Claude Code session start empty?

Claude Code does not carry a conversation from one session to the next. What it knows about you at the start of a session is whatever was loaded into its context: instruction files, notes, and anything a tool returns when it asks. Close the terminal and the transcript stays on disk, so `claude --continue` or `claude --resume` can reopen it. A new session does not see it, though: only what was written down reaches the next one.

So "memory" in Claude Code is not one feature. It is a handful of places where text can live between sessions, each loaded at a different moment and each with a different cost.

## How do CLAUDE.md and auto memory differ?

| Property | CLAUDE.md | Auto memory |
| --- | --- | --- |
| Who writes it | You | Claude |
| What it holds | Instructions and rules | Learnings and patterns |
| Scope | Project, user or organization | Per repository |
| What loads | The file, every session | The first 200 lines or 25 KB of `MEMORY.md`, every session |

## Where can context live in Claude Code?

- `CLAUDE.md` in your home folder (`~/.claude/CLAUDE.md`): your instructions for every project. Loaded at the start of every session.
- [`CLAUDE.md`](https://coredence.com/guides/claude-md) in a project: the project's own conventions, usually committed so the whole team shares them. Loaded when you work in that folder.
- `.claude/rules/` and `CLAUDE.local.md`: rules split by topic, optionally loaded only for matching paths, and instructions for this project that stay out of git.
- Auto memory: notes Claude writes for itself, on by default in local sessions, in `~/.claude/projects/<project>/memory/`. The first 200 lines or 25 KB of its `MEMORY.md` index load at the start of every session, and the topic files are read when needed. `/memory` lets you browse, edit or turn them off. What goes in is the model's decision, not yours.
- Skills (`~/.claude/skills/<name>/SKILL.md`): longer guidance whose full text loads when it is relevant. Its name and description stay in context on every turn, so a skill you never use is cheap, not free.
- MCP servers: tools Claude can call to look something up instead of carrying it. With tool search, the default, only tool names and server instructions load at the start.

Everything loaded up front is paid for in every session, in tokens and in attention.

## Where does each one run out?

`CLAUDE.md` holds what you remember to write. The rules that matter most are often the ones you never stated, because you only noticed them when something went wrong, and by then you were fixing the thing, not editing a file.

Instruction files also drift. A line written six months ago about a library you no longer use keeps being obeyed. `/doctor prompt-audit` (Claude Code v2.1.283 or later) now looks for outdated and conflicting instructions, but it reads the files, not your history: it cannot tell you which lines are still true of you.

Auto memory has the opposite problem: it is written without you. It is scoped to one repository, and Anthropic's documentation describes a type and a write time for each note but no link back to the conversation it came from. You can read every note, but you cannot easily tell whether one rests on a single remark.

None of them can show you the evidence. A rule in a file is a sentence; whether it is still true of you is something you have to remember.

## What works in practice?

- Keep the global `CLAUDE.md` short, and write the reason next to each rule. "Ask before deleting files, because a cleanup can remove something you meant to keep" generalises better than "never delete".
- Put the things you correct most often at the top. Your corrections are the best record of how you work: each one is a moment where the default was wrong.
- Move long, situational guidance into skills, so that its full text loads only when it applies.
- Re-read the file every few weeks and remove what is no longer true. A stale rule keeps being followed, and nothing warns you.
- Run `/context` in a session to see what actually loaded, and `/memory` to read what Claude wrote about you.

## Where Coredence fits

Coredence does the writing-down for you, from the traces you left rather than from what you happen to recall. It reads your Claude Code sessions, the corrections especially, along with git history and notes if you allow it, and consolidates them into memories about how you work. Every memory keeps the moments it grew from; a memory seen once waits as a draft; two memories in conflict become a question for you.

The result reaches Claude Code as a skill file, whose description tells Claude to use it whenever it works with you. Other MCP clients, such as Claude, Cursor and Codex, can query it through a read-only server. The mind is one SQLite file on your machine.

Coredence runs on macOS 14 or later (Apple silicon) and Windows 10 or later, with no Coredence account. Consolidation needs a model, and you choose it: your Claude Code subscription, your own API key, or a local model through Ollama. On those paths Coredence itself is free to use. It is not open source. If you would rather not bring a key, its own [paid plans](https://coredence.com/pricing) include the model.

## Sources, checked on 30 October 2026

- [Claude Code docs: How Claude remembers your project](https://code.claude.com/docs/en/memory)
- [Claude Code docs: How Claude Code works](https://code.claude.com/docs/en/how-claude-code-works)
- [Claude Code docs: Skills](https://code.claude.com/docs/en/skills)
- [Claude Code docs: MCP](https://code.claude.com/docs/en/mcp)
