Idea
AI agents should load a short memory index at the start of each session and retrieve detailed knowledge only when needed.
Copy link
Press Ctrl+C (⌘C on a Mac) to copy the text below; on a phone, long-press and choose Copy.
From“The components of agent memory”· Dreaming can promote notes up the memory hierarchy
An AI agent with a long history cannot fit every past experience into each new conversation. Anthropic describes four layers of persistent memory: searchable session records, notes about useful experiences, linked knowledge such as wikis, and a small amount of context loaded at startup. A short startup index tells the agent what knowledge exists and where to find it, while detailed notes stay available for on-demand retrieval. Claude Code illustrates this approach by loading only the first 200 lines or 25 KB of its MEMORY.md index.
When it applies
Use automatic loading for stable, frequently needed guidance or pointers. Long or inaccurate startup instructions can consume context and repeat mistakes across sessions; even loaded instructions may be ignored. The Claude Code size limit is an implementation example, not a general optimum.
