Skipping CLAUDE.md for a Package You Never Touch
Your monorepo has a legacy package another team owns, and you never want its CLAUDE.md or rules files loading into your sessions at all, regardless of which task you're running.
What setting does this?
The correct answer is "claudeMdExcludes — a glob list that skips
loading it."
claudeMdExcludes is a personal filter that skips a package's
CLAUDE.md and rules files entirely, regardless of task —
distinct from additionalDirectories, which grants access rather
than restricting it, and distinct from a Read deny rule in
permissions.deny, which blocks file reads but has nothing to do
with whether CLAUDE.md loads. There's no need to delete anything
locally; the setting is exactly built for this case.
Share this question