<?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: Davi</title>
    <description>The latest articles on DEV Community by Davi (@davi_6869ffcaf10967a32fe2).</description>
    <link>https://dev.to/davi_6869ffcaf10967a32fe2</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%2F4002860%2F1a034574-4132-4348-9f4c-0baf949c934c.jpg</url>
      <title>DEV Community: Davi</title>
      <link>https://dev.to/davi_6869ffcaf10967a32fe2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/davi_6869ffcaf10967a32fe2"/>
    <language>en</language>
    <item>
      <title>How I built a free tool that shows where Claude Code burns tokens</title>
      <dc:creator>Davi</dc:creator>
      <pubDate>Thu, 25 Jun 2026 18:44:34 +0000</pubDate>
      <link>https://dev.to/davi_6869ffcaf10967a32fe2/how-i-built-a-free-tool-that-shows-where-claude-code-burns-tokens-2hj0</link>
      <guid>https://dev.to/davi_6869ffcaf10967a32fe2/how-i-built-a-free-tool-that-shows-where-claude-code-burns-tokens-2hj0</guid>
      <description>&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Just saying "hi" to Claude Code costs &lt;strong&gt;~31,000 tokens&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I was paying $500+/month in API costs and had no idea where the tokens were going. So I built &lt;strong&gt;tokenwise&lt;/strong&gt; — a free CLI that shows exactly where your AI coding agent wastes tokens.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  &lt;code&gt;tokenwise audit&lt;/code&gt; — Scan your instruction files
&lt;/h3&gt;

&lt;p&gt;It scans your CLAUDE.md, AGENTS.md, and rules files, then shows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How many tokens each file costs &lt;strong&gt;per message&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Boilerplate the AI already knows ("Always write clean code")&lt;/li&gt;
&lt;li&gt;ALL-CAPS emphasis that doesn't help (NEVER, ALWAYS, MUST)&lt;/li&gt;
&lt;li&gt;Duplicate sections&lt;/li&gt;
&lt;li&gt;Unscoped rules that load when they shouldn't&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;tokenwise scan&lt;/code&gt; — Analyze your sessions
&lt;/h3&gt;

&lt;p&gt;It reads your latest session logs and shows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Token breakdown by component (system prompt, history, tool output)&lt;/li&gt;
&lt;li&gt;Cache hit rate&lt;/li&gt;
&lt;li&gt;Top 3 "token hogs" with actionable tips&lt;/li&gt;
&lt;li&gt;Monthly cost projection&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The key insight
&lt;/h2&gt;

&lt;p&gt;Most people try to &lt;strong&gt;compress&lt;/strong&gt; context (which makes the AI dumber).&lt;/p&gt;

&lt;p&gt;tokenwise &lt;strong&gt;measures&lt;/strong&gt; first, then applies safe fixes. You can't optimize what you can't measure.&lt;/p&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;npx @davizin713/tokenwise audit
npx @davizin713/tokenwise scan
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Zero API calls. Zero LLM inference. 100% local. Free forever.&lt;br&gt;
Works with 11 agents&lt;/p&gt;

&lt;p&gt;Claude Code, OpenCode, Cursor, Aider, Cline, Codex CLI, Goose, Continue.dev, Windsurf, Augment, and Kilocode.&lt;br&gt;
Links&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GitHub: github.com/davi713albano-coder/tokenwise
npm: npmjs.com/package/@davizin713/tokenwise
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Built with&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;TypeScript / Node.js
js-tiktoken for token counting
sql.js for reading OpenCode sessions
MIT licensed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;If you use Claude Code or any AI coding agent, try it and let me know what you think! ⭐&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>ai</category>
      <category>typescript</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
