Claude Code setup guide
Claude Code ignoring CLAUDE.md or not loading it?
Run /context all in the affected Claude Code session and look for your CLAUDE.md under Memory files. If the project file is missing, start a fresh session from the repository root and check again. For a nested file, ask Claude to read a file beside it and watch for the Loaded line. If Claude ignores a rule in a loaded file, check the other loaded files for conflicting instructions.
By CWYN · Last updated · Not affiliated with Anthropic · Published
1. Check the files loaded at startup
In the affected Claude Code session, run /context all. Under Memory files, look for the path of your project’s CLAUDE.md. Use /memory to open an instruction file for editing. That menu also lists paths where you could create a file, so an entry there alone does not prove the file loaded.
2. Match the file to the launch directory
If the project file is missing, find the directory where you started Claude. On launch it looks there and in parent directories. A shared project file can live at CLAUDE.md or .claude/CLAUDE.md in the project root. Start a fresh session from that root and check the startup list again.
If your repository has no instruction file yet, use the CLAUDE.md generator to create one with your working preferences, then check that it loads.
3. Trigger instructions for a subdirectory
If the missing rule belongs only to a package, leave it with the package. Ask Claude to read an existing source file beside the nested CLAUDE.md. Watch the terminal for a Loaded line naming the instruction file. This lets you test a package rule from the repository root.
If the rule disappeared after a long conversation, check which instructions reload after Claude Code compacts the conversation.
4. Test the rule that Claude missed
When the file has loaded, compare its test instructions with those in other loaded files. Replace any conflicting directions with the repository’s actual test command. In a fresh session, ask which command to use without running it (see plan mode for read-only exploration). For a package-specific rule, have Claude read a file in that package first. Compare the answer with the command you recorded.
For examples of rules with a checkable result, see the CLAUDE.md template and examples.
Sources · Project memory and troubleshooting · Short answer as of Nov 22, 2026.