OmniscioGuidesMemory index over its read limit
Claude Code: the memory index is over its read limit
The write succeeded, so nothing was lost. What changes is the next load: only the first 200 lines or 25KB of the index reaches Claude. This is the auto memory index, not your CLAUDE.md.
Last checked against Anthropic's documentation on November 24, 2026. By the Omniscio team. Updated .
What is the exact message?
Error: this write left the memory index at MEMORY.md at 214 lines, over its 200-line read limit. The write succeeded, but everything past the limit is silently dropped each time the index is loaded — entries at the end are already invisible to readers. Rewrite it to under 140 lines now: keep one line per entry, move detail into topic files, and merge or drop stale entries.The line count in the message is the file's, so yours will differ. The message names the 200-line read limit; Anthropic documents both limits the index is held to, 200 lines and 25KB.
What does it mean?
Claude Code's auto memory gives each project a folder of notes Claude writes for itself. MEMORY.md in that folder is the index: one line per memory, pointing at the topic files that hold the detail.
Anthropic's memory page says that while auto memory is on, the first 200 lines or 25KB of MEMORY.md, whichever comes first, load at session start. Once the file is past either limit, the write still succeeds, but everything past the limit is dropped the next time the index loads.
That is why the message says the write succeeded. Nothing was refused and nothing was deleted. The notes at the end of the file are on disk, and the index simply stops carrying them into Claude's context.
You may never see it in the terminal
Anthropic's error reference says Claude Code delivers this message to Claude after the write rather than printing it as a banner, so you may notice it only in the transcript. Claude is the one being told to rewrite the index, and Anthropic's first fix is to let it do that.
Which file is it, exactly?
The auto memory folder for a project is ~/.claude/projects/<project>/memory/. Anthropic derives the <project> part from the git repository, so every worktree and subdirectory of the same repository shares one auto memory directory. Outside a git repository, the project root is used instead.
- It is not your CLAUDE.md. Instructions you write live in
CLAUDE.md; auto memory is what Claude records for itself. The CLAUDE.md guide covers the other file. - It can live somewhere else.
autoMemoryDirectoryinsettings.jsonmoves the folder, and it is read from any settings scope.
How do I fix it?
- Let Claude rewrite it. The message already asks Claude to do this, and Anthropic's guidance is to let it, or ask it directly: keep one line per entry, move detail into topic files, and merge or drop stale entries.
- Or edit it yourself. Run
/memoryand openMEMORY.mdfrom inside the session, or edit~/.claude/projects/<project>/memory/MEMORY.mddirectly, then cut it the same way. The message asks for under 140 lines, which leaves room before the 200-line limit. - Move detail rather than deleting it. A line in the index can point at a topic file that keeps the full note. Anthropic's own description of the index is one line per memory, with the detail in topic files.
The target is a file that reads as an index: short lines, each pointing at a note, with the notes themselves elsewhere.
What does not help
- Compacting the conversation. This is a file on disk read at session start, not part of the context window, so
/compactdoes not touch it. - Deleting topic files. They hold the detail the index points at; removing them loses notes without shortening the index.
- Turning auto memory off.
autoMemoryEnabledorCLAUDE_CODE_DISABLE_AUTO_MEMORY=1stops the notes being kept and loaded at all, which is a bigger change than trimming an index. - Editing
CLAUDE.mdinstead. They are different files with different limits: the 200-line and 25KB ceilings belong to the auto memory index.
How do I know it is fixed?
/memoryopensMEMORY.mdand it is under 200 lines and 25KB.- A new session starts without the message coming back in the transcript.
- The entries you kept still appear when Claude recalls a memory, which shows the index is loading again.
Anthropic notes that when a write brings the file near a limit without crossing it, Claude Code returns a milder reminder instead of this error, so a shorter file is the state to stay in.
Where these answers come from
- Anthropic's error reference, read November 24, 2026: the message, the two limits, the transcript note and the fix steps.
- Anthropic's memory page: the 200-line and 25KB read limits, the milder reminder, and how the index sits beside the topic files.
- Anthropic's memory page, storage location: the projects folder, the shared per-repository directory, the retention exclusion and
autoMemoryDirectory. - The /memory section: opening and editing memory files from inside a session.
Common questions
Did I lose the memories past the limit?
No. The write succeeded, so they are in the file. What stops is the load: everything past the first 200 lines or 25KB is dropped each time the index is read. Shorten the index and the entries come back into the loaded part.
Why does the message say under 140 lines?
Because 200 is the ceiling, not a comfortable size. The message asks Claude to leave headroom now rather than land just under the limit and cross it on the next entry.
Is this the same as the CLAUDE.md 4 MiB limit?
No. Anthropic gives each CLAUDE.md that loads at launch a 4 MiB ceiling, and skips a file over it entirely. The 200-line and 25KB read limits belong only to the auto memory index, MEMORY.md.
Can I just delete MEMORY.md?
You can, and the next session starts with no auto memory. That throws away every note rather than shortening the index, which is why trimming is the documented step.