DigestAI news desk

Cut through the AI noise.

Agents & Tools5 min read

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.

1 source

What you can do with it

AI at Work →
Claude Code by Anthropic

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

  1. Reduce entrance MEMORY.md to ≤33 lines (~5 KB)
  2. 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.

Full story from note.com · by けいた · via Search: ClaudeOpen source ↗
Topics · follow one to build your own front page

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.

Comments

via GitHub Discussions

More in Agents & Tools

All →

Related stories