<?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: Clogmeter</title>
    <description>The latest articles on DEV Community by Clogmeter (@clogmeter).</description>
    <link>https://dev.to/clogmeter</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%2F4226737%2F74dda585-e330-471a-a25c-289875a9555d.png</url>
      <title>DEV Community: Clogmeter</title>
      <link>https://dev.to/clogmeter</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/clogmeter"/>
    <language>en</language>
    <item>
      <title>Does Claude Code read AGENTS.md?</title>
      <dc:creator>Clogmeter</dc:creator>
      <pubDate>Sun, 22 Nov 2026 08:37:11 +0000</pubDate>
      <link>https://dev.to/clogmeter/does-claude-code-read-agentsmd-1hci</link>
      <guid>https://dev.to/clogmeter/does-claude-code-read-agentsmd-1hci</guid>
      <description>&lt;p&gt;&lt;em&gt;Yes, since Claude Code v2.1.277, but only when there's no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in your folder or above it. Here's which files switch it off, how to make Claude read both, and what it costs.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://clogmeter.vercel.app/guides/does-claude-code-read-agents-md" rel="noopener noreferrer"&gt;clogmeter.vercel.app&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Yes, from Claude Code v2.1.277, but by default only when your project has no &lt;code&gt;CLAUDE.md&lt;/code&gt;.&lt;/strong&gt; If a &lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;.claude/CLAUDE.md&lt;/code&gt; or &lt;code&gt;CLAUDE.local.md&lt;/code&gt; sits in the folder you start Claude in or any folder above it, Claude reads those files and skips &lt;code&gt;AGENTS.md&lt;/code&gt; completely. To get both, either start &lt;code&gt;CLAUDE.md&lt;/code&gt; with &lt;code&gt;@AGENTS.md&lt;/code&gt;, or set &lt;strong&gt;Project instructions&lt;/strong&gt; to &lt;code&gt;claude-md-and-agents-md&lt;/code&gt; in &lt;code&gt;/config&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;People have been asking this for months. In an &lt;a href="https://www.reddit.com/r/ClaudeAI/comments/1s1oz6f/" rel="noopener noreferrer"&gt;r/ClaudeAI thread&lt;/a&gt;, "Do we still need to maintain CLAUDE.md and AGENTS.md?", the poster asks: "Has claude and claude code adopted AGENTS.md? I'm symlinking them but wondering if I can just drop CLAUDE.md all together." When native support was announced in September, the &lt;a href="https://www.reddit.com/r/ClaudeAI/comments/1wjxvwz/" rel="noopener noreferrer"&gt;top question&lt;/a&gt; was the same one: "Should we delete just CLAUDE.md, and just use AGENTS.md instead?" This post answers both. For who reads which file in general, see &lt;a href="https://clogmeter.vercel.app/guides/claude-md-vs-agents-md" rel="noopener noreferrer"&gt;CLAUDE.md vs AGENTS.md vs Cursor rules&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Behaviour is taken from Anthropic's Claude Code docs, &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;How Claude remembers your project&lt;/a&gt;, and the v2.1.277 changelog (checked 22 Nov 2026). Claude Code changes often, so confirm on your version with the checks at the end.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What Claude reads, by repo layout
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Your repo has&lt;/th&gt;
&lt;th&gt;Claude Code reads (default setting)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;AGENTS.md&lt;/code&gt; only&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;AGENTS.md&lt;/code&gt;. You see &lt;code&gt;no CLAUDE.md found; AGENTS.md loaded: â€¦&lt;/code&gt; at the start of the session&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;AGENTS.md&lt;/code&gt; and a &lt;code&gt;CLAUDE.md&lt;/code&gt; (or &lt;code&gt;CLAUDE.local.md&lt;/code&gt;) in your folder or above&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;CLAUDE.md&lt;/code&gt; files only. &lt;code&gt;AGENTS.md&lt;/code&gt; is ignored&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A &lt;code&gt;CLAUDE.md&lt;/code&gt; that starts with &lt;code&gt;@AGENTS.md&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Both, through the import. &lt;code&gt;AGENTS.md&lt;/code&gt; loads once&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;CLAUDE.md&lt;/code&gt; symlinked to &lt;code&gt;AGENTS.md&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;The content once&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When &lt;code&gt;AGENTS.md&lt;/code&gt; is the one being read, Claude treats it the way it treats &lt;code&gt;CLAUDE.md&lt;/code&gt;. Every &lt;code&gt;AGENTS.md&lt;/code&gt; and &lt;code&gt;.claude/AGENTS.md&lt;/code&gt; from your launch folder upward loads at startup. A subfolder's &lt;code&gt;AGENTS.md&lt;/code&gt; loads when Claude first reads a file in that folder, as long as that folder has no &lt;code&gt;CLAUDE.md&lt;/code&gt; of its own. &lt;code&gt;@path&lt;/code&gt; imports inside it are expanded.&lt;/p&gt;

&lt;h2&gt;
  
  
  The files that switch AGENTS.md off
&lt;/h2&gt;

&lt;p&gt;The check only looks at three project files. Some files that look like they should count don't.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Count&lt;/strong&gt; (Claude reads these instead of &lt;code&gt;AGENTS.md&lt;/code&gt;): &lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;.claude/CLAUDE.md&lt;/code&gt; and &lt;code&gt;CLAUDE.local.md&lt;/code&gt;, in your working folder or any folder above it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't count&lt;/strong&gt; (they load alongside &lt;code&gt;AGENTS.md&lt;/code&gt;): your personal &lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt;, your organisation's managed &lt;code&gt;CLAUDE.md&lt;/code&gt;, and &lt;code&gt;.claude/rules/&lt;/code&gt; files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never read:&lt;/strong&gt; &lt;code&gt;AGENTS.local.md&lt;/code&gt;, &lt;code&gt;AGENTS.override.md&lt;/code&gt; (a Codex file) and anything under a &lt;code&gt;.agents/&lt;/code&gt; folder.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The trap is &lt;code&gt;CLAUDE.local.md&lt;/code&gt;. If you add one for your own uncommitted notes in a team repo that relies on &lt;code&gt;AGENTS.md&lt;/code&gt;, Claude stops reading the team's &lt;code&gt;AGENTS.md&lt;/code&gt; for you, with no error. A &lt;code&gt;CLAUDE.md&lt;/code&gt; in a parent folder, for example in a monorepo root or your home folder above the repo, does the same.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to make Claude read both
&lt;/h2&gt;

&lt;p&gt;Type &lt;code&gt;/config&lt;/code&gt; in a session and change &lt;strong&gt;Project instructions&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;What loads&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;claude-md-or-agents-md&lt;/code&gt; (default)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;CLAUDE.md&lt;/code&gt; files, or &lt;code&gt;AGENTS.md&lt;/code&gt; when there is no &lt;code&gt;CLAUDE.md&lt;/code&gt;/&lt;code&gt;CLAUDE.local.md&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;claude-md-and-agents-md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Both. In each folder &lt;code&gt;CLAUDE.md&lt;/code&gt; loads first, then &lt;code&gt;AGENTS.md&lt;/code&gt;. A file already pulled in by an import or symlink isn't read twice&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;claude-md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;CLAUDE.md&lt;/code&gt; only (the old behaviour)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;managed-only&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Only your organisation's managed &lt;code&gt;CLAUDE.md&lt;/code&gt; and auto memory at launch&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;To set it in a file, add it to your user settings (&lt;code&gt;~/.claude/settings.json&lt;/code&gt;) or managed settings. Claude Code ignores this entry in project and local settings files, so you can't commit it for the team:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"pluginConfigs"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"cc-plugin-agents-md@builtin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"options"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"instructionFiles"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"claude-md-and-agents-md"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before v2.1.285 the plugin ID was &lt;code&gt;agents-md@builtin&lt;/code&gt;. Later versions accept either ID.&lt;/p&gt;

&lt;p&gt;For a team, the setting doesn't help, because each person has to change it themselves. A committed &lt;code&gt;CLAUDE.md&lt;/code&gt; whose first line is &lt;code&gt;@AGENTS.md&lt;/code&gt; works for everyone on any version.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can I delete CLAUDE.md and keep only AGENTS.md?
&lt;/h2&gt;

&lt;p&gt;Yes, if all of these are true:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Everyone is on v2.1.277 or later.&lt;/strong&gt; Sessions on Amazon Bedrock or with telemetry turned off needed v2.1.281. Run &lt;code&gt;claude --version&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nobody keeps a &lt;code&gt;CLAUDE.local.md&lt;/code&gt;&lt;/strong&gt; or a parent-folder &lt;code&gt;CLAUDE.md&lt;/code&gt;, or they've switched to &lt;code&gt;claude-md-and-agents-md&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You don't rely on &lt;code&gt;InstructionsLoaded&lt;/code&gt; hooks.&lt;/strong&gt; They don't fire for an &lt;code&gt;AGENTS.md&lt;/code&gt; that Claude reads directly. They do fire for an imported one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You don't need extra folders' instructions&lt;/strong&gt; through &lt;code&gt;--add-dir&lt;/code&gt; with &lt;code&gt;CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD&lt;/code&gt;. Their &lt;code&gt;CLAUDE.md&lt;/code&gt; loads, but their &lt;code&gt;AGENTS.md&lt;/code&gt; doesn't.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If any of these fails, keep a one-line &lt;code&gt;CLAUDE.md&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;@AGENTS.md

