AI News Daily한국어
← AI tool tips
Claude Code✓ Confirmed in official docsAdded Dec 4

How to skip CLAUDE.md files from packages you never touch with claudeMdExcludes

When you start Claude Code from the repository root, each subdirectory's CLAUDE.md can load on demand as Claude works there. For areas you never work in, such as another team's package or legacy code, the claudeMdExcludes setting keeps those files from ever loading.

For a personal list, put it in .claude/settings.local.json (add the file to your gitignore yourself if you created it by hand):

{
  "claudeMdExcludes": [
    "**/packages/web/**"
  ]
}

Patterns are globs matched against absolute paths, so start relative-style patterns with **/. Common forms:

  • **/packages/*/CLAUDE.md: drop every package's CLAUDE.md but keep the root one
  • **/packages/legacy-*/**: drop CLAUDE.md and rules files in matching packages
  • /home/user/monorepo/legacy/CLAUDE.md: drop one file by absolute path

You can set it at user, project, local, or managed scope, and the arrays merge, so a team can commit defaults while individuals add their own. A managed CLAUDE.md deployed by your organization is never skipped.

The list is static. If your focus changes from task to task, start claude from that package's directory instead: it then loads only that directory's and its ancestors' CLAUDE.md files. Run /context all and check Memory files to see what actually loaded.

Get notified when a new tip lands

Tip alerts only go out in the app. Install it and turn notifications on.

Get the app

All tips →