Search across all documentation pages
10 pages in this section.
Learn best practices for managing context in Claude Code projects. Optimize CLAUDE.md, @mentions, and context resets for effective, long-term use.
Learn Claude Code context management with 10 examples, covering basic and intermediate use cases like generating and writing CLAUDE.md files.
Understand how CLAUDE.md provides Claude Code with persistent project memory, ensuring it remembers conventions, structure, and rules across coding sessions.
Use the /init command in Claude Code to automatically generate a CLAUDE.md file for new or existing projects, saving time on project memory setup.
Use @mentions in Claude Code prompts to specify exact files like @src/utils/foo.ts, ensuring the agent works with the correct content.
Learn how to use /compact and /clear in Claude Code to manage your session's context window, condense history, or start fresh.
A single-page roundup of every highlight bullet from the 9 pages in the Context Management section, grouped by source page so you can scan all 39 takeaways without opening each article individually.