<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dylan</title>
    <description>The latest articles on DEV Community by Dylan (@dylan_1e07ca370a5576).</description>
    <link>https://dev.to/dylan_1e07ca370a5576</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3847283%2F09997d34-c4a7-4ed8-a030-7b8a1e39bc56.png</url>
      <title>DEV Community: Dylan</title>
      <link>https://dev.to/dylan_1e07ca370a5576</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dylan_1e07ca370a5576"/>
    <language>en</language>
    <item>
      <title>Why Claude Code Ignores Your CLAUDE.md (And How to Fix It)</title>
      <dc:creator>Dylan</dc:creator>
      <pubDate>Sat, 28 Mar 2026 08:23:38 +0000</pubDate>
      <link>https://dev.to/dylan_1e07ca370a5576/why-claude-code-ignores-your-claudemd-and-how-to-fix-it-2hip</link>
      <guid>https://dev.to/dylan_1e07ca370a5576/why-claude-code-ignores-your-claudemd-and-how-to-fix-it-2hip</guid>
      <description>&lt;p&gt;If you've ever noticed Claude Code ignoring rules you carefully wrote in &lt;br&gt;
your CLAUDE.md, you're not imagining it.&lt;/p&gt;

&lt;p&gt;I spent hours adding instructions to my config file, only to watch Claude &lt;br&gt;
keep doing the exact things I told it not to. After digging into how &lt;br&gt;
Claude Code actually processes CLAUDE.md, I found four specific reasons &lt;br&gt;
this happens.&lt;/p&gt;
&lt;h2&gt;
  
  
  1. Your file is too long
&lt;/h2&gt;

&lt;p&gt;Claude Code starts selectively ignoring content after around 80 lines.&lt;/p&gt;

&lt;p&gt;This isn't a bug — it's a fundamental limitation of how LLMs process &lt;br&gt;
instructions. Frontier models can reliably follow approximately 150 &lt;br&gt;
instructions. Once you exceed that, the model starts making judgment &lt;br&gt;
calls about what to pay attention to.&lt;/p&gt;

&lt;p&gt;Most CLAUDE.md files I've seen are 100-200+ lines. Mine was 140 lines. &lt;br&gt;
I had no idea this was a problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Keep your CLAUDE.md under 80 lines. Every line should answer &lt;br&gt;
the question: "Would removing this cause Claude to make mistakes?" &lt;br&gt;
If not, cut it.&lt;/p&gt;
&lt;h2&gt;
  
  
  2. You have contradicting instructions
&lt;/h2&gt;

&lt;p&gt;This one is subtle. If your file says "use tabs for indentation" in one &lt;br&gt;
section and "use 2-space indentation" in another, Claude can't follow &lt;br&gt;
both — so it often ignores both.&lt;/p&gt;

&lt;p&gt;These contradictions are hard to spot manually, especially in longer files &lt;br&gt;
that have been edited over time by multiple people.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Audit your file for conflicting rules. Pay special attention to &lt;br&gt;
code style, testing requirements, and workflow instructions.&lt;/p&gt;
&lt;h2&gt;
  
  
  3. You're wasting tokens on personality lines
&lt;/h2&gt;

&lt;p&gt;Lines like these are extremely common:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You are a senior software engineer.
Be concise, helpful, and professional.
Think step by step carefully.
Always write clean, high-quality code.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These do almost nothing. Claude Code already has strong system-level &lt;br&gt;
instructions baked in. Personality lines waste tokens without changing &lt;br&gt;
behavior — and worse, they push your actual important instructions &lt;br&gt;
further down the file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Delete every line that doesn't give Claude specific, actionable &lt;br&gt;
information about your project.&lt;/p&gt;
&lt;h2&gt;
  
  
  4. You're using &lt;a class="mentioned-user" href="https://dev.to/file"&gt;@file&lt;/a&gt; references wrong
&lt;/h2&gt;

&lt;p&gt;Writing &lt;code&gt;@docs/architecture.md&lt;/code&gt; in your CLAUDE.md embeds that entire &lt;br&gt;
file into every single session. This bloats your context window &lt;br&gt;
immediately and leaves less room for actual work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Instead of embedding files, tell Claude when to read them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;For architecture questions, see docs/architecture.md
For API integration issues, see docs/stripe-guide.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  How bad is your CLAUDE.md?
&lt;/h2&gt;

&lt;p&gt;I scored mine after learning all this: &lt;strong&gt;34/100. Grade F.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I had 4 errors and 11 warnings in a file I thought was fine.&lt;/p&gt;

&lt;p&gt;After fixing everything: &lt;strong&gt;91/100. Grade A.&lt;/strong&gt; Claude's behavior &lt;br&gt;
noticeably changed — it stopped ignoring my testing requirements and &lt;br&gt;
started following my workflow instructions consistently.&lt;/p&gt;

&lt;p&gt;I built a CLI tool to automate this analysis:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;agentlint-dev
agentlint score CLAUDE.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Score: 34/100  Grade: F — Critical Issues

  Length &amp;amp; Density   0/25
  Specificity       19/25
  Structure         10/25
  Completeness       5/25
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It catches contradictions, token waste, duplicate rules, missing &lt;br&gt;
commands, &lt;a class="mentioned-user" href="https://dev.to/file"&gt;@file&lt;/a&gt; abuse, and more. Works with CLAUDE.md, AGENTS.md, &lt;br&gt;
and Cursor rules.&lt;/p&gt;

&lt;p&gt;→ &lt;a href="https://agentlint.carrd.co" rel="noopener noreferrer"&gt;agentlint.carrd.co&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  The minimal CLAUDE.md template
&lt;/h2&gt;

&lt;p&gt;If you want to start fresh, here's the structure that scores highest:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# Project&lt;/span&gt;
[2-3 sentences: what this project does]

&lt;span class="gh"&gt;# Stack  &lt;/span&gt;
[language, framework, key libraries]

&lt;span class="gh"&gt;# Commands&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Test: npm test
&lt;span class="p"&gt;-&lt;/span&gt; Build: npm run build
&lt;span class="p"&gt;-&lt;/span&gt; Lint: npm run lint

&lt;span class="gh"&gt;# Rules&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; [specific rule 1]
&lt;span class="p"&gt;-&lt;/span&gt; [specific rule 2]

&lt;span class="gh"&gt;# Never&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; [thing Claude should never do]

&lt;span class="gh"&gt;# Verify&lt;/span&gt;
After changes, run tests and confirm they pass before marking done.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Under 80 lines. No personality instructions. Specific commands. &lt;br&gt;
Clear rules. This is what a 90+ score looks like.&lt;/p&gt;




&lt;p&gt;What does your CLAUDE.md score? Run agentlint and let me know in &lt;br&gt;
the comments.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>ai</category>
      <category>productivity</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
