<?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: jake</title>
    <description>The latest articles on DEV Community by jake (@jxkedevs).</description>
    <link>https://dev.to/jxkedevs</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3877906%2F8733a878-71ae-446c-a803-76ebde5b20ae.jpg</url>
      <title>DEV Community: jake</title>
      <link>https://dev.to/jxkedevs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jxkedevs"/>
    <language>en</language>
    <item>
      <title>How I stopped burning tokens on CLAUDE.md (and built the tool that diagnoses it)</title>
      <dc:creator>jake</dc:creator>
      <pubDate>Tue, 14 Apr 2026 06:13:17 +0000</pubDate>
      <link>https://dev.to/jxkedevs/how-i-stopped-burning-tokens-on-claudemd-and-built-the-tool-that-diagnoses-it-56a5</link>
      <guid>https://dev.to/jxkedevs/how-i-stopped-burning-tokens-on-claudemd-and-built-the-tool-that-diagnoses-it-56a5</guid>
      <description>&lt;p&gt;Every time I hit Claude Code's token limit I had no idea where my tokens actually went. The usage counter just said I'd hit my limit. No breakdown, no diagnosis, nothing.&lt;/p&gt;

&lt;p&gt;Turns out Claude Code writes detailed session logs to &lt;code&gt;~/.claude/projects/&lt;/code&gt; after every session - every tool call, every message, every compaction event. The data was sitting on my machine the whole time. Nobody was reading it.&lt;/p&gt;

&lt;p&gt;So I built PRISM.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it found on my own machine
&lt;/h2&gt;

&lt;p&gt;Running it for the first time was genuinely surprising:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A session where &lt;strong&gt;CLAUDE.md re-reads consumed 6738% of session tokens&lt;/strong&gt; — a 237-line file being re-read on every single tool call. Silent. No warning. Just gone.&lt;/li&gt;
&lt;li&gt;Rules in CLAUDE.md being &lt;strong&gt;silently ignored mid-session&lt;/strong&gt; 
— the rule existed, Claude stopped following it after line 80&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Migration file edits&lt;/strong&gt; that violated my own project rules&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Retry loops&lt;/strong&gt; burning tokens in circles with no diagnosis&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;5 consecutive tool failures&lt;/strong&gt; in a single session I never knew were happening&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this was visible before. The token counter just said I'd hit my limit.&lt;/p&gt;

&lt;h2&gt;
  
  
  The CLAUDE.md re-read problem
&lt;/h2&gt;

&lt;p&gt;Every tool call Claude Code makes re-reads your CLAUDE.md from the top of the context. A 200-line CLAUDE.md × 50 tool calls = 10,000 tokens spent on instructions per session.&lt;/p&gt;

&lt;p&gt;If your CLAUDE.md has grown to include personality instructions, full documentation copies, or rules that only apply to one subdirectory — you're paying for all of it every time.&lt;/p&gt;

&lt;p&gt;PRISM measures this exactly and tells you which lines are costing you the most.&lt;/p&gt;

&lt;h2&gt;
  
  
  The adherence problem
&lt;/h2&gt;

&lt;p&gt;After line ~80 of your CLAUDE.md, Claude Code's instruction following drops significantly. LLMs follow a U-shaped attention curve — they pay most attention to the beginning and end of a prompt, least to the middle.&lt;/p&gt;

&lt;p&gt;PRISM's attention curve scorer flags critical rules (NEVER/ALWAYS/DO NOT) buried in the middle 55% of your file where the model pays least attention. It then recommends moving them to the top or bottom.&lt;/p&gt;

&lt;h2&gt;
  
  
  What PRISM does
&lt;/h2&gt;

&lt;p&gt;PRISM reads the JSONL files Claude Code already writes and gives you:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Health scores A-F across 5 dimensions:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Token Efficiency — CLAUDE.md re-read costs, compaction frequency&lt;/li&gt;
&lt;li&gt;Tool Health — retry loops, edit-revert cycles, consecutive failures&lt;/li&gt;
&lt;li&gt;Context Hygiene — compaction loss events, mid-task boundaries&lt;/li&gt;
&lt;li&gt;CLAUDE.md Adherence — are your rules actually being followed?&lt;/li&gt;
&lt;li&gt;Session Continuity — resume success rate, truncated sessions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Concrete recommendations:&lt;/strong&gt;&lt;br&gt;
Not just "your score is low" but specific diffs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Remove lines 120-148: personality instructions Claude's system prompt already handles"&lt;/li&gt;
&lt;li&gt;"Move these 3 rules to src/CLAUDE.md — they only apply in that directory"&lt;/li&gt;
&lt;li&gt;"Add: always use --non-interactive flags (14 retry loops detected)"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;HTML dashboard:&lt;/strong&gt;&lt;br&gt;
Run &lt;code&gt;prism dashboard&lt;/code&gt; to open a full browser view of all your project health scores. Expandable cards, grade distribution, advisor recommendations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;prism-cc
prism analyze
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or as a Claude Code plugin:&lt;br&gt;
/plugin marketplace add jakeefr/prism&lt;br&gt;
/plugin install prism@prism&lt;br&gt;
/reload-plugins&lt;/p&gt;

&lt;p&gt;Runs 100% locally. No API key. No telemetry. MIT license.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/jakeefr/prism" rel="noopener noreferrer"&gt;https://github.com/jakeefr/prism&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Curious what numbers other people find when they run it. &lt;br&gt;
The 6738% number on my own machine genuinely shocked me — &lt;br&gt;
I had no idea instructions were that expensive.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>opensource</category>
      <category>python</category>
    </item>
  </channel>
</rss>
