Omniscio

OmniscioGuidesLarge CLAUDE.md warning

Large CLAUDE.md will impact performance

The warning names one file and prints how big it is. That file is read at the start of every session it loads in, so its size is charged against your context whether or not you use it. Trimming it makes every session lighter.

Last checked against Anthropic's documentation on November 25, 2026. By the Omniscio team. Updated .

What is the exact message?

You will see this message in one of two forms. The first names the file and compares its size with a limit:

Large C:\Users\you\my-project\CLAUDE.md will impact performance (40.3k chars > 40.0k)

A later form reports the file against its character limit and suggests the command that opens the file:

/Users/you/my-project/CLAUDE.md is over the 150.0k-char limit (179.0k chars) · /memory to free up context

The path, the size and the limit are yours; the shape of the line is what to match. Both wordings name the same kind of file, and the fixes below apply to either one.

What does it mean?

Claude Code loads CLAUDE.md and CLAUDE.local.md from your working directory and from every directory above it, and concatenates everything it finds into context. Files in subdirectories load later, when Claude first reads, writes or edits a file there.

Anthropic's guidance for that content is short files: target under 200 lines per CLAUDE.md, because longer files consume more context and may reduce how consistently Claude follows them. The warning is Claude Code telling you a file has passed the point where that guidance applies.

It is a size warning, not a refusal: the warning itself stops nothing. A CLAUDE.md that loads at launch arrives whole up to 4 MiB, and a file larger than that is skipped entirely rather than trimmed. The next section covers the separate case, where a file that loads on demand is cut at its own per-file limit.

Which files count, and which limits apply?

Each CLAUDE.md file, each rules file and each @path import counts as a separate file, and Anthropic says a second warning appears when files that are each within their own length add up past a combined limit at session start. So one file can be under the number in the message and the session still be warned.

The character limits Anthropic publishes are for files that load on demand — a subdirectory's CLAUDE.md or a path-scoped rule — and depend on the context window:

The per-file limit Anthropic documents for files that load on demand.
Context windowLimit for one file
200K40,000 characters
1M, on Claude Opus 4.6 and Claude Sonnet 4.6200,000 characters
1M, on later models150,000 characters

Which limit your message compares against depends on the file. A root CLAUDE.md loads at launch and arrives whole up to 4 MiB, so a warning about that file is about cost. A subdirectory CLAUDE.md or a path-scoped rule is cut at the limit in the table, so a warning about one of those means the end of the file is not reaching Claude.

Past that limit Claude receives only the start of the file, ending in a note telling it to read the rest with the Read tool, so the later instructions are not in context until Claude chooses to fetch them. Anthropic notes that the limit began applying to files that load on demand in v2.1.309, so an older install may not enforce it.

How big is mine?

Count the file the way the message does, in characters:

wc -m CLAUDE.md

wc -m prints characters and wc -l prints lines, which is the measure Anthropic's 200-line guidance uses. On Windows, PowerShell counts characters with Get-Content CLAUDE.md -Raw | Measure-Object -Character. Run one of them on every file that loads, not only on the root file.

The list of files worth counting is short: CLAUDE.md in the folder where you start Claude Code and in each folder above it, any CLAUDE.local.md beside them, the files under .claude/rules/, and anything a file pulls in with @path. /memory lists the locations it knows about and opens any of them in your editor.

How do I fix it?

  1. Start with the trims Claude Code proposes. Anthropic's /doctor checkup proposes trims for a checked-in CLAUDE.md: it cuts content Claude can derive from the codebase — directory layouts, dependency lists, architecture overviews — and keeps pitfalls, rationale and conventions that differ from tool defaults. Anthropic says nothing in your files changes until you ask for the edits to be applied.
  2. Move instructions that only matter sometimes. Put them in .claude/rules/ with a paths: field in the frontmatter. A rule with paths loads only when Claude works with files that match, which is the split that takes weight out of every session.
  3. Move procedures out of instructions. A task you invoke — a review checklist, a release routine — belongs in a skill, which loads when it is used rather than at every startup.
  4. Delete what is stale or contradictory. Anthropic's guidance is to review the root file, nested files and .claude/rules/ periodically and remove outdated or conflicting instructions, because a contradiction lets Claude pick either one.
  5. In a monorepo, skip other teams' files. The claudeMdExcludes setting skips specific CLAUDE.md files by path or glob when memory loads, which removes files you never wanted in context in the first place.

