Your CLAUDE.md Might Be Making Claude Code Worse

The video explains that regularly deleting or streamlining the claude.md file can improve Claude Code’s performance by reducing conflicting rules and overly rigid examples that limit the model’s adaptability, advocating for progressive disclosure to load context and skills on demand instead. It also introduces the “doctor” skill, which audits and optimizes the AI environment by identifying inefficiencies and recommending improvements to maintain necessary safeguards while enhancing Claude’s effectiveness.

In this video, the creator explores advice from Boris Cherny, head of Claude Code, who recommends deleting your claude.md file every six months to improve performance. The claude.md file often contains conflicting rules and documentation that Claude tries to reconcile before executing tasks, which can cause confusion and inefficiency. The video investigates this claim by testing how Claude behaves with and without the claude.md file, alongside examining new context engineering principles and a new diagnostic skill called “doctor” that audits your AI environment.

One key insight discussed is that feeding Claude too many fixed examples or constraints in claude.md can limit its potential. While examples help with consistency and pattern matching, they can also restrict the model’s ability to innovate or adapt to new capabilities. The video suggests reviewing and possibly reducing overly rigid examples to allow Claude more freedom to “fly” and generate better outputs, especially as models have evolved significantly over the past few years.

The concept of progressive disclosure is highlighted as a more efficient way to manage context and skills. Instead of loading all information upfront in claude.md, progressive disclosure loads relevant data on demand, reducing token usage and speeding up responses. Skills are designed to be self-contained with their own context, making global context in claude.md less necessary. This approach aligns with Claude’s native intelligence to use skills effectively without redundant or conflicting instructions.

Testing showed that Claude can generally retrieve necessary information and route tasks correctly without claude.md, thanks to progressive disclosure and built-in skill management. However, removing claude.md entirely can sometimes lead to confidently wrong answers if unique information only exists there. The video emphasizes that claude.md should be streamlined to avoid duplication and constraints but not completely discarded if it contains critical, irreversible rules that protect business operations or ensure safety.

Finally, the video introduces the “doctor” skill, a tool that audits your AI environment for inefficiencies, duplicates, and unused skills, helping you optimize your setup. It provides actionable recommendations to clean up claude.md and improve performance. The creator encourages viewers to use this tool regularly, tailor their claude.md to their specific use cases, and leverage progressive disclosure to maximize Claude’s capabilities while maintaining necessary safeguards.