October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

Claude Code: Use /context to Check Loaded Files and /memory to Manage Them

Use /context to inspect the files loaded into a Claude Code session; use /memory to find, edit, and manage persistent memory sources.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Run /context to see which instruction files and rules loaded into the current Claude Code session. Use /memory to find and edit memory files or manage auto memory. If you change which instructions should load, verify the result with /context in the next session.

What is the difference between /context and /memory?

Command Purpose What it lets you do
/context Inspect what loaded at launch Check the current session’s loaded CLAUDE.md files and rules, including the Memory files list.
/memory Manage memory sources Browse memory locations, open or create a selected file in your editor, open the auto-memory folder, and toggle auto memory when supported.

Use /context to answer “what did this session load?” Use /memory to answer “where are the files, and what can I change?” The commands are complementary: one inspects loaded context; the other helps manage its sources.

As an Amazon Associate I earn from qualifying purchases.

What do CLAUDE.md files and auto memory do?

CLAUDE.md: instructions you write

CLAUDE.md files contain user-written project guidance, rules, and preferences. Anthropic describes them as context, not enforced configuration. They can guide Claude, but prose in a file is not a technical access-control guarantee; use hooks and settings when you need technical enforcement.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Common scopes include managed organization-wide instructions, user instructions in ~/.claude/CLAUDE.md, project instructions in ./CLAUDE.md or ./.claude/CLAUDE.md, and private project instructions in ./CLAUDE.local.md. Project and local instruction files in ancestor directories are loaded at launch; files in subdirectories are loaded on demand.

Auto memory: learnings Claude records

Auto memory is written by Claude to retain useful learnings and patterns, such as preferences and corrections. By default, its files are stored in ~/.claude/projects/<project>/memory/. The MEMORY.md index is loaded at session start, up to the first 200 lines or 25 KB, whichever comes first. Separate topic files are read on demand.

Auto memory is on by default in local sessions and off by default in self-hosted environments outside Claude Tag sessions. You can also disable it for a project with autoMemoryEnabled or globally with CLAUDE_CODE_DISABLE_AUTO_MEMORY=1. Worktrees and subdirectories in one repository share the repository’s memory directory; memory is machine-local and is not shared across machines or cloud environments.

How do I make Claude Code load a different instruction file?

  1. Choose the right file for the guidance. Put project-wide instructions in a project CLAUDE.md, personal preferences in ~/.claude/CLAUDE.md, and private project preferences in CLAUDE.local.md. Keep durable guidance concise and concrete.
  2. Set the instruction-file selection mode if needed. In Claude Code, open /config and change Project instructions. Documented choices include claude-md-or-agents-md, claude-md-and-agents-md, claude-md, and managed-only. The setting also has a settings-file equivalent. A change applies from the next message and in every new session.
  3. Open or create the file. Run /memory and select the relevant file. It opens in your editor; selecting a file that does not exist creates it first. Use the command’s auto-memory controls if you want to toggle that feature in a supported session.
  4. Check the next session. Start a new session, run /context, and inspect the Memory files list for the expected project instruction file. A file’s presence on disk alone does not prove it loaded.

Why might a CLAUDE.md file not appear in context?

Check the instruction selection mode

The default Project instructions mode reads CLAUDE.md files, or AGENTS.md files if there is no CLAUDE.md or CLAUDE.local.md in the working directory or above it. The claude-md-and-agents-md mode reads both; other modes can select only CLAUDE.md files or managed instructions. Individual settings cannot exclude managed policy instructions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check where the file sits

Ancestor project and local instruction files load at launch, while subdirectory files load on demand. If a file is in a subdirectory, it may not be listed until work reaches that directory. Use /context to inspect the actual session state.

Check imports

A CLAUDE.md can import another file with @path/to/import. Relative and absolute paths are supported, and imports can be recursive up to four hops. Imported files load alongside the file that references them. External imports outside the working directory require approval the first time. An import written inside a Markdown code span or fenced code block is not evaluated.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How much should you put in instruction and memory files?

Anthropic recommends keeping each CLAUDE.md under 200 lines as a target: longer instructions use more context and can reduce adherence. This is a recommendation, not a product limit, and instructions are not a hard-enforcement mechanism. It is separate from the documented 4 MiB file-load ceiling for CLAUDE.md files and from auto memory’s startup limit for the MEMORY.md index.

Auto memory can be re-enabled from a directly launched terminal session if it was disabled: background sessions and sessions started by another Claude Code session cannot use the toggle to turn it back on.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For current details, see Anthropic’s Claude Code memory guide and settings documentation.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.