What does not help

  • Splitting the file into @path imports. Anthropic states that imports help organization but do not reduce context, because the imported files load with the CLAUDE.md that imports them. Each one is counted separately, and the total does not move.
  • Looking for a setting to raise the limit. No key targets this check: the settings reference Anthropic publishes lists claudeMd and claudeMdExcludes for memory and nothing for the size check. A request to make the threshold configurable was closed as not planned. The documented way to lose the warning is to stop CLAUDE.md loading at all — CLAUDE_CODE_DISABLE_CLAUDE_MDS does that, and so does safe mode — which also loses every instruction in the file.
  • Compacting the conversation. Compaction shrinks the transcript, and the root CLAUDE.md is read again from disk and injected after it. The file itself does not get smaller.

How do I know it is fixed?

  • A new session starts without the warning, and /status shows no size warning.
  • wc -m prints a count under the limit your own message named.
  • Claude still does the things you kept. Give it a task that one of the kept conventions covers and check that it follows that convention.
  • If warnings remain, count the other files too — rules, local files and imports each count on their own, and the combined-limit warning is about the total.

Where these answers come from

  • Anthropic's memory page, read November 25, 2026: how CLAUDE.md files load, the 200-line and 4 MiB guidance, the warning at startup and in /status — described in prose, with neither line below printed there — the per-file character limits and what happens past them, the /doctor trims, path-scoped rules, imports, and /memory.
  • Anthropic's settings reference, read November 25, 2026: claudeMd and claudeMdExcludes, and the absence of any key for this size check. Its environment variables page, read the same day, lists CLAUDE_CODE_DISABLE_CLAUDE_MDS.
  • Issue #56406, which pastes the first wording and asks for the threshold to be configurable, and issue #92980, which pastes the second. Both were read on November 25, 2026.

Common questions

What does Large CLAUDE.md will impact performance mean?

One instruction file is bigger than Claude Code recommends, so it costs more context when it loads, and Anthropic's memory page says a file over 200 lines may also reduce how reliably Claude follows it. Nothing is refused: a CLAUDE.md that loads at launch arrives whole up to 4 MiB, and only a file larger than that is skipped.

What threshold does the warning use?

Read the numbers in your own message, because they differ between versions. Issue reports paste 40,000 characters in one form and 150,000 in a later one, and each line prints the limit beside the size it measured. Claude Code also warns when several files that are each within their limit add up past a combined limit at session start.

Does splitting CLAUDE.md into @path imports fix it?

No. Anthropic says splitting helps organization but does not reduce context, because imported files load together with the CLAUDE.md that imports them. Path-scoped rules in .claude/rules are the split that does reduce it, since those load only when Claude works with matching files.

Is there a setting that raises or silences the warning?

No key targets this check: Anthropic's settings reference, read on November 25, 2026, lists claudeMd and claudeMdExcludes for memory, and the documented ways to stop CLAUDE.md loading at all are CLAUDE_CODE_DISABLE_CLAUDE_MDS and safe mode. To keep the file and lose the warning, trim it or move instructions into path-scoped rules.

Will Claude stop following my instructions if I trim the file?

It should follow them more consistently, not less. Anthropic's guidance is that longer files can reduce adherence, and /doctor trims content Claude can derive from the codebase while keeping pitfalls, rationale and conventions that differ from tool defaults. Keep the rules you rely on and cut the restatement.