Comparison
CLAUDE.md vs memory: what goes where
If you are working out how to deal with a CLAUDE.md file properly, most of the answer is deciding
what belongs in it and what belongs somewhere else. Claude Code has two memories of its own: the
CLAUDE.md files you write and the auto memory it writes. Hippo adds a third kind, a store of lessons
that are recalled when they match the task.
Claude Code's two memories (checked 2026-09-28)
-
CLAUDE.mdfiles hold instructions you write. They can sit at four levels: managed policy, user (~/.claude/CLAUDE.md), project (./CLAUDE.mdor./.claude/CLAUDE.md) and local (./CLAUDE.local.md). Every file found is added to context; none overrides another. -
Auto memory holds notes Claude writes itself from your corrections and preferences: a
MEMORY.mdindex and one topic file per memory, in~/.claude/projects/<project>/memory/. It is on by default and stays on the machine. -
Both load at the start of every conversation, as context rather than enforced configuration. For auto memory,
that is the first 200 lines of
MEMORY.mdor the first 25KB, whichever comes first. -
When two rules contradict each other, Claude may pick one arbitrarily.
/doctor prompt-auditlooks for contradictions and stale instructions and proposes edits.
Source: Claude Code's memory docs (opens in new tab).
What goes where
CLAUDE.md
Rules you write for every session: build and test commands, code style, things never to do. The project file can be checked in, so your team shares it.
Auto memory
Notes Claude writes itself from your corrections and preferences. On by default, loaded at the start of each conversation, and kept on this machine.
hippo
Lessons that pile up as you work: what failed, what fixed it, which facts changed. Recalled when they match the task, marked wrong or superseded when they stop being true, and shared with Codex, Cursor and your other agents.
Bringing CLAUDE.md notes into hippo
# preview first, then import
$ hippo import --claude CLAUDE.md --dry-run
$ hippo import --claude CLAUDE.md
The import skips hippo's own block and any duplicates. After that, hippo sleep at the end of each
session also imports new entries from Claude Code's MEMORY.md files, so auto memory notes reach the
store your other agents read. hippo init adds a short block to CLAUDE.md telling Claude
to run hippo context --auto when a session starts, and leaves the rest of the file alone. The
Claude Code page covers the hooks.
What is the difference between CLAUDE.md and auto memory?
CLAUDE.md files hold instructions you write; auto memory holds notes Claude writes itself from your corrections and preferences. Both load at the start of every conversation, as context rather than enforced configuration. CLAUDE.md can sit at user, project and local level, and the project file can be checked in; auto memory stays on the machine, in ~/.claude/projects/<project>/memory/ (Claude Code's memory docs, checked 2026-09-28).
How much of Claude Code's auto memory loads each session?
The first 200 lines of MEMORY.md or the first 25KB, whichever comes first, per Claude Code's memory docs (checked 2026-09-28). MEMORY.md is the index of auto memory, with one topic file per memory beside it.
Do I still need CLAUDE.md?
Yes, for short standing rules such as build commands, code style and things never to do. Claude Code loads CLAUDE.md and its auto memory into every session, and its memory docs (opens in new tab) say that when two rules contradict each other, Claude may pick one arbitrarily. Hippo holds the lessons that pile up, recalls the ones that match the task, and retires the ones marked wrong or replaced. hippo init adds its block to CLAUDE.md, and hippo import --claude CLAUDE.md turns existing notes into memories.