<?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: hiam</title>
    <description>The latest articles on DEV Community by hiam (@win_8885d862ed01a4).</description>
    <link>https://dev.to/win_8885d862ed01a4</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%2F3966469%2F219bc5af-aa31-4df2-b911-486c633a0417.png</url>
      <title>DEV Community: hiam</title>
      <link>https://dev.to/win_8885d862ed01a4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/win_8885d862ed01a4"/>
    <language>en</language>
    <item>
      <title>Local AST scanner that reduces AI coding agent token costs</title>
      <dc:creator>hiam</dc:creator>
      <pubDate>Wed, 03 Jun 2026 11:53:32 +0000</pubDate>
      <link>https://dev.to/win_8885d862ed01a4/local-ast-scanner-that-reduces-ai-coding-agent-token-costs-12lp</link>
      <guid>https://dev.to/win_8885d862ed01a4/local-ast-scanner-that-reduces-ai-coding-agent-token-costs-12lp</guid>
      <description>&lt;p&gt;Current AI coding agents (Cursor, Claude Code, Codex) re-read entire repositories on every new session or follow-up question, which increases token costs. Having large repos in context windows can also reduce output quality as models get distracted by irrelevant files.&lt;br&gt;
I built a lightweight open-source tool to address this. It runs a local AST and dependency scan to map files, symbols, and code relationships first, then routes the agent only to files needed for a specific task instead of the whole repo.&lt;/p&gt;

&lt;p&gt;On our repos, we're seeing ~60% lower token costs and more focused code output. It's local-first, works with MCP setups, and is open-source.&lt;/p&gt;

&lt;p&gt;Would appreciate feedback on the architecture and how others are handling context limits on larger codebases.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/kunal12203/Codex-CLI-Compact" rel="noopener noreferrer"&gt;https://github.com/kunal12203/Codex-CLI-Compact&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>showdev</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
