<?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: MD</title>
    <description>The latest articles on DEV Community by MD (@md_565627).</description>
    <link>https://dev.to/md_565627</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%2F3960377%2Ff90d7d13-3f38-4d11-9f55-d0738079ec31.png</url>
      <title>DEV Community: MD</title>
      <link>https://dev.to/md_565627</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/md_565627"/>
    <language>en</language>
    <item>
      <title>How I Cut AI Coding Token Costs by 96% with AST Compression</title>
      <dc:creator>MD</dc:creator>
      <pubDate>Sat, 30 May 2026 19:01:10 +0000</pubDate>
      <link>https://dev.to/md_565627/how-i-cut-ai-coding-token-costs-by-96-with-ast-compression-27hn</link>
      <guid>https://dev.to/md_565627/how-i-cut-ai-coding-token-costs-by-96-with-ast-compression-27hn</guid>
      <description>&lt;p&gt;If you use Claude Code, Cursor, or Aider - you feel the pain.&lt;/p&gt;

&lt;p&gt;You ask to fix a bug and it dumps 15 files into context. 45K tokens wasted.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;PMC Engine&lt;/strong&gt; - AST-level compression that scores every symbol and sends only what's needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Numbers
&lt;/h2&gt;

&lt;p&gt;FastAPI (48 files, 33K LOC, DeepSeek V4 Flash):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Simple fix: 45K -&amp;gt; 7.1K (84%)&lt;/li&gt;
&lt;li&gt;Refactor: 85K -&amp;gt; 7.8K (91%)&lt;/li&gt;
&lt;li&gt;Complex: 148K -&amp;gt; 7.7K (95%)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Avg: 91.8% reduction, 100% quality, &amp;lt;5ms&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick Start
&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;pmc-engine
pmc index ./my-project
pmc serve &lt;span class="nt"&gt;--port&lt;/span&gt; 8080
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;MIT: &lt;a href="https://github.com/mdayan8/pmc-engine" rel="noopener noreferrer"&gt;https://github.com/mdayan8/pmc-engine&lt;/a&gt;&lt;/p&gt;

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