Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.48 Home All releases olderv2.1.47 v2.1.49newer
Claude Code v2.1.48

CLAUDE.md Exclude Patterns

What

Exclude specific CLAUDE.md files from loading using glob patterns or absolute paths.

Usage (in settings.json):

{
  "memory": {
    "excludePatterns": [
      "/home/user/monorepo/CLAUDE.md",
      "**/node_modules/**/CLAUDE.md",
      "**/some-dir/.claude/rules/**"
    ]
  }
}
Details
  • Uses picomatch for glob pattern matching
  • Patterns match against absolute file paths
  • Only applies to User, Project, and Local memory types (Managed/policy files cannot be excluded)
Evidence

New excludePatterns setting (search for "Glob patterns or absolute paths of CLAUDE.md files to exclude from loading")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.48 →