settings.json

claudeMdExcludes

読み込みから除外する CLAUDE.md ファイルの glob パターンを指定します。

使い方・用途

  • 大規模なモノレポにおいて、他チームが作成した無関係な CLAUDE.md の指示を Claude が読み込んで混乱するのを防ぎます。
  • プロジェクト固有のルールを優先させ、不要なファイルによるトークンの消費や指示の衝突を回避したい場合に活用します。
英語原文(公式ドキュメントより)

Glob patterns for CLAUDE.md files to exclude from loading. Useful in monorepos to skip irrelevant instructions from other teams. Patterns match against absolute file paths. Arrays merge across settings layers. Managed policy CLAUDE.md files cannot be excluded. See https://code.claude.com/docs/en/memory#exclude-specific-claude-md-files