Claude Code · tool · fg-0481

Claude Code auto memory forgets entries once MEMORY.md passes 200 lines or 25KB

If you see Facts saved to auto memory are unknown in a new session, the cause and the fix for Claude Code are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Facts saved to auto memory are unknown in a new sessionOnly entries near the top of MEMORY.md are reflectedAfter a write, Claude Code tells Claude the memory index is over its read limit
Cause
Only the first 200 lines or 25KB of MEMORY.md, whichever comes first, load at the start of a session; the rest is dropped. Topic files load only when Claude chooses to read them.
Fix
Keep MEMORY.md as an index with one short line per entry and move detail into topic files the index points to. Merge or delete stale entries.
Apply
wc -l -c ~/.claude/projects/*/memory/MEMORY.md # keep each under 200 lines and 25KB
Affected
Claude Code auto memory, as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun