Answer: Use the `claudeMdExcludes` setting to skip specific CLAUDE.md files by path or glob pattern so they never load. Put the setting in `.claude/settings.local.json` if you only want the exclusions for yourself. Status: Check failed Entry: tool/claude-code/memory-and-context/exclude-irrelevant-claude-md-files Revision: 1 Digest: sha256:e73daf426e655365 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:29Z Last changed: 2026-11-13T03:04:29Z Last verified: 2026-11-19T12:17:08Z Last attempt: 2026-11-20T12:21:36Z (failed) Next check: 2026-11-20T13:21:36Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of setting name | claudeMdExcludes | [1] | 2026-11-19 local settings file | .claude/settings.local.json | [1] | 2026-11-19 example pattern | **/packages/web/** | [1] | 2026-11-19 pattern syntax note | **/ | [1] | 2026-11-19 settings scopes | user, project, local, or managed | [1] | 2026-11-19 Sources: [1] Anthropic. "Set up Claude Code in a monorepo or large codebase". https://code.claude.com/docs/en/large-codebases.md Role: primary. Accessed: 2026-11-19T12:17:08Z Quote: "The `claudeMdExcludes` setting skips specific files by path or glob pattern so they never load." (Supports: setting name) Quote: "If you only want these exclusions for yourself, put the setting in `.claude/settings.local.json`." (Supports: local settings file) Quote: ""**/packages/web/**"" (Supports: example pattern) Quote: "Patterns use glob syntax matched against absolute file paths, so start relative-style patterns with `**/` to match anywhere in the tree." (Supports: pattern syntax note) Quote: "You can set `claudeMdExcludes` at any [settings scope](https://code.claude.com/docs/en/settings.md#where-settings-live): user, project, local, or managed." (Supports: settings scopes) Published: 2026-11-19T03:54:03Z Snapshot SHA-256: 5764008ddd893fa5177b2e6239155b0a8796fd594c53e5071927ad748cc6790e (captured 2026-11-13T03:04:28Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:04:29Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T12:17:08Z. No independent second source is configured for this entry Last successful check: 2026-11-19T12:17:08Z Last attempt: 2026-11-20T12:21:36Z (failed) Notes and limitations: Extracted automatically from a single official source (section "Exclude irrelevant CLAUDE.md files"). Related: https://latestn.com/tool/claude-code/memory-and-context/extension-context-cost How much context do Claude Code extensions like CLAUDE.md, Skills, and MCP cost, and how do they load? https://latestn.com/tool/claude-code/memory-and-context/keep-claude-md-short How do I keep CLAUDE.md short in Claude Code? https://latestn.com/tool/claude-code/memory-and-context/layer-claude-md-files-by-directory How do I layer CLAUDE.md files by directory in Claude Code for a monorepo? https://latestn.com/tool/claude-code/memory-and-context/context-window-full What happens when the Claude Code context window fills up? https://latestn.com/tool/claude-code/memory-and-context/disable-added-context-reminders How do I turn off the extra context reminders Claude Code adds outside the system prompt? https://latestn.com/tool/claude-code/memory-and-context/enable-disable-auto-memory How do I enable or disable auto memory in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:21:36Z | check-failed | Extraction did not pass verification: answer contains `"claudeMdExcludes": ["**/packages/web/**"]`, which does not appear in the source | — 2026-11-13T03:04:29Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/memory-and-context/exclude-irrelevant-claude-md-files/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/memory-and-context/exclude-irrelevant-claude-md-files POST: https://latestn.com/dispute/tool/claude-code/memory-and-context/exclude-irrelevant-claude-md-files with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/memory-and-context/exclude-irrelevant-claude-md-files?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I exclude irrelevant CLAUDE.md files in Claude Code? Revision 1, last verified 2026-11-19T12:17:08Z. https://latestn.com/tool/claude-code/memory-and-context/exclude-irrelevant-claude-md-files (accessed 2026-11-21T10:01:42Z). @misc{LatestN_tool_claude_code_memory_and_context_exclude_irrelevant_claude_md_files_r1, title = {How do I exclude irrelevant CLAUDE.md files in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/memory-and-context/exclude-irrelevant-claude-md-files}}, note = {Revision 1; digest sha256:e73daf426e655365; last verified 2026-11-19T12:17:08Z; accessed 2026-11-21T10:01:42Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/memory-and-context/exclude-irrelevant-claude-md-files