Type: url

Original: https://docs.anthropic.com/en/docs/claude-code/memory

Status: generated

Summary

Anthropic’s Claude Code documentation on how Claude carries knowledge across sessions through two mechanisms: CLAUDE.md files that the user writes (with managed, user, project and local scopes, @path imports, path-scoped rules in .claude/rules/, and optional reading of AGENTS.md) and auto memory, notes Claude writes itself into a per-repository memory directory indexed by MEMORY.md. It also covers loading order, size guidance, the /memory command, and troubleshooting when instructions are not followed or seem lost after compaction.

Generated pages