Claude Code /context and /memory do different jobs — here is how to use both
Claude Code's /context and /memory slash commands are frequently confused, but they serve distinct purposes. Running /context mid-session shows exactly which files — including CLAUDE.md rules — actually loaded into the current context window, making it the right diagnostic tool before editing any file. The /memory command, by contrast, opens a file picker to edit what will load in future sessions, and changes made mid-session do not affect the current one. Not all CLAUDE.md files load at startup; project-root files load fully, while subdirectory files load lazily only when Claude accesses that folder. Auto-generated memory notes are stored in ~/.claude/projects/ and capped at 200 lines or 25KB, with content beyond that threshold silently excluded from sessions.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in