&lt;span class="gu"&gt;## Claude Code only
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;Hooks live in .claude/settings.json; don't duplicate their rules here.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Anthropic's docs say keeping the import never makes Claude read &lt;code&gt;AGENTS.md&lt;/code&gt; twice, whichever setting you use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Clean up old workarounds
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A &lt;code&gt;CLAUDE.md&lt;/code&gt; that only says &lt;code&gt;@AGENTS.md&lt;/code&gt;:&lt;/strong&gt; you can leave it, or delete it if every session can read &lt;code&gt;AGENTS.md&lt;/code&gt; directly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A &lt;code&gt;CLAUDE.md&lt;/code&gt; that says "read AGENTS.md" in words:&lt;/strong&gt; fix this one. Claude only sees &lt;code&gt;AGENTS.md&lt;/code&gt; if it decides to open it, and because the &lt;code&gt;CLAUDE.md&lt;/code&gt; exists, the native read is switched off. Replace the sentence with &lt;code&gt;@AGENTS.md&lt;/code&gt;, or delete the file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A &lt;code&gt;CLAUDE.md&lt;/code&gt; symlink to &lt;code&gt;AGENTS.md&lt;/code&gt;:&lt;/strong&gt; it still works and loads once. Claude's Edit and Write tools won't write through the link and edit &lt;code&gt;AGENTS.md&lt;/code&gt; instead. On Windows clones without &lt;code&gt;core.symlinks&lt;/code&gt;, the link becomes a one-line text file, so use the import there. (Cursor is a separate case: see &lt;a href="https://clogmeter.vercel.app/guides/agents-md-claude-md-symlink" rel="noopener noreferrer"&gt;when symlinks double your tokens&lt;/a&gt;.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A &lt;code&gt;SessionStart&lt;/code&gt; hook that prints &lt;code&gt;AGENTS.md&lt;/code&gt;:&lt;/strong&gt; remove it. Now that Claude reads the file itself, the hook adds a second copy every session.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;p&gt;Whatever Claude reads at startup is paid for in every session, before your first prompt. Switching to native &lt;code&gt;AGENTS.md&lt;/code&gt; doesn't make the file cheaper. It only changes which file you pay for. The setting that can raise your bill is &lt;code&gt;claude-md-and-agents-md&lt;/code&gt;: if your &lt;code&gt;CLAUDE.md&lt;/code&gt; and &lt;code&gt;AGENTS.md&lt;/code&gt; were maintained as separate copies of the same rules, both now load. Claude Code dedupes files (by import, symlink, or the same file loaded twice), not repeated paragraphs, so overlapping text in two files is paid for twice. It also gives you two places for an "always" and a "never" to contradict each other.&lt;/p&gt;

&lt;p&gt;For size limits, see &lt;a href="https://clogmeter.vercel.app/guides/how-long-should-agents-md-be" rel="noopener noreferrer"&gt;How long should CLAUDE.md / AGENTS.md be?&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check what Claude read
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Start a fresh session&lt;/strong&gt; and look for the line &lt;code&gt;no CLAUDE.md found; AGENTS.md loaded: /path/to/AGENTS.md&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run &lt;code&gt;/memory&lt;/code&gt;&lt;/strong&gt; and look for the &lt;code&gt;AGENTS.md&lt;/code&gt; path in the list. Before v2.1.280, &lt;code&gt;/memory&lt;/code&gt; and &lt;code&gt;/context&lt;/code&gt; didn't list a directly read &lt;code&gt;AGENTS.md&lt;/code&gt;, so ask Claude what its project instructions say instead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not loading?&lt;/strong&gt; Look for a &lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;.claude/CLAUDE.md&lt;/code&gt; or &lt;code&gt;CLAUDE.local.md&lt;/code&gt; in your folder or above (other than &lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt;). Then check &lt;code&gt;claude --version&lt;/code&gt;. Finally, check that &lt;code&gt;/config&lt;/code&gt; â†’ Project instructions isn't set to &lt;code&gt;claude-md&lt;/code&gt; or &lt;code&gt;managed-only&lt;/code&gt;. If the setting isn't there at all, your session can't load &lt;code&gt;AGENTS.md&lt;/code&gt;, so use the import. On your first session after upgrading from v2.1.276 or earlier, it can take one more session to start working.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;If you want to see what your own AGENTS.md and CLAUDE.md cost in tokens, and where they repeat or contradict each other before you turn on both, we built a free browser-only checker: &lt;a href="https://clogmeter.vercel.app" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt;. For a single file there's the &lt;a href="https://clogmeter.vercel.app/tools/agents-md-token-counter" rel="noopener noreferrer"&gt;AGENTS.md / CLAUDE.md token counter&lt;/a&gt;, and for Cursor rules the &lt;a href="https://clogmeter.vercel.app/tools/cursor-rules-token-counter" rel="noopener noreferrer"&gt;Cursor rules token counter&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>How to move Cursor rules to Claude Code (where each rule type goes)</title>
      <dc:creator>Clogmeter</dc:creator>
      <pubDate>Wed, 18 Nov 2026 08:26:00 +0000</pubDate>
      <link>https://dev.to/clogmeter/how-to-move-cursor-rules-to-claude-code-where-each-rule-type-goes-26om</link>
      <guid>https://dev.to/clogmeter/how-to-move-cursor-rules-to-claude-code-where-each-rule-type-goes-26om</guid>
      <description>&lt;p&gt;&lt;em&gt;Claude Code doesn't read &lt;code&gt;.cursor/rules&lt;/code&gt;, and pasting them all into CLAUDE.md makes every scoped rule load every session. Here's where each Cursor rule type goes instead, plus the frontmatter and glob gotchas.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://clogmeter.vercel.app/guides/cursor-rules-to-claude-code" rel="noopener noreferrer"&gt;clogmeter.vercel.app&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Claude Code doesn't read &lt;code&gt;.cursor/rules&lt;/code&gt;, so your rules don't come with you. The quick fix people suggest is to paste them all into &lt;code&gt;CLAUDE.md&lt;/code&gt;. That works, but it changes when each rule loads: Cursor attaches most rules only some of the time, while everything in the project-root &lt;code&gt;CLAUDE.md&lt;/code&gt; loads &lt;strong&gt;at the start of every session&lt;/strong&gt;. A better move is to map each Cursor rule type to the Claude Code feature that loads it at the same moment: always-on rules to &lt;code&gt;CLAUDE.md&lt;/code&gt;, file-pattern rules to &lt;code&gt;.claude/rules/&lt;/code&gt; with &lt;code&gt;paths:&lt;/code&gt;, description rules to a skill, and manual rules to a skill you call with &lt;code&gt;/name&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The question comes from an &lt;a href="https://www.reddit.com/r/cursor/comments/1xxy4um/" rel="noopener noreferrer"&gt;r/cursor thread&lt;/a&gt;, "Easiest way to migrate to Claude Code if I basically only use Cursor Chat?" (16 Nov 2026). Most replies cover the editor side, such as the Claude Code extension, diffs and plan mode. One reply points out that "your cursor rules do not come with you" and suggests copying &lt;code&gt;.cursor/rules&lt;/code&gt; into &lt;code&gt;CLAUDE.md&lt;/code&gt;, and another asks whether people now keep &lt;code&gt;.cursor/rules&lt;/code&gt; and &lt;code&gt;CLAUDE.md&lt;/code&gt; in sync by hand. This post covers both.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Behaviour is taken from &lt;a href="https://cursor.com/docs/context/rules" rel="noopener noreferrer"&gt;Cursor's rules docs&lt;/a&gt; and Anthropic's Claude Code docs on &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;memory and rules&lt;/a&gt; and &lt;a href="https://code.claude.com/docs/en/skills" rel="noopener noreferrer"&gt;skills&lt;/a&gt; (checked 18 Nov 2026). Both tools change often; confirm on your version with the checks at the end.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The mapping
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Cursor rule&lt;/th&gt;
&lt;th&gt;When Cursor uses it&lt;/th&gt;
&lt;th&gt;Claude Code home&lt;/th&gt;
&lt;th&gt;When Claude Code loads it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Always Apply&lt;/strong&gt; (&lt;code&gt;alwaysApply: true&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Every chat&lt;/td&gt;
&lt;td&gt;Project &lt;code&gt;CLAUDE.md&lt;/code&gt; (or a &lt;code&gt;.claude/rules/*.md&lt;/code&gt; file with no &lt;code&gt;paths&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;At startup, every session&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Apply to Specific Files&lt;/strong&gt; (&lt;code&gt;globs:&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;When a matching file is in context&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.claude/rules/&amp;lt;name&amp;gt;.md&lt;/code&gt; with &lt;code&gt;paths:&lt;/code&gt; frontmatter, or a &lt;code&gt;CLAUDE.md&lt;/code&gt; in that folder&lt;/td&gt;
&lt;td&gt;When Claude reads, writes or edits a matching file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Apply Intelligently&lt;/strong&gt; (&lt;code&gt;description:&lt;/code&gt; only)&lt;/td&gt;
&lt;td&gt;When the agent decides the description is relevant&lt;/td&gt;
&lt;td&gt;A skill: &lt;code&gt;.claude/skills/&amp;lt;name&amp;gt;/SKILL.md&lt;/code&gt; with a &lt;code&gt;description&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;The name and description are listed every session; the body loads when Claude (or you) invokes it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Apply Manually&lt;/strong&gt; (no fields)&lt;/td&gt;
&lt;td&gt;When you &lt;code&gt;@&lt;/code&gt;-mention it&lt;/td&gt;
&lt;td&gt;A skill with &lt;code&gt;disable-model-invocation: true&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Only when you type &lt;code&gt;/name&lt;/code&gt;. Its description stays out of context&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;User Rules&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Every chat, every project&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt; or &lt;code&gt;~/.claude/rules/&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Every session, every project&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;AGENTS.md&lt;/strong&gt; (root and nested)&lt;/td&gt;
&lt;td&gt;Root always; nested ones when working in that folder&lt;/td&gt;
&lt;td&gt;Keep it. Current Claude Code reads &lt;code&gt;AGENTS.md&lt;/code&gt; when there's no &lt;code&gt;CLAUDE.md&lt;/code&gt;, or import it with &lt;code&gt;@AGENTS.md&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Root and above at startup; a subfolder's file when Claude opens a file there&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two notes on the table. Claude Code reads &lt;code&gt;AGENTS.md&lt;/code&gt; on its own only from v2.1.277, and by default only when there is no &lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;.claude/CLAUDE.md&lt;/code&gt; or &lt;code&gt;CLAUDE.local.md&lt;/code&gt; in your launch folder or above it. And Anthropic's docs say rules "load into context every session or when matching files are opened", and suggest skills for task-specific instructions that don't need to be there all the time. That is why description rules become skills rather than rules files.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example: seven rules, flat copy vs mapped
&lt;/h2&gt;

&lt;p&gt;A typical small TypeScript app has one always-on rule, three file-pattern rules (components, API handlers, migrations), two description rules (testing, RPC services) and one manual release checklist. We counted the rule bodies with the o200k_base tokenizer. Claude's own tokenizer gives different numbers, so read these as relative weights.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Cursor rule&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Tokens&lt;/th&gt;
&lt;th&gt;Where it goes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;general.mdc&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Always&lt;/td&gt;
&lt;td&gt;84&lt;/td&gt;
&lt;td&gt;&lt;code&gt;CLAUDE.md&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;react-components.mdc&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Globs &lt;code&gt;src/components/**/*.tsx&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;118&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.claude/rules/react-components.md&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;api-handlers.mdc&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Globs &lt;code&gt;src/api/**/*.ts&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;119&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.claude/rules/api-handlers.md&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;migrations.mdc&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Globs &lt;code&gt;db/migrations/**&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;85&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.claude/rules/migrations.md&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;testing.mdc&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Description&lt;/td&gt;
&lt;td&gt;122&lt;/td&gt;
&lt;td&gt;Skill &lt;code&gt;testing&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;rpc-services.mdc&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Description&lt;/td&gt;
&lt;td&gt;88&lt;/td&gt;
&lt;td&gt;Skill &lt;code&gt;rpc-services&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;release.mdc&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Manual&lt;/td&gt;
&lt;td&gt;124&lt;/td&gt;
&lt;td&gt;Skill &lt;code&gt;release&lt;/code&gt;, manual only&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Flat copy into &lt;code&gt;CLAUDE.md&lt;/code&gt;:&lt;/strong&gt; 53 lines, about &lt;strong&gt;740 tokens loaded every session&lt;/strong&gt;, including the release checklist you use once a month and the migration rules on days you never touch the database.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mapped:&lt;/strong&gt; about &lt;strong&gt;100 tokens at startup&lt;/strong&gt;: the 84-token &lt;code&gt;CLAUDE.md&lt;/code&gt; plus the two skill descriptions (about 20 tokens) in the skill listing. Each scoped rule adds its 85â€“119 tokens only when Claude works on a matching file. The release skill adds nothing until you type &lt;code&gt;/release&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Seven short rules is a small setup. Real &lt;code&gt;.cursor/rules&lt;/code&gt; folders often run to thousands of tokens, and the gap grows with them. Anthropic's target for each &lt;code&gt;CLAUDE.md&lt;/code&gt; is under 200 lines.&lt;/p&gt;

&lt;h2&gt;
  
  
  Converting one file-pattern rule
&lt;/h2&gt;

&lt;p&gt;Cursor, &lt;code&gt;.cursor/rules/api-handlers.mdc&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;---
globs: src/api/**/*.ts
alwaysApply: false
---

&lt;span class="k"&gt;- &lt;/span&gt;Every handler validates its input with the zod schema in &lt;span class="sb"&gt;`src/api/schemas/`&lt;/span&gt;.
&lt;span class="k"&gt;- &lt;/span&gt;Log with &lt;span class="sb"&gt;`logger`&lt;/span&gt; from &lt;span class="sb"&gt;`src/lib/logger.ts`&lt;/span&gt;, never &lt;span class="sb"&gt;`console.log`&lt;/span&gt;.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude Code, &lt;code&gt;.claude/rules/api-handlers.md&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;---
paths:
  &lt;span class="k"&gt;- &lt;/span&gt;"src/api/**/*.ts"
---

&lt;span class="k"&gt;- &lt;/span&gt;Every handler validates its input with the zod schema in &lt;span class="sb"&gt;`src/api/schemas/`&lt;/span&gt;.
&lt;span class="k"&gt;- &lt;/span&gt;Log with &lt;span class="sb"&gt;`logger`&lt;/span&gt; from &lt;span class="sb"&gt;`src/lib/logger.ts`&lt;/span&gt;, never &lt;span class="sb"&gt;`console.log`&lt;/span&gt;.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And a description rule as a skill, &lt;code&gt;.claude/skills/testing/SKILL.md&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;---
name: testing
description: How to write and run unit and integration tests in this repo
---

&lt;span class="k"&gt;- &lt;/span&gt;Unit tests live next to the file as &lt;span class="sb"&gt;`*.test.ts`&lt;/span&gt; and run with &lt;span class="sb"&gt;`pnpm test`&lt;/span&gt;.
&lt;span class="k"&gt;- &lt;/span&gt;...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For the manual release checklist, add &lt;code&gt;disable-model-invocation: true&lt;/code&gt; to the skill's frontmatter so only &lt;code&gt;/release&lt;/code&gt; runs it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five things that break in a straight copy
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code ignores Cursor's frontmatter.&lt;/strong&gt; The docs say &lt;code&gt;paths&lt;/code&gt; is the only field Claude Code reads from a rule, and other fields are "ignored without an error". A copied rule with &lt;code&gt;globs:&lt;/code&gt; or &lt;code&gt;description:&lt;/code&gt; and no &lt;code&gt;paths:&lt;/code&gt; loads at launch, every session. Rename &lt;code&gt;globs&lt;/code&gt; to &lt;code&gt;paths&lt;/code&gt;, and move description rules to skills.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The file extension changes.&lt;/strong&gt; Cursor needs &lt;code&gt;.mdc&lt;/code&gt; and ignores plain &lt;code&gt;.md&lt;/code&gt; in &lt;code&gt;.cursor/rules&lt;/code&gt;. Claude Code discovers &lt;code&gt;.md&lt;/code&gt; files under &lt;code&gt;.claude/rules/&lt;/code&gt;, including subfolders.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Some globs match more.&lt;/strong&gt; In Cursor, &lt;code&gt;*.ts&lt;/code&gt; matches &lt;code&gt;.ts&lt;/code&gt; files in the root only. In Claude Code, a pattern like &lt;code&gt;*.md&lt;/code&gt; matches anywhere under the base directory, and &lt;code&gt;/*.md&lt;/code&gt; is the root-only form. Cursor separates patterns with commas; Claude Code takes a YAML list or a comma-separated string.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;@file&lt;/code&gt; means something different.&lt;/strong&gt; In a Cursor rule, &lt;code&gt;@migration-template.sql&lt;/code&gt; tells the agent where to look, and the file isn't inlined. In &lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;@path&lt;/code&gt; is an import: the file loads into context together with the &lt;code&gt;CLAUDE.md&lt;/code&gt;, every session. Wrap the path in backticks to keep it as plain text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Broken YAML fails open.&lt;/strong&gt; If a rule's frontmatter doesn't parse, Claude Code loads the rule as if it had no &lt;code&gt;paths&lt;/code&gt;, which means every session. Run &lt;code&gt;claude --debug&lt;/code&gt; to see the parse error.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  If you keep using both tools
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Shared always-on rules:&lt;/strong&gt; put them in one root &lt;code&gt;AGENTS.md&lt;/code&gt;. Cursor reads it, and current Claude Code reads it too when there's no &lt;code&gt;CLAUDE.md&lt;/code&gt;. If you need a &lt;code&gt;CLAUDE.md&lt;/code&gt; as well, start it with &lt;code&gt;@AGENTS.md&lt;/code&gt; and add Claude-only lines below; Anthropic documents that the import never makes Claude read &lt;code&gt;AGENTS.md&lt;/code&gt; twice. Don't also paste the same rules into &lt;code&gt;CLAUDE.md&lt;/code&gt;, or you pay twice and the copies drift.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scoped rules:&lt;/strong&gt; there's no shared format. Cursor wants &lt;code&gt;.mdc&lt;/code&gt; with &lt;code&gt;globs&lt;/code&gt;, and Claude Code wants &lt;code&gt;.md&lt;/code&gt; with &lt;code&gt;paths&lt;/code&gt;. Pick one folder as the source and regenerate the other, or keep folder-specific rules in nested &lt;code&gt;AGENTS.md&lt;/code&gt; files. Cursor loads those when it works in that folder, and Claude Code does the same when it is reading &lt;code&gt;AGENTS.md&lt;/code&gt; (no &lt;code&gt;CLAUDE.md&lt;/code&gt; in your launch folder or above, and none in that subfolder).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't convert everything on day one.&lt;/strong&gt; One reply in the thread suggests overlapping the tools for a while. Move the always-on rules first, then add scoped rules when Claude gets something wrong in that area.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to check what loaded
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Run &lt;code&gt;/context all&lt;/code&gt;&lt;/strong&gt; in a fresh session and check the &lt;strong&gt;Memory files&lt;/strong&gt; list. Run it again after Claude has edited a file under &lt;code&gt;src/api/&lt;/code&gt; to see the scoped rule appear.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run &lt;code&gt;/memory&lt;/code&gt;&lt;/strong&gt; to see and open your &lt;code&gt;CLAUDE.md&lt;/code&gt; and rules files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the skills list&lt;/strong&gt; with &lt;code&gt;/skills&lt;/code&gt; to see each skill and whether Claude can invoke it on its own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Weigh the result.&lt;/strong&gt; Paste your old &lt;code&gt;.mdc&lt;/code&gt; files into the free &lt;a href="https://clogmeter.vercel.app/tools/cursor-rules-token-counter" rel="noopener noreferrer"&gt;Cursor rules token counter&lt;/a&gt; and your new &lt;code&gt;CLAUDE.md&lt;/code&gt; into the &lt;a href="https://clogmeter.vercel.app/tools/claude-md-token-counter" rel="noopener noreferrer"&gt;CLAUDE.md token counter&lt;/a&gt;, then paste everything into &lt;a href="https://clogmeter.vercel.app/" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt; to flag duplicates and always/never conflicts between the two tools' files.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;If you want to see what your own CLAUDE.md, AGENTS.md or Cursor rules cost in tokens and where they repeat or contradict each other, we built a free browser-only checker: &lt;a href="https://clogmeter.vercel.app" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>cursor</category>
      <category>productivity</category>
    </item>
    <item>
      <title>When does Claude read CLAUDE.md files (and which does it read)?</title>
      <dc:creator>Clogmeter</dc:creator>
      <pubDate>Tue, 17 Nov 2026 12:53:55 +0000</pubDate>
      <link>https://dev.to/clogmeter/when-does-claude-read-claudemd-files-and-which-does-it-read-4j1p</link>
      <guid>https://dev.to/clogmeter/when-does-claude-read-claudemd-files-and-which-does-it-read-4j1p</guid>
      <description>&lt;p&gt;&lt;em&gt;Claude Code reads CLAUDE.md in your launch folder and every folder above it at startup, and a subfolder CLAUDE.md only once it works on a file there. Here's what loads, when, what it costs, and how to check.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://clogmeter.vercel.app/guides/when-does-claude-read-claude-md" rel="noopener noreferrer"&gt;clogmeter.vercel.app&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Claude Code reads every &lt;code&gt;CLAUDE.md&lt;/code&gt; and &lt;code&gt;CLAUDE.local.md&lt;/code&gt; in the folder you launch it from and in &lt;strong&gt;every folder above it&lt;/strong&gt;, at the start of the session. A &lt;code&gt;CLAUDE.md&lt;/code&gt; in a &lt;strong&gt;subfolder below&lt;/strong&gt; where you launched is not read at startup; it loads the first time Claude reads, writes or edits a file in that subfolder. Your personal &lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt; loads every session. Folders that are neither above nor below your launch folder are not covered by either rule, so their &lt;code&gt;CLAUDE.md&lt;/code&gt; files don't load by default.&lt;/p&gt;

&lt;p&gt;The question is the title of an &lt;a href="https://www.reddit.com/r/ClaudeCode/comments/1ouaqbq/when_does_claude_read_claudemd_files_and_which/" rel="noopener noreferrer"&gt;r/ClaudeCode thread&lt;/a&gt;: "When does Claude read CLAUDE.md files (and which does it read)". The poster launched Claude in a parent folder that held several repos, and was surprised that one repo's &lt;code&gt;CLAUDE.md&lt;/code&gt; only showed up once Claude started working on files inside that repo. That is the documented on-demand loading for subfolders, described below.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Loading behaviour is quoted from Anthropic's &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;Claude Code memory docs&lt;/a&gt;, the &lt;a href="https://code.claude.com/docs/en/large-codebases" rel="noopener noreferrer"&gt;monorepo guide&lt;/a&gt;, the &lt;a href="https://code.claude.com/docs/en/tools-reference" rel="noopener noreferrer"&gt;tools reference&lt;/a&gt; and the &lt;a href="https://code.claude.com/docs/en/hooks" rel="noopener noreferrer"&gt;hooks reference&lt;/a&gt; (checked 17 Nov 2026). Claude Code changes often; confirm on your version with the checks at the end.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The three rules
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Where the file is&lt;/th&gt;
&lt;th&gt;When it loads&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Your launch folder and every folder above it&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;At startup.&lt;/strong&gt; All of them are concatenated, not overridden, ordered from the filesystem root down to your launch folder, so the file nearest to where you launched is read last. In each folder, &lt;code&gt;CLAUDE.local.md&lt;/code&gt; comes after &lt;code&gt;CLAUDE.md&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A subfolder below your launch folder&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;On demand,&lt;/strong&gt; once Claude reads, writes or edits a file in that subfolder. A single-file Bash view such as &lt;code&gt;cat&lt;/code&gt; or &lt;code&gt;head&lt;/code&gt; counts as a read.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Every session,&lt;/strong&gt; in every project.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Anything else, such as a sibling package or a repo you reach with &lt;code&gt;--add-dir&lt;/code&gt;, isn't loaded by default. The docs say &lt;code&gt;--add-dir&lt;/code&gt; folders don't load their &lt;code&gt;CLAUDE.md&lt;/code&gt; unless you set &lt;code&gt;CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example: one monorepo, three launch folders
&lt;/h2&gt;

&lt;p&gt;Take a repo with &lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;packages/api/CLAUDE.md&lt;/code&gt; and &lt;code&gt;packages/web/CLAUDE.md&lt;/code&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;You launch in&lt;/th&gt;
&lt;th&gt;Loaded at startup&lt;/th&gt;
&lt;th&gt;Loaded later&lt;/th&gt;
&lt;th&gt;Not loaded&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;repo root&lt;/td&gt;
&lt;td&gt;&lt;code&gt;CLAUDE.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;packages/api/CLAUDE.md&lt;/code&gt; when Claude reads or edits a file in &lt;code&gt;packages/api/&lt;/code&gt;; the same for &lt;code&gt;web&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Any package Claude never touches&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;packages/api/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Root &lt;code&gt;CLAUDE.md&lt;/code&gt;, then &lt;code&gt;packages/api/CLAUDE.md&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Subfolders of &lt;code&gt;packages/api/&lt;/code&gt; that have their own file&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;packages/web/CLAUDE.md&lt;/code&gt; (a sibling, neither above nor below)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A parent folder holding several repos (the Reddit case)&lt;/td&gt;
&lt;td&gt;The parent's &lt;code&gt;CLAUDE.md&lt;/code&gt;, if any, and anything above it&lt;/td&gt;
&lt;td&gt;Each repo's &lt;code&gt;CLAUDE.md&lt;/code&gt;, once Claude works on a file in that repo&lt;/td&gt;
&lt;td&gt;Repos Claude doesn't open&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Anthropic's monorepo guide describes the second row: start in &lt;code&gt;packages/api/&lt;/code&gt; and Claude sees the local instructions alongside the repo-wide rules, "with no instructions from &lt;code&gt;packages/web/&lt;/code&gt; in context." It suggests launching at the root when tasks span several packages, and in a package when the work stays inside it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this means for token cost
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Startup files are paid for every session.&lt;/strong&gt; The root file and everything above your launch folder load before you type anything. Anthropic's target is under 200 lines per &lt;code&gt;CLAUDE.md&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A folder file costs nothing until Claude works in that folder.&lt;/strong&gt; That makes subfolder &lt;code&gt;CLAUDE.md&lt;/code&gt; files a good home for rules that only matter in one area. &lt;code&gt;.claude/rules/*.md&lt;/code&gt; files with &lt;code&gt;paths:&lt;/code&gt; frontmatter do the same job for file patterns.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Imports don't save tokens.&lt;/strong&gt; &lt;code&gt;@path&lt;/code&gt; imports load together with the file that imports them (up to four hops deep). They tidy a long file; they don't make it cheaper.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Big on-demand files get cut off.&lt;/strong&gt; A subfolder &lt;code&gt;CLAUDE.md&lt;/code&gt; or on-demand rules file over a per-file size limit (40,000 characters with a 200K context window) is truncated, and Claude gets only the start until it chooses to read the rest. Check with &lt;code&gt;wc -m&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HTML comments are free.&lt;/strong&gt; Block-level &lt;code&gt;&amp;lt;!-- notes --&amp;gt;&lt;/code&gt; are stripped before the content reaches Claude, so maintainer notes don't spend context.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  After /compact
&lt;/h2&gt;

&lt;p&gt;The docs say the project-root &lt;code&gt;CLAUDE.md&lt;/code&gt; is re-read from disk and re-injected after &lt;code&gt;/compact&lt;/code&gt;. Subfolder &lt;code&gt;CLAUDE.md&lt;/code&gt; files and path-scoped rules don't come back straight away; they load again the next time Claude works on a matching file. If an instruction seems lost after compaction, check whether it lives in one of those.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where AGENTS.md fits
&lt;/h2&gt;

&lt;p&gt;In current versions Claude Code can read &lt;code&gt;AGENTS.md&lt;/code&gt;, but by default only when there is no &lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;.claude/CLAUDE.md&lt;/code&gt; or &lt;code&gt;CLAUDE.local.md&lt;/code&gt; in your launch folder or above it. When it does, it reads the &lt;code&gt;AGENTS.md&lt;/code&gt; files in your launch folder and above at startup, and a subfolder's &lt;code&gt;AGENTS.md&lt;/code&gt; when Claude opens a file there with the Read tool, provided that subfolder has no &lt;code&gt;CLAUDE.md&lt;/code&gt; of its own. If you keep both, an &lt;code&gt;@AGENTS.md&lt;/code&gt; import in &lt;code&gt;CLAUDE.md&lt;/code&gt; is the documented way to share one file. See &lt;a href="https://clogmeter.vercel.app/guides/claude-md-vs-agents-md" rel="noopener noreferrer"&gt;CLAUDE.md vs AGENTS.md&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check what actually loaded
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Run &lt;code&gt;/memory&lt;/code&gt; or &lt;code&gt;/context all&lt;/code&gt;.&lt;/strong&gt; The monorepo guide says &lt;code&gt;/context all&lt;/code&gt; lists loaded files under &lt;strong&gt;Memory files&lt;/strong&gt;. Run it again after Claude has worked in a subfolder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Log it with the &lt;code&gt;InstructionsLoaded&lt;/code&gt; hook.&lt;/strong&gt; It fires when a &lt;code&gt;CLAUDE.md&lt;/code&gt; or rules file loads, at startup and on lazy loads, with a &lt;code&gt;load_reason&lt;/code&gt; such as &lt;code&gt;session_start&lt;/code&gt; or &lt;code&gt;nested_traversal&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't ask Claude.&lt;/strong&gt; A model asked about its own prompt can give misleading answers, as a reply in the Reddit thread points out. Use the commands or the hook.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Users have reported gaps in the on-demand trigger. For example, &lt;a href="https://github.com/anthropics/claude-code/issues/90449" rel="noopener noreferrer"&gt;anthropics/claude-code#90449&lt;/a&gt; reports that piped or multi-file Bash commands and Bash writes don't load a subfolder file. The tools reference lists the Bash views that count as a read: &lt;code&gt;cat&lt;/code&gt;, &lt;code&gt;nl&lt;/code&gt;, &lt;code&gt;bat&lt;/code&gt;, &lt;code&gt;head&lt;/code&gt;, &lt;code&gt;tail&lt;/code&gt;, &lt;code&gt;sed -n&lt;/code&gt;, &lt;code&gt;grep&lt;/code&gt; and &lt;code&gt;rg&lt;/code&gt;, run on one file with no pipes or redirects. If a folder's rules really must apply, test it with the hook rather than assuming.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick setup that works with these rules
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Keep the root &lt;code&gt;CLAUDE.md&lt;/code&gt; to rules that apply to every task.&lt;/li&gt;
&lt;li&gt;Move package- or folder-specific rules into that folder's &lt;code&gt;CLAUDE.md&lt;/code&gt;, or a path-scoped rule.&lt;/li&gt;
&lt;li&gt;Launch from the package when the work stays inside it, and from the root when it spans packages.&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;claudeMdExcludes&lt;/code&gt; in &lt;code&gt;.claude/settings.local.json&lt;/code&gt; to skip other teams' files you never need.&lt;/li&gt;
&lt;li&gt;Weigh each file in the free &lt;a href="https://clogmeter.vercel.app/tools/agents-md-token-counter" rel="noopener noreferrer"&gt;AGENTS.md / CLAUDE.md token counter&lt;/a&gt; (or the &lt;a href="https://clogmeter.vercel.app/tools/cursor-rules-token-counter" rel="noopener noreferrer"&gt;Cursor rules token counter&lt;/a&gt; for &lt;code&gt;.mdc&lt;/code&gt; files), then paste them all into &lt;a href="https://clogmeter.vercel.app/" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt; to flag duplicates and always/never conflicts between the root and folder files.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;If you want to see what your own CLAUDE.md, AGENTS.md or Cursor rules cost in tokens and where they repeat or contradict each other, we built a free browser-only checker: &lt;a href="https://clogmeter.vercel.app" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>Too many gotchas in CLAUDE.md? Delete, enforce, scope or keep</title>
      <dc:creator>Clogmeter</dc:creator>
      <pubDate>Mon, 16 Nov 2026 08:34:07 +0000</pubDate>
      <link>https://dev.to/clogmeter/too-many-gotchas-in-claudemd-delete-enforce-scope-or-keep-1kf3</link>
      <guid>https://dev.to/clogmeter/too-many-gotchas-in-claudemd-delete-enforce-scope-or-keep-1kf3</guid>
      <description>&lt;p&gt;&lt;em&gt;When most of your CLAUDE.md is gotchas, sort each one into four piles: delete, enforce with a check, scope to a folder, or keep. A worked example cut 20 gotchas to 5 and the always-on section from 561 tokens to 100.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://clogmeter.vercel.app/guides/claude-md-gotchas" rel="noopener noreferrer"&gt;clogmeter.vercel.app&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;When most of a &lt;code&gt;CLAUDE.md&lt;/code&gt; is gotchas, don’t trim it line by line. Sort every gotcha into one of four piles:&lt;br&gt;
&lt;strong&gt;delete&lt;/strong&gt; it (no longer true, or a one-off), &lt;strong&gt;enforce&lt;/strong&gt; it with a test, lint rule, hook or&lt;br&gt;
permission to catch or block it, &lt;strong&gt;scope&lt;/strong&gt; it to the folder or files it’s about so it only loads there, or&lt;br&gt;
&lt;strong&gt;keep&lt;/strong&gt; it in the root file because it really applies to every task. In the worked example below, 20 gotchas&lt;br&gt;
became 5, and the always-on section went from 561 tokens to 100.&lt;/p&gt;

&lt;p&gt;The question comes from an&lt;br&gt;
&lt;a href="https://www.reddit.com/r/ClaudeCode/comments/1xv35zm/" rel="noopener noreferrer"&gt;r/ClaudeCode thread (13 Nov 2026)&lt;/a&gt;:&lt;br&gt;
“75% of my CLAUDE.md is taken up by Gotchas alone. What are your best practices?” The replies agreed on the shape of the&lt;br&gt;
answer — fix the cause, move area-specific notes next to the code, block the dangerous ones with hooks — and this guide&lt;br&gt;
turns that into a repeatable pass.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why gotchas pile up (and why it hurts)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every gotcha is a scar from one bad session.&lt;/strong&gt; Adding a line is the quickest fix after a mistake, and nobody ever schedules removing one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The root file loads every session.&lt;/strong&gt; Anthropic says to target under 200 lines per &lt;code&gt;CLAUDE.md&lt;/code&gt;, because longer files consume more context and reduce adherence. A gotcha about the billing module costs tokens while you fix CSS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prose is not enforcement.&lt;/strong&gt; The docs say Claude treats &lt;code&gt;CLAUDE.md&lt;/code&gt; as context, not enforced configuration. A “never edit X” line can still be skipped; a permission deny rule is checked by the client for the tools it covers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Old gotchas contradict new ones.&lt;/strong&gt; “If two instructions contradict each other, Claude may pick one arbitrarily.” Gotcha lists are where those contradictions hide.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The four piles
&lt;/h2&gt;

&lt;p&gt;Ask these questions of each gotcha, in this order. Stop at the first “yes”.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;If yes&lt;/th&gt;
&lt;th&gt;Where it goes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Is it no longer true, a one-off incident, or something a check already catches?&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Delete&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Nowhere. Git history keeps it if you need it back.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Could a machine stop the mistake?&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Enforce&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A test, lint rule, package script, pre-commit or &lt;code&gt;PreToolUse&lt;/code&gt; hook, or a &lt;code&gt;permissions.deny&lt;/code&gt; rule such as &lt;code&gt;Read(./.env)&lt;/code&gt; or &lt;code&gt;Edit(/src/generated/**)&lt;/code&gt;. Then remove the line.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Does it only matter in one folder or file type?&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Scope&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A &lt;code&gt;CLAUDE.md&lt;/code&gt; in that folder, or a &lt;code&gt;.claude/rules/*.md&lt;/code&gt; file with &lt;code&gt;paths:&lt;/code&gt; frontmatter. Subdirectory CLAUDE.md files below your launch directory load when Claude works there; path rules load for matching files.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. Is it about your machine, not the project?&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Scope (user level)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt; or &lt;code&gt;~/.claude/rules/&lt;/code&gt;, so every project shares it and the repo file stays about the repo.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5. Does it apply to almost every task, and can’t be checked?&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Keep&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The root &lt;code&gt;CLAUDE.md&lt;/code&gt;, one line each, with a short reason.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Worked example: 20 gotchas down to 5
&lt;/h2&gt;

&lt;p&gt;We wrote an illustrative 20-item gotchas section for a TypeScript web app (pnpm, Postgres, Stripe, a &lt;code&gt;legacy/&lt;/code&gt;&lt;br&gt;
package, Playwright) and sorted it with the questions above:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pile&lt;/th&gt;
&lt;th&gt;Gotchas&lt;/th&gt;
&lt;th&gt;What replaced them&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Delete (2)&lt;/td&gt;
&lt;td&gt;“Port 5173 busy → kill old Vite”; “add routes to &lt;code&gt;openapi.yaml&lt;/code&gt;”&lt;/td&gt;
&lt;td&gt;Nothing. The first is trivia; the contract test already fails on the second.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enforce (8)&lt;/td&gt;
&lt;td&gt;Migrate before tests; don’t edit &lt;code&gt;src/generated/&lt;/code&gt;; don’t import &lt;code&gt;legacy-utils&lt;/code&gt;; never commit &lt;code&gt;.env&lt;/code&gt;; no live Stripe keys in fixtures; install Playwright browsers; Node 20+; no &lt;code&gt;any&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;A &lt;code&gt;pretest&lt;/code&gt; script, &lt;code&gt;permissions.deny&lt;/code&gt; rules, ESLint &lt;code&gt;no-restricted-imports&lt;/code&gt; and &lt;code&gt;no-explicit-any&lt;/code&gt;, a secret-scanning pre-commit hook, an explicit browser-install setup step, a CI runtime-version check (an &lt;code&gt;engines&lt;/code&gt; declaration alone may only warn).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scope (4)&lt;/td&gt;
&lt;td&gt;Two &lt;code&gt;legacy/&lt;/code&gt; rules (CommonJS, old logger); webhook idempotency; &lt;code&gt;formatInZone()&lt;/code&gt; in billing&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;legacy/CLAUDE.md&lt;/code&gt;, and &lt;code&gt;.claude/rules/payments.md&lt;/code&gt; with &lt;code&gt;paths: ["src/payments/**", "src/billing/**"]&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;User level (1)&lt;/td&gt;
&lt;td&gt;“The shell is zsh, so variables don’t word-split”&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Keep (5)&lt;/td&gt;
&lt;td&gt;pnpm only; store UTC; never change &lt;code&gt;/api/v1&lt;/code&gt; shapes; lowercase emails; done means tests and lint pass&lt;/td&gt;
&lt;td&gt;Stayed in the root file, rewritten as one line each.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Root gotchas section&lt;/th&gt;
&lt;th&gt;Lines&lt;/th&gt;
&lt;th&gt;Tokens (o200k_base)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Before: 20 gotchas, mostly two-sentence paragraphs&lt;/td&gt;
&lt;td&gt;21&lt;/td&gt;
&lt;td&gt;561&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;After: 5 one-line gotchas&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The four scoped rules didn’t vanish; they now load only when Claude touches &lt;code&gt;legacy/&lt;/code&gt;, payments or billing.&lt;br&gt;
After checks are wired into the actual workflow and tested against the old mistakes, those eight warnings need not stay in the prompt. Hooks and checks can have configuration gaps: a file-tool deny rule is not a complete shell sandbox, and a pre-commit hook is not a substitute for server-side secret scanning. The worked section shrank by&lt;br&gt;
more than 80%; that is an illustrative section-size reduction, not a measured reduction in total session tokens. User-level rules still load, and scoped rules consume context when triggered.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to write the ones you keep
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One line, with the reason.&lt;/strong&gt; “pnpm only: &lt;code&gt;npm install&lt;/code&gt; rewrites the lockfile and breaks CI.” The reason helps the model apply it and tells you later whether the line can go.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;State the rule, not the story.&lt;/strong&gt; “We had a bug in March where invoices showed the wrong day” is a story. “Store UTC; convert only in the UI” is the rule.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Merge near-duplicates.&lt;/strong&gt; Two gotchas about the same thing (“use &lt;code&gt;log()&lt;/code&gt;” and “in &lt;code&gt;legacy/&lt;/code&gt; use &lt;code&gt;oldLogger&lt;/code&gt;”) become one rule in one place, or they start to contradict.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Date it if it might expire.&lt;/strong&gt; A short date in a comment makes the next prune quick.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Stop the pile coming back
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;New gotchas go to the narrowest home first.&lt;/strong&gt; Folder file, path rule, or a check. The root file is the last resort, not the default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fix the cause when you can.&lt;/strong&gt; If a gotcha describes a bug in shared code, fix or test the code path and skip the warning.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audit monthly.&lt;/strong&gt; Claude Code’s &lt;code&gt;/doctor prompt-audit&lt;/code&gt; (v2.1.283+) reports outdated or conflicting instructions and proposes edits without changing files. For any tool, paste the files into &lt;a href="https://clogmeter.vercel.app/" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt; to see token weight and flag duplicate or always/never conflicting rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch what agents append.&lt;/strong&gt; If an agent adds gotchas for you, review those diffs like code. Claude Code’s auto memory is separate (&lt;code&gt;MEMORY.md&lt;/code&gt;, first 200 lines or 25KB loaded each session) and needs the same occasional prune.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The same four piles work outside Claude Code: nested &lt;code&gt;AGENTS.md&lt;/code&gt; files scope rules by folder for Codex and&lt;br&gt;
Cursor, and Cursor Auto Attached project rules with &lt;code&gt;globs&lt;/code&gt; attach for matching files. Check each tool’s discovery behaviour; their scoping mechanisms are not interchangeable.&lt;/p&gt;




&lt;p&gt;If you want to see what your own CLAUDE.md, AGENTS.md or Cursor rules cost in tokens and where they repeat or contradict each other, we built a free browser-only checker: &lt;a href="https://clogmeter.vercel.app" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>AGENTS.md trim checklist (10 checks)</title>
      <dc:creator>Clogmeter</dc:creator>
      <pubDate>Thu, 12 Nov 2026 07:54:42 +0000</pubDate>
      <link>https://dev.to/clogmeter/agentsmd-trim-checklist-10-checks-3obi</link>
      <guid>https://dev.to/clogmeter/agentsmd-trim-checklist-10-checks-3obi</guid>
      <description>&lt;p&gt;&lt;em&gt;A short, practical pass for AGENTS.md, CLAUDE.md and Cursor rules. Work through the ten checks in order. The claims stay modest — no invented vendor stats — and the aim is a smaller always-on file that the model is more likely to follow.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://clogmeter.vercel.app/guides/agents-md-trim-checklist" rel="noopener noreferrer"&gt;clogmeter.vercel.app&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Instruction files grow quietly. A rule gets copied into &lt;code&gt;CLAUDE.md&lt;/code&gt; and a Cursor rule, a release checklist lands in the root &lt;code&gt;AGENTS.md&lt;/code&gt;, and a year later the agent is re-reading all of it on every turn. Markdown is advisory: hooks, linters and CI enforce the rules that must never be skipped. The checklist below is a way to cut the rest without guessing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 10 checks
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Weigh before you cut.&lt;/strong&gt; Paste the files into a checker so you know the token cost and can spot duplicates and conflicts before deleting by gut feel. (If you only want a single-file count, the &lt;a href="https://clogmeter.vercel.app/tools/agents-md-token-counter" rel="noopener noreferrer"&gt;AGENTS.md token counter&lt;/a&gt; is enough.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Kill duplicate always/never lists.&lt;/strong&gt; Keep one canonical Always/Never section. Delete or replace copies with a one-line pointer. Duplicates still cost tokens and confuse the model.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Resolve conflicting always/never rules first.&lt;/strong&gt; Contradictory “always X” / “never X” (or near-opposites across files) make the model hedge. Cut one side before trimming anything else.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Prefer path-scoped rules over always-on.&lt;/strong&gt; If a rule only applies under &lt;code&gt;src/api/**&lt;/code&gt; (or similar), use a path-scoped Cursor rule or a nested &lt;code&gt;AGENTS.md&lt;/code&gt; / &lt;code&gt;CLAUDE.md&lt;/code&gt; instead of stuffing the root file. Cursor’s own size guidance, including the ~500-line rule limit and the four rule types, is in &lt;a href="https://clogmeter.vercel.app/guides/cursor-rules-token-limit" rel="noopener noreferrer"&gt;Cursor rules token limit&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Move rare procedures to skills.&lt;/strong&gt; Release checklists, migration steps and once-a-month workflows belong in on-demand skills or docs, not in the always-on root file. Where an instruction lives decides when the agent sees it and what it costs; that trade-off is covered in &lt;a href="https://clogmeter.vercel.app/guides/agents-md-skills-or-mcp" rel="noopener noreferrer"&gt;AGENTS.md, skills or MCP&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Delete what tools already enforce.&lt;/strong&gt; Linters, formatters, typecheckers, hooks and CI already catch many “always/never” rules. Markdown that repeats them is advisory noise and still spends tokens every turn.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. Skip directory trees and stack inventories.&lt;/strong&gt; Agents can discover the repo by reading it. Pasted trees and long tech-stack lists burn tokens every turn without improving adherence. A tighter example of what belongs in the root file is in the &lt;a href="https://clogmeter.vercel.app/guides/agents-md-example" rel="noopener noreferrer"&gt;AGENTS.md example&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8. Keep one source of truth across tools.&lt;/strong&gt; Prefer a canonical &lt;code&gt;AGENTS.md&lt;/code&gt; with thin &lt;code&gt;CLAUDE.md&lt;/code&gt; / Cursor adapters. Avoid divergent copies or symlinks that double-count the same text. See &lt;a href="https://clogmeter.vercel.app/guides/claude-md-vs-agents-md" rel="noopener noreferrer"&gt;CLAUDE.md vs AGENTS.md vs Cursor rules&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9. Enforce hard “never” rules outside markdown.&lt;/strong&gt; If ignoring a rule once would hurt, use a hook, permission, linter or CI check. Prose alone is advisory — vendors treat memory files as context, not enforced config.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10. Re-weigh after the trim.&lt;/strong&gt; Run the checker again on the cleaned set. Confirm the token drop and that no new conflicts appeared. Export a trimmed copy if useful. For documented size ceilings, see &lt;a href="https://clogmeter.vercel.app/guides/how-long-should-agents-md-be" rel="noopener noreferrer"&gt;How long should CLAUDE.md / AGENTS.md be?&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to use this
&lt;/h2&gt;

&lt;p&gt;One pass is enough for most repos. If the root file is still long after these ten checks, split by concern (scoped rules plus skills) rather than squeezing more prose into the same always-on file.&lt;/p&gt;

&lt;p&gt;To do the weigh-and-reweigh steps in the browser, paste the files into &lt;a href="https://clogmeter.vercel.app/" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt;. It counts tokens, flags exact and near-duplicate rules and always/never conflicts, suggests trims, and can export a trimmed copy. Nothing is uploaded.&lt;/p&gt;




&lt;p&gt;If you want to see where your own AGENTS.md, CLAUDE.md or Cursor rules spend tokens, we built a free browser-only checker that also flags duplicates and always/never conflicts: &lt;a href="https://clogmeter.vercel.app" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>cursor</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Cursor rules token limit: 500 lines, four rule types, and what you pay every request</title>
      <dc:creator>Clogmeter</dc:creator>
      <pubDate>Thu, 12 Nov 2026 07:54:12 +0000</pubDate>
      <link>https://dev.to/clogmeter/cursor-rules-token-limit-500-lines-four-rule-types-and-what-you-pay-every-request-2ikj</link>
      <guid>https://dev.to/clogmeter/cursor-rules-token-limit-500-lines-four-rule-types-and-what-you-pay-every-request-2ikj</guid>
      <description>&lt;p&gt;&lt;em&gt;Cursor project rules are included in the model context when they apply, so every always-on rule is a permanent tax on the window. Cursor's docs give a practical size limit — keep each rule under about 500 lines — and four frontmatter types that decide when you actually pay.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://clogmeter.vercel.app/guides/cursor-rules-token-limit" rel="noopener noreferrer"&gt;clogmeter.vercel.app&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Cursor project rules live in &lt;code&gt;.cursor/rules&lt;/code&gt; as &lt;code&gt;.mdc&lt;/code&gt; files. When a rule is applied, its contents are included at the start of the model context. That is useful, and it is also how a large Always Apply rule can quietly cost you tokens on every chat, including ones that have nothing to do with it.&lt;/p&gt;

&lt;p&gt;The numbers and behaviour below follow Cursor's rules documentation. Exact behaviour can change between versions, so check the current docs before relying on a detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four rule types (frontmatter decides)
&lt;/h2&gt;

&lt;p&gt;Three frontmatter fields control the type: &lt;code&gt;alwaysApply&lt;/code&gt;, &lt;code&gt;description&lt;/code&gt;, and &lt;code&gt;globs&lt;/code&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rule type&lt;/th&gt;
&lt;th&gt;Frontmatter&lt;/th&gt;
&lt;th&gt;When it costs tokens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Always Apply&lt;/td&gt;
&lt;td&gt;&lt;code&gt;alwaysApply: true&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Every chat; globs and description are ignored&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Apply to Specific Files&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;globs&lt;/code&gt; set, &lt;code&gt;alwaysApply&lt;/code&gt; false&lt;/td&gt;
&lt;td&gt;When a matching file is in context&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Apply Intelligently&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;description&lt;/code&gt; only&lt;/td&gt;
&lt;td&gt;When the agent decides the rule is relevant&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Apply Manually&lt;/td&gt;
&lt;td&gt;none of the three&lt;/td&gt;
&lt;td&gt;Only when you &lt;code&gt;@&lt;/code&gt;-mention the rule&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;AGENTS.md&lt;/code&gt; is a simpler always-on alternative without frontmatter. It is useful for short, shared guidance, but it pays the same always-on cost as Always Apply rules.&lt;/p&gt;

&lt;h2&gt;
  
  
  The ~500-line best practice
&lt;/h2&gt;

&lt;p&gt;Cursor's rules docs recommend keeping rules under 500 lines, splitting large rules into focused ones, and referencing files with &lt;code&gt;@path&lt;/code&gt; instead of pasting their contents. Referenced file contents are not inlined into the prompt; the agent reads them with tools when needed. A long template pasted into a rule therefore costs tokens on every apply, while &lt;code&gt;@service-template.ts&lt;/code&gt; does not until the agent opens it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What that means for your budget
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Always Apply is the expensive default.&lt;/strong&gt; A 2,000-token always-on rule runs on every chat, whether the topic needs it or not.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Globs and descriptions buy specificity.&lt;/strong&gt; A rule that only loads for &lt;code&gt;src/api/**&lt;/code&gt;, or when the agent judges it relevant, stays out of unrelated sessions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Manual rules are free until mentioned.&lt;/strong&gt; Rare checklists belong behind an &lt;code&gt;@&lt;/code&gt;-mention, not in Always Apply.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Over-500-line rules are a smell.&lt;/strong&gt; Split them, or move long examples into files you reference with &lt;code&gt;@path&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A short trim checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Prefer glob, description, or manual over Always Apply for bulky guidance.&lt;/li&gt;
&lt;li&gt;Split rules over ~500 lines into focused &lt;code&gt;.mdc&lt;/code&gt; files.&lt;/li&gt;
&lt;li&gt;Reference files with &lt;code&gt;@path&lt;/code&gt; instead of pasting templates or long snippets.&lt;/li&gt;
&lt;li&gt;Weigh always-on rules first: paste Always Apply rules and &lt;code&gt;AGENTS.md&lt;/code&gt;, then decide what can drop a level.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If a rule is not loading at all, the usual causes are a plain &lt;code&gt;.md&lt;/code&gt; in &lt;code&gt;.cursor/rules/&lt;/code&gt; (Cursor expects &lt;code&gt;.mdc&lt;/code&gt; with frontmatter) or a type that never matches the current context. That is a separate problem from cost, covered in &lt;a href="https://clogmeter.vercel.app/guides/why-cursor-ignoring-rules" rel="noopener noreferrer"&gt;Why Cursor is ignoring your rules&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to measure the bill
&lt;/h2&gt;

&lt;p&gt;To count a single &lt;code&gt;.mdc&lt;/code&gt; file against common context windows, use the free &lt;a href="https://clogmeter.vercel.app/tools/cursor-rules-token-counter" rel="noopener noreferrer"&gt;Cursor rules token counter&lt;/a&gt;. To weigh a whole rules folder alongside &lt;code&gt;AGENTS.md&lt;/code&gt; or &lt;code&gt;CLAUDE.md&lt;/code&gt;, flag exact and near-duplicate rules and always/never conflicts, and export a trimmed copy, open the &lt;a href="https://clogmeter.vercel.app/" rel="noopener noreferrer"&gt;Clogmeter inspector&lt;/a&gt;. Both run in the browser; nothing is uploaded.&lt;/p&gt;




&lt;p&gt;If you want to see where your own Cursor rules, AGENTS.md or CLAUDE.md spend tokens, we built a free browser-only checker that also flags duplicates and always/never conflicts: &lt;a href="https://clogmeter.vercel.app" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>cursor</category>
      <category>productivity</category>
    </item>
    <item>
      <title>CLAUDE.md and AGENTS.md: what happens with conflicting information? Is there a precedence order?</title>
      <dc:creator>Clogmeter</dc:creator>
      <pubDate>Wed, 11 Nov 2026 10:04:36 +0000</pubDate>
      <link>https://dev.to/clogmeter/claudemd-and-agentsmd-what-happens-with-conflicting-information-is-there-a-precedence-order-45n1</link>
      <guid>https://dev.to/clogmeter/claudemd-and-agentsmd-what-happens-with-conflicting-information-is-there-a-precedence-order-45n1</guid>
      <description>&lt;p&gt;&lt;em&gt;Claude Code has no precedence order for conflicting CLAUDE.md instructions; Codex and Cursor do. Here is what each tool loads, which file wins, and how to remove the conflict instead of hoping the right file wins.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://clogmeter.vercel.app/guides/conflicting-agent-instructions-precedence" rel="noopener noreferrer"&gt;clogmeter.vercel.app&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In Claude Code there is no precedence order: every &lt;code&gt;CLAUDE.md&lt;/code&gt; it finds is concatenated into context, nothing overrides anything, and Anthropic's docs say that if two instructions contradict each other "Claude may pick one arbitrarily." Codex and Cursor do define a winner (the closest &lt;code&gt;AGENTS.md&lt;/code&gt; for Codex; Team → Project → User rules for Cursor), but in every tool that ordering is a hint to the model, not a guarantee. The only reliable fix is to keep each rule in exactly one place.&lt;/p&gt;

&lt;p&gt;The question comes from a &lt;a href="https://github.com/anthropics/claude-code/issues/722" rel="noopener noreferrer"&gt;Claude Code GitHub issue&lt;/a&gt; asking how &lt;code&gt;CLAUDE.md&lt;/code&gt; discovery works. The maintainer's reply was blunt: all the files are included at launch, so "you need to take care to not include conflicting instructions." That is still the answer, and the docs now spell out the details.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which file wins, tool by tool
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What loads&lt;/th&gt;
&lt;th&gt;On conflict&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;Managed, user (&lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt;), every &lt;code&gt;CLAUDE.md&lt;/code&gt; / &lt;code&gt;CLAUDE.local.md&lt;/code&gt; from the filesystem root down to your working directory, plus &lt;code&gt;.claude/rules/&lt;/code&gt;. Subdirectory files load when Claude reads a file there.&lt;/td&gt;
&lt;td&gt;No winner. Files are concatenated, root first, so the closest file is read last, but the docs say neither overrides the other.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code + &lt;code&gt;AGENTS.md&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;By default, &lt;code&gt;AGENTS.md&lt;/code&gt; is read only when there is no &lt;code&gt;CLAUDE.md&lt;/code&gt; or &lt;code&gt;CLAUDE.local.md&lt;/code&gt; in your working directory or above it.&lt;/td&gt;
&lt;td&gt;If a &lt;code&gt;CLAUDE.md&lt;/code&gt; exists, &lt;code&gt;AGENTS.md&lt;/code&gt; is skipped entirely, unless you import it or switch on the &lt;code&gt;claude-md-and-agents-md&lt;/code&gt; mode.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Codex&lt;/td&gt;
&lt;td&gt;Global &lt;code&gt;~/.codex/AGENTS.md&lt;/code&gt; (or &lt;code&gt;AGENTS.override.md&lt;/code&gt;), then one file per directory from the project root down to your working directory, up to 32 KiB by default.&lt;/td&gt;
&lt;td&gt;Closer files override earlier guidance because they appear later. Files past the 32 KiB cap are not added at all.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cursor&lt;/td&gt;
&lt;td&gt;Team Rules, project rules (&lt;code&gt;.cursor/rules/*.mdc&lt;/code&gt;), User Rules, and root and nested &lt;code&gt;AGENTS.md&lt;/code&gt;, all merged.&lt;/td&gt;
&lt;td&gt;Team → Project → User, with earlier sources winning. Nested &lt;code&gt;AGENTS.md&lt;/code&gt;: the more specific file wins.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;a href="https://agents.md/" rel="noopener noreferrer"&gt;AGENTS.md convention&lt;/a&gt; sums up the non-Claude tools: "The closest AGENTS.md to the edited file wins; explicit user chat prompts override everything."&lt;/p&gt;

&lt;h2&gt;
  
  
  Why "closest wins" still is not a guarantee
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It is all one prompt.&lt;/strong&gt; Every tool above puts both versions of the rule into the context window. "Precedence" only means one comes later or is labelled as more specific. The model still sees both and decides.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instruction files are advisory.&lt;/strong&gt; Claude Code delivers &lt;code&gt;CLAUDE.md&lt;/code&gt; as a user message after the system prompt, and Anthropic says there is no guarantee of strict compliance, "especially for vague or conflicting instructions."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Built-in guidance can compete too.&lt;/strong&gt; Your commit or PR rules can clash with the agent's own defaults. Claude Code lets you turn its built-in git instructions off (&lt;code&gt;includeGitInstructions&lt;/code&gt;) so only yours remain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Big files make it worse.&lt;/strong&gt; Anthropic recommends keeping each &lt;code&gt;CLAUDE.md&lt;/code&gt; under 200 lines because longer files reduce adherence, and a conflict buried on line 340 is harder for anyone, human or model, to spot.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A personal &lt;code&gt;CLAUDE.local.md&lt;/code&gt; does not "correct" the shared &lt;code&gt;CLAUDE.md&lt;/code&gt;. It sits beside it. And because it counts as a &lt;code&gt;CLAUDE.md&lt;/code&gt;, adding one in a repo that relies on &lt;code&gt;AGENTS.md&lt;/code&gt; stops Claude Code reading &lt;code&gt;AGENTS.md&lt;/code&gt; for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to find and remove conflicts
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;List what actually loads.&lt;/strong&gt; In Claude Code, run &lt;code&gt;/context&lt;/code&gt; and read the Memory files list. In Cursor, check which rules are always on and which attach by glob. For Codex, walk the directories from the repo root to where you start it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Paste every always-on file into &lt;a href="https://clogmeter.vercel.app/" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt;.&lt;/strong&gt; It flags exact and near-duplicate rules and likely always/never conflicts across files, and shows what each file costs in tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick one home per rule.&lt;/strong&gt; Repo-wide facts go in the root file. Package-only conventions go in a nested file or a path-scoped rule, and are not restated at the root. Personal preferences go in your user file and should never contradict the project.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Delete, do not override.&lt;/strong&gt; If a nested file needs a different rule, remove or narrow the root rule (for example "Use pnpm, except in &lt;code&gt;legacy/&lt;/code&gt;, see &lt;code&gt;legacy/AGENTS.md&lt;/code&gt;") instead of stacking a contradiction on top.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Move must-never-fail rules out of markdown.&lt;/strong&gt; Use a hook, linter, or CI check. No precedence order makes prose enforceable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Re-check after big refactors.&lt;/strong&gt; Claude Code's &lt;code&gt;/doctor prompt-audit&lt;/code&gt; (v2.1.283+) reports files that contradict each other. Otherwise, re-scan with Clogmeter.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;If you want to see where your own AGENTS.md, CLAUDE.md or Cursor rules conflict or spend tokens, we built a free browser-only checker that flags duplicates and always/never conflicts: &lt;a href="https://clogmeter.vercel.app" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>cursor</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Clogmeter is live on Product Hunt: see what your agent instruction files cost</title>
      <dc:creator>Clogmeter</dc:creator>
      <pubDate>Tue, 10 Nov 2026 08:05:27 +0000</pubDate>
      <link>https://dev.to/clogmeter/clogmeter-is-live-on-product-hunt-see-what-your-agent-instruction-files-cost-4od9</link>
      <guid>https://dev.to/clogmeter/clogmeter-is-live-on-product-hunt-see-what-your-agent-instruction-files-cost-4od9</guid>
      <description>&lt;p&gt;If you use Claude Code, Cursor or Codex, your agent re-reads the same instruction files on every turn: AGENTS.md, CLAUDE.md, Cursor rules, skills. They grow quietly. Rules get copied between files, and sooner or later two of them disagree ("always run the full test suite" in one, "never run slow tests" in another). The model pays for both on every call and starts hedging.&lt;/p&gt;

&lt;p&gt;Clogmeter is a small free tool I built to make that visible. Paste or drop your instruction files and it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;counts the tokens each file and each section costs,&lt;/li&gt;
&lt;li&gt;flags near-duplicate rules across files,&lt;/li&gt;
&lt;li&gt;flags always/never rules that contradict each other,&lt;/li&gt;
&lt;li&gt;suggests what to trim first.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It runs entirely in your browser; nothing is uploaded.&lt;/p&gt;

&lt;p&gt;We're live on Product Hunt today, and honest feedback is very welcome, especially on what it misses:&lt;br&gt;
&lt;a href="https://www.producthunt.com/products/clogmeter" rel="noopener noreferrer"&gt;https://www.producthunt.com/products/clogmeter&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Try it: &lt;a href="https://clogmeter.vercel.app/?ref=producthunt" rel="noopener noreferrer"&gt;https://clogmeter.vercel.app/?ref=producthunt&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claude</category>
      <category>cursor</category>
    </item>
    <item>
      <title>AGENTS.md, skills or MCP: where should agent instructions go?</title>
      <dc:creator>Clogmeter</dc:creator>
      <pubDate>Sat, 07 Nov 2026 08:13:18 +0000</pubDate>
      <link>https://dev.to/clogmeter/agentsmd-skills-or-mcp-where-should-agent-instructions-go-i4c</link>
      <guid>https://dev.to/clogmeter/agentsmd-skills-or-mcp-where-should-agent-instructions-go-i4c</guid>
      <description>&lt;p&gt;&lt;em&gt;Where you put an instruction decides when the agent sees it and what it costs every turn. Here is a practical map for AGENTS.md / CLAUDE.md, skills, Cursor rules, and MCP.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://clogmeter.vercel.app/guides/agents-md-skills-or-mcp" rel="noopener noreferrer"&gt;clogmeter.vercel.app&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Put always-on facts in &lt;code&gt;AGENTS.md&lt;/code&gt; / &lt;code&gt;CLAUDE.md&lt;/code&gt;, put procedures in skills, and put tools in MCP — not instructions. That is a cost decision, not a style preference.&lt;/p&gt;

&lt;h2&gt;
  
  
  What each layer actually loads
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Place&lt;/th&gt;
&lt;th&gt;When it costs tokens&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Root &lt;code&gt;AGENTS.md&lt;/code&gt; / &lt;code&gt;CLAUDE.md&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Session start; stays for the whole session&lt;/td&gt;
&lt;td&gt;Build/test commands, layout, hard constraints the agent needs on every task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Path-scoped rules / nested instruction files&lt;/td&gt;
&lt;td&gt;When matching files are in context&lt;/td&gt;
&lt;td&gt;API-only or package-only conventions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Skills (&lt;code&gt;SKILL.md&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Name + description always; body only when triggered&lt;/td&gt;
&lt;td&gt;Deploy checklists, review playbooks, multi-step procedures&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP servers&lt;/td&gt;
&lt;td&gt;Tool names / schemas (and often server instructions) while the server is connected&lt;/td&gt;
&lt;td&gt;Capabilities the agent must call — databases, browsers, APIs — not prose rules&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Anthropic's Claude Code steering guide makes the same split: root &lt;code&gt;CLAUDE.md&lt;/code&gt; is high context cost, skills load the body on demand, and hooks enforce "never" rules outside markdown. Cursor's rules docs mirror it with &lt;code&gt;alwaysApply&lt;/code&gt;, &lt;code&gt;globs&lt;/code&gt;, and description-based rules.&lt;/p&gt;

&lt;h2&gt;
  
  
  A simple decision rule
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Would you ask a new teammate to memorise this before their first PR?&lt;/strong&gt; If yes, it can live in the root instruction file. If no, move it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is it a procedure ("when releasing, do these 8 steps")?&lt;/strong&gt; Put it in a skill so the body loads only when that work starts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is it a capability ("query Postgres", "open a PR")?&lt;/strong&gt; That is MCP (or a built-in tool), not an instruction file. Do not paste API docs into &lt;code&gt;AGENTS.md&lt;/code&gt; to fake a tool.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Must it never fail?&lt;/strong&gt; Markdown is advisory. Use a hook, linter, or CI check for true guardrails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Does it only apply under `src/api/&lt;/strong&gt;&lt;code&gt;?** Prefer a path-scoped Cursor rule or nested &lt;/code&gt;CLAUDE.md` over stuffing the root file.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Where people usually go wrong
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Procedures in the root file.&lt;/strong&gt; A 30-line release checklist in &lt;code&gt;AGENTS.md&lt;/code&gt; taxes every chat, including ones that never ship.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instructions stuffed into MCP.&lt;/strong&gt; MCP is for tools. Long server instructions and eager schemas are a silent token tax every turn the server stays connected.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Everything set to always-on.&lt;/strong&gt; Cursor &lt;code&gt;alwaysApply: true&lt;/code&gt; and unscoped Claude rules behave like root &lt;code&gt;CLAUDE.md&lt;/code&gt;: paid whether relevant or not.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same rule in three places.&lt;/strong&gt; A "never commit secrets" line in &lt;code&gt;AGENTS.md&lt;/code&gt;, a skill, and an MCP blurb wastes tokens and invites contradictions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Rules that should "almost always" apply but are not worth a permanent tax belong in a skill with a tight description, or a Cursor rule with a clear &lt;code&gt;description&lt;/code&gt; / &lt;code&gt;globs&lt;/code&gt; — not in the root file "just in case."&lt;/p&gt;

&lt;h2&gt;
  
  
  How to migrate without guessing
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Paste your root &lt;code&gt;AGENTS.md&lt;/code&gt; / &lt;code&gt;CLAUDE.md&lt;/code&gt; and always-on Cursor rules into &lt;a href="https://clogmeter.vercel.app/" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Cut anything the agent can discover by reading the repo (long architecture essays, pasted READMEs).&lt;/li&gt;
&lt;li&gt;Move multi-step workflows into skills; leave only pointers in the root file.&lt;/li&gt;
&lt;li&gt;Audit connected MCP servers: disable ones you are not using this session, and keep schemas lean.&lt;/li&gt;
&lt;li&gt;Re-weigh. The always-on budget should shrink; skill bodies and MCP stay available when needed.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;If you want to see where your own AGENTS.md, CLAUDE.md or Cursor rules spend tokens, I built a free browser-only checker that also flags duplicates and always/never conflicts: &lt;a href="https://clogmeter.vercel.app" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>cursor</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Cut one conflicting rule before you trim anything else</title>
      <dc:creator>Clogmeter</dc:creator>
      <pubDate>Sat, 07 Nov 2026 08:12:57 +0000</pubDate>
      <link>https://dev.to/clogmeter/cut-one-conflicting-rule-before-you-trim-anything-else-ipd</link>
      <guid>https://dev.to/clogmeter/cut-one-conflicting-rule-before-you-trim-anything-else-ipd</guid>
      <description>&lt;p&gt;&lt;em&gt;When an agent seems to ignore your rules, the cause is often two rules that disagree rather than a file that's too long. This post shows why fixing one conflict usually helps more than cutting lines.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://clogmeter.vercel.app/posts/cut-conflicting-rules-first.html" rel="noopener noreferrer"&gt;clogmeter.vercel.app&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;When &lt;code&gt;AGENTS.md&lt;/code&gt;, &lt;code&gt;CLAUDE.md&lt;/code&gt;, Cursor rules, and skills all load, the agent does not get “more guidance” — it gets three copies of the same rule and often one quiet contradiction. Always/never pairs that disagree burn tokens twice and teach the model to hedge.&lt;/p&gt;

&lt;p&gt;Quick fix: open every instruction file side by side and search for the same verb (“never commit”, “always run tests”). Keep one canonical line in a single source of truth; delete or @-import the rest. Then weigh what is left.&lt;/p&gt;




&lt;p&gt;If you want to see where your own AGENTS.md, CLAUDE.md or Cursor rules spend tokens, I built a free browser-only checker that also flags duplicates and always/never conflicts: &lt;a href="https://clogmeter.vercel.app" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>cursor</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Why Cursor is ignoring your rules (.mdc + frontmatter)</title>
      <dc:creator>Clogmeter</dc:creator>
      <pubDate>Wed, 04 Nov 2026 16:23:52 +0000</pubDate>
      <link>https://dev.to/clogmeter/why-cursor-is-ignoring-your-rules-mdc-frontmatter-2kfl</link>
      <guid>https://dev.to/clogmeter/why-cursor-is-ignoring-your-rules-mdc-frontmatter-2kfl</guid>
      <description>&lt;p&gt;&lt;em&gt;If Cursor keeps skipping your project rules, it's usually frontmatter, scoping or context pressure rather than the model. Here are the common causes and how to fix each one.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://clogmeter.vercel.app/guides/why-cursor-ignoring-rules" rel="noopener noreferrer"&gt;clogmeter.vercel.app&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;On X and Reddit, “Cursor is ignoring my rules” is often not an adherence problem — the rule never entered&lt;br&gt;
context. Cursor project rules live in &lt;code&gt;.cursor/rules/&lt;/code&gt; as &lt;code&gt;.mdc&lt;/code&gt; files with YAML&lt;br&gt;
frontmatter. A plain &lt;code&gt;.md&lt;/code&gt; in that folder is ignored. Cursor also reads root&lt;br&gt;
&lt;code&gt;AGENTS.md&lt;/code&gt; / &lt;code&gt;CLAUDE.md&lt;/code&gt; as simpler always-on markdown.&lt;/p&gt;

&lt;p&gt;Checklist below matches Cursor’s public Rules docs (keep rules under 500 lines; split large ones).&lt;/p&gt;

&lt;h2&gt;
  
  
  Five checks before you rewrite the rule
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Extension:&lt;/strong&gt; file must end in &lt;code&gt;.mdc&lt;/code&gt; inside &lt;code&gt;.cursor/rules/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontmatter fields:&lt;/strong&gt; only &lt;code&gt;description&lt;/code&gt;, &lt;code&gt;globs&lt;/code&gt;, and &lt;code&gt;alwaysApply&lt;/code&gt; control load mode.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Always Apply:&lt;/strong&gt; &lt;code&gt;alwaysApply: true&lt;/code&gt; puts the rule in every chat (use sparingly — it costs tokens every turn).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;File-scoped:&lt;/strong&gt; set &lt;code&gt;globs&lt;/code&gt; and &lt;code&gt;alwaysApply: false&lt;/code&gt; so it attaches when matching files are in context.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Apply Intelligently / manual:&lt;/strong&gt; a &lt;code&gt;description&lt;/code&gt; without globs lets the agent decide; with neither description nor globs nor alwaysApply, you typically need to &lt;code&gt;@&lt;/code&gt;-mention the rule.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Minimal working example
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;TypeScript conventions for this repo&lt;/span&gt;
&lt;span class="na"&gt;globs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;**/*.ts"&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;**/*.tsx"&lt;/span&gt;
&lt;span class="na"&gt;alwaysApply&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;

&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;Prefer explicit return types on exported functions&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;Follow the patterns in @src/lib/result.ts instead of inventing new Result helpers&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  If it loads but still feels ignored
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Vague wording:&lt;/strong&gt; “write clean code” loses to “use 2-space indentation” — Cursor’s docs ask for actionable rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conflicts:&lt;/strong&gt; the same always/never restated differently across AGENTS.md and several &lt;code&gt;.mdc&lt;/code&gt; files makes the model hedge. Cut one canonical line first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Too much always-on:&lt;/strong&gt; large always-applied rules compete with the task. Prefer globs/skills for procedures.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stale pasted docs:&lt;/strong&gt; reference canonical files; don’t paste whole style guides (Cursor explicitly warns against this).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Prefer a short &lt;a href="https://clogmeter.vercel.app/guides/agents-md-example" rel="noopener noreferrer"&gt;AGENTS.md example&lt;/a&gt; for cross-tool basics, and reserve&lt;br&gt;
&lt;code&gt;.mdc&lt;/code&gt; for activation control. Compare formats in&lt;br&gt;
&lt;a href="https://clogmeter.vercel.app/guides/claude-md-vs-agents-md" rel="noopener noreferrer"&gt;CLAUDE.md vs AGENTS.md vs Cursor rules&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;If you want to see where your own AGENTS.md, CLAUDE.md or Cursor rules spend tokens, I built a free browser-only checker that also flags duplicates and always/never conflicts: &lt;a href="https://clogmeter.vercel.app" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>cursor</category>
      <category>ai</category>
      <category>productivity</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How long should CLAUDE.md / AGENTS.md be?</title>
      <dc:creator>Clogmeter</dc:creator>
      <pubDate>Wed, 04 Nov 2026 16:22:56 +0000</pubDate>
      <link>https://dev.to/clogmeter/how-long-should-claudemd-agentsmd-be-51m8</link>
      <guid>https://dev.to/clogmeter/how-long-should-claudemd-agentsmd-be-51m8</guid>
      <description>&lt;p&gt;&lt;em&gt;Every always-on instruction file costs tokens on every turn, and past a point it starts costing adherence too. Here is what Claude Code, Cursor and Codex actually document about size, plus a checklist for trimming.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://clogmeter.vercel.app/guides/how-long-should-agents-md-be" rel="noopener noreferrer"&gt;clogmeter.vercel.app&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Short answer: aim for a lean always-on file — roughly &lt;strong&gt;under 200 lines per &lt;code&gt;CLAUDE.md&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;
(Anthropic’s documented target) and treat Cursor project rules as &lt;strong&gt;under 500 lines each&lt;/strong&gt;,&lt;br&gt;
split by concern. There is no universal “perfect” line count. The real limit is whether the model&lt;br&gt;
still follows the rules that matter once system prompt, tools, skills and the task compete for the&lt;br&gt;
same attention budget.&lt;/p&gt;

&lt;p&gt;No invented benchmarks here. The numbers below come from vendor docs and published guidance as of late 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the tools themselves say
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;Published guidance&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;CLAUDE.md&lt;/code&gt; / rules&lt;/td&gt;
&lt;td&gt;Target under 200 lines per file; longer files consume more context and reduce adherence. Imports organise files but still load with the parent.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cursor&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.cursor/rules&lt;/code&gt; / &lt;code&gt;AGENTS.md&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Keep rules under 500 lines; split large rules into focused files. Prefer references over pasting whole docs.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI Codex&lt;/td&gt;
&lt;td&gt;&lt;code&gt;AGENTS.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Combined project instruction files are capped (default 32 KiB); overflow is truncated.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Community write-ups often talk about a practical “~150 instruction” attention budget for frontier&lt;br&gt;
models before adherence drops — that is research/context, not a hard file limit. Your instruction&lt;br&gt;
file shares that budget with the agent’s system prompt and tool descriptions, so leave headroom.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why bloated files get ignored
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Everything always-on costs every turn.&lt;/strong&gt; Root &lt;code&gt;CLAUDE.md&lt;/code&gt; / &lt;code&gt;AGENTS.md&lt;/code&gt; is re-read at session start; fat files tax every message and every general-purpose subagent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Markdown is advisory.&lt;/strong&gt; Claude Code docs treat memory files as context, not enforced config. A “never” in prose can still be skipped; hooks and permissions enforce must-holds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conflicts cancel each other.&lt;/strong&gt; Duplicate or contradictory always/never rules across files make the model pick arbitrarily.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Long sessions compress early rules.&lt;/strong&gt; Mid-thread, package-manager or style rules often shrink first while code stays — which feels like “Cursor/Claude is ignoring my rules.”&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A practical size checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Measure first.&lt;/strong&gt; In Claude Code, run &lt;code&gt;/context&lt;/code&gt; (and &lt;code&gt;/doctor&lt;/code&gt; for trim proposals). For any stack, paste the files into Clogmeter to see token weight vs common windows and spot duplicates/conflicts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep always-on content tiny.&lt;/strong&gt; Project identity, hard constraints, build/test commands, and pointers. Delete anything the agent can discover by reading the repo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Move procedures to skills.&lt;/strong&gt; Release checklists and long how-tos should load on demand, not on every prompt.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scope directory rules.&lt;/strong&gt; Nested &lt;code&gt;AGENTS.md&lt;/code&gt; / path-scoped Cursor or &lt;code&gt;.claude/rules&lt;/code&gt; files beat one giant root file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enforce never-rules outside markdown.&lt;/strong&gt; If ignoring it once would hurt, use a hook, linter or CI check.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One source of truth.&lt;/strong&gt; Prefer a canonical &lt;code&gt;AGENTS.md&lt;/code&gt; with thin &lt;code&gt;CLAUDE.md&lt;/code&gt; / Cursor adapters instead of divergent copies.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How long is “too long” in practice?
&lt;/h2&gt;

&lt;p&gt;If the root file is hundreds of lines, mixes architecture essays with one-off workflows, or repeats&lt;br&gt;
the same rule in three places, it is already too long for reliable adherence — even if the model&lt;br&gt;
still “sees” the file. Vendors warn that longer instruction files reduce compliance before hard&lt;br&gt;
truncation kicks in (Codex’s 32 KiB cap being the blunt case).&lt;/p&gt;

&lt;p&gt;A useful rule of thumb many teams use: if you would not ask a new teammate to memorise the whole&lt;br&gt;
file before their first PR, do not force the agent to either. Make the root file the map; put the&lt;br&gt;
territory in scoped docs and skills.&lt;/p&gt;




&lt;p&gt;If you want to see where your own AGENTS.md, CLAUDE.md or Cursor rules spend tokens, I built a free browser-only checker that also flags duplicates and always/never conflicts: &lt;a href="https://clogmeter.vercel.app" rel="noopener noreferrer"&gt;Clogmeter&lt;/a&gt;.&lt;/p&gt;

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