← Reddit

How large is your guys Claude.md file?

Reddit · TheNewMattschoe · July 2, 2026
A developer shared that their Claude.md files typically reach approximately 28.5k tokens because they maintain a full filemap to prevent Claude from using exploring subagents, which tend to be more token-intensive than a large Claude.md file. The developer questioned whether this strategy is optimal and asked others about their approach to Claude.md file management.

Detailed Analysis

A Reddit thread in r/ClaudeAI surfaces a practical question that has become increasingly common among power users of Claude Code: how large should a CLAUDE.md configuration file be, and what tradeoffs come with that size. The original poster describes maintaining files that consistently reach approximately 28,500 tokens, a substantial footprint driven by the deliberate inclusion of a complete file map of their codebase. Their stated rationale is to avoid triggering Claude's exploratory subagent behavior, which they've found to consume more tokens overall than simply front-loading the context with a comprehensive project structure. This is a notable optimization strategy that reflects how developers are learning to work within and around the token economics of agentic coding tools.

CLAUDE.md files serve as persistent context documents that Claude Code automatically loads at the start of a session, giving the model standing information about a project's structure, conventions, dependencies, and preferences without requiring the user to repeat that information in every prompt. The tension the poster identifies is real and central to effective use of the tool: smaller CLAUDE.md files preserve more of the context window for actual work but may force Claude to spend turns and tokens exploring the filesystem to understand the project, while larger, more exhaustive files consume context budget upfront but can shortcut that exploration phase. Whether a 28.5k-token file is "worth it" depends heavily on project size, how often the codebase changes (since a stale file map could mislead the model), and how much of the context window is left over for the actual coding task at hand.

This kind of grassroots experimentation matters because Anthropic has provided relatively lightweight formal guidance on optimal CLAUDE.md sizing, leaving the developer community to empirically discover best practices through trial and error. The thread format itself—developers comparing notes on token counts, file structures, and subagent behavior—is emblematic of how agentic coding tools are still young enough that their usage patterns are being crowd-sourced rather than dictated by official documentation. Anthropic has published general recommendations around keeping such files concise and focused, but real-world usage clearly diverges based on project complexity and individual workflow preferences, with some users clearly favoring an "invest tokens upfront to save tokens later" philosophy.

More broadly, this conversation is a symptom of a larger trend in AI-assisted software development: as coding agents like Claude Code, Cursor, and others become more autonomous, the design of persistent context and memory files is emerging as its own discipline, almost analogous to prompt engineering but for long-lived project state rather than single queries. As context windows grow and agents are trusted with more autonomous exploration and multi-step tasks, questions about how to allocate that context budget—between static project knowledge, dynamic exploration, and the actual reasoning needed to complete a task—will only become more central to power-user workflows. The fact that everyday practitioners are actively engineering around subagent costs and token efficiency signals that agentic coding tools have moved from novelty to serious daily-use infrastructure, where marginal efficiency gains meaningfully affect cost and productivity at scale.

Read original article →