<?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: rulereceipt</title>
    <description>The latest articles on DEV Community by rulereceipt (@rulereceipt).</description>
    <link>https://dev.to/rulereceipt</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4105436%2F5dae1080-1e49-4757-a56d-11e965055dbb.png</url>
      <title>DEV Community: rulereceipt</title>
      <link>https://dev.to/rulereceipt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rulereceipt"/>
    <language>en</language>
    <item>
      <title>I parsed 559 public CLAUDE.md files. Most of what's in them isn't rules.</title>
      <dc:creator>rulereceipt</dc:creator>
      <pubDate>Wed, 02 Sep 2026 05:11:55 +0000</pubDate>
      <link>https://dev.to/rulereceipt/i-parsed-559-public-claudemd-files-most-of-whats-in-them-isnt-rules-3flo</link>
      <guid>https://dev.to/rulereceipt/i-parsed-559-public-claudemd-files-most-of-whats-in-them-isnt-rules-3flo</guid>
      <description>&lt;p&gt;I've been building a tool that checks whether Claude Code actually followed the rules in your CLAUDE.md. Early on I realised I was testing it against one file: my own. So I went and got 559 real ones.&lt;/p&gt;

&lt;p&gt;CLAUDE.md, AGENTS.md, .cursorrules, Copilot instructions, Windsurf, Gemini — from PyTorch, Kubernetes, Elasticsearch and a few hundred smaller repos. 23,704 items parsed out of them, no crashes.&lt;/p&gt;

&lt;p&gt;Two things came out of it that I didn't expect.&lt;/p&gt;

&lt;p&gt;62.9% of a rules file isn't a rule&lt;/p&gt;

&lt;p&gt;Directory listings. Reference tables. Import examples. Architecture notes. Glob syntax cheatsheets.&lt;/p&gt;

&lt;p&gt;All useful documentation. None of it is telling the agent to do anything. And it's sitting in the same file as the actual rules, competing for the same attention.&lt;/p&gt;

&lt;p&gt;So when someone says their CLAUDE.md is 400 lines, it's usually closer to 150 lines of rules with 250 lines of README stapled on.&lt;/p&gt;

&lt;p&gt;That reframes the "my CLAUDE.md is too long" problem. It's often not too many rules. It's rules buried in documentation.&lt;/p&gt;

&lt;p&gt;Of the real rules, only 43.5% can be checked mechanically&lt;/p&gt;

&lt;p&gt;Here's the split that surprised me more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Checkable:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Never commit directly to main" — you can look at what git actually ran&lt;/li&gt;
&lt;li&gt;"No console.log in committed code" — you can look at what was written to files&lt;/li&gt;
&lt;li&gt;"Run the test suite before pushing" — either the command ran or it didn't&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Not checkable by any tool, ever:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Surface bad news first"&lt;/li&gt;
&lt;li&gt;"Explain the trade-off before choosing an approach"
&lt;/li&gt;
&lt;li&gt;"Keep changes reviewable"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There's no command to inspect for the second group. It's not a limitation of my parser — the information isn't in the transcript. A person has to read it and decide.&lt;/p&gt;

&lt;p&gt;56.5% of the rules people actually write fall in that second group.                                                                                                                                     &lt;/p&gt;

&lt;p&gt;The distribution barely moved as the corpus grew&lt;/p&gt;

&lt;p&gt;I started with 40 files: 65.4% non-instructions.&lt;br&gt;
  At 559 files: 62.9%.&lt;/p&gt;

&lt;p&gt;Between those two points I added formats the parser had never been tuned on. It moved 2.5 percentage points.                                                                                            &lt;/p&gt;

&lt;p&gt;That's the part I'd actually stand behind. It suggests "is this a directive?" is a property of language, not of file format — which matters, because the alternative approach (recognising every way people format&lt;br&gt;
  rules) is an infinite list.&lt;/p&gt;

&lt;p&gt;What I don't know&lt;/p&gt;

&lt;p&gt;I don't have a controlled experiment showing longer files perform worse. That's the obvious next question and I haven't run it.                                             &lt;/p&gt;

&lt;p&gt;But if a model is budgeting attention across a long file, it seems worth knowing that most of that file was never telling it to do anything.&lt;/p&gt;

&lt;p&gt;The tool&lt;/p&gt;

&lt;p&gt;It's called RuleReceipt. Free, runs locally, no account:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  npx rulereceipt check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I also published the part where it got things badly wrong — it reported 10 violations on a real session of mine and every single one was false. That write-up is at &lt;a href="https://rulereceipt.dev/postmortem" rel="noopener noreferrer"&gt;https://rulereceipt.dev/postmortem&lt;/a&gt;, including the wrong turn I took while fixing it.&lt;/p&gt;

&lt;p&gt;Happy to answer anything about the method. The corpus was public files only, and the classifier is in the repo.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devtools</category>
      <category>claude</category>
      <category>cursor</category>
    </item>
  </channel>
</rss>
