Claude Code reads only first 200 lines or 25 KB of memory.md, user suggests splitting
Claude Code only reads the beginning of the MEMORY.md index at the start of a conversation. The official limits are 200 lines or 25 KB, whichever comes first. When the file exceeds those thresholds, the later entries are never loaded, causing the AI to “forget” rules that are correctly written in the file.
What you can do with it
AI at Work →Organize notes with Claude Code
Organizes notes.
- Who for
- founders and operations
- Cost
- Price not stated
- Effort
- minutes
Use it for
- Organize notes
- Prevent forgetting
- Run weekly checks
How to set it up · From the article
- Reduce entrance MEMORY.md to ≤33 lines (~5 KB)
- Move remaining notes into domain‑specific index files
Watch out Only works up
Claude Code in the tool directory · 8 changes covered
Key points from the news
- Claude Code reads up to 200 lines or 25 KB of MEMORY.md at conversation start
- User’s original index of ~140 lines and 31 KB caused the last 25 items to be ignored
- Splitting the entrance index to ~33 lines (5 KB) and using domain‑specific indexes resolved the issue
A user discovered that their original index was about 140 lines and 31 KB, so roughly the last 25 items were cut off. To solve the problem they trimmed the entrance index to about 33 lines (5 KB) and moved the remaining notes into smaller, domain‑specific index files. They also added a weekly inspection script to check line counts, file sizes, and broken links, and used Claude Code Hooks to enforce critical rules before tool actions.
The approach includes four practical guidelines: keep only a list of domain links at the entrance, categorize domains by work context, duplicate tool‑related entries in both tool and task indexes, and limit table‑of‑contents depth to two levels. The user provides a ready‑to‑paste prompt that asks Claude Code to report line counts, sizes, and missing links before making any changes.

The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
More in Agents & Tools
All →- Anthropic expands Claude Duet to India and launches healthcare suite · 6 src
- OpenAI builds Athena platform to improve AI agent data accuracy · 2 src
- TrueLayer and Lloyds test AI agent cardless pizza purchase in UK · 2 src
- Google releases artemis, an open-source agent for Android testing · 1 src
- OpenAI to unify ChatGPT and Codex usage limits in December 2026 · 1 src
Comments
via GitHub Discussions