<?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: awesome fred</title>
    <description>The latest articles on DEV Community by awesome fred (@awesome_fredtv_c0c3).</description>
    <link>https://dev.to/awesome_fredtv_c0c3</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%2F4168095%2F1a77aa92-f48a-4c97-af61-56c1f1d44d83.png</url>
      <title>DEV Community: awesome fred</title>
      <link>https://dev.to/awesome_fredtv_c0c3</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/awesome_fredtv_c0c3"/>
    <language>en</language>
    <item>
      <title>"Token-saving" tools made my Claude Code usage go up. Here's the measurement.</title>
      <dc:creator>awesome fred</dc:creator>
      <pubDate>Wed, 07 Oct 2026 08:55:04 +0000</pubDate>
      <link>https://dev.to/awesome_fredtv_c0c3/token-saving-tools-made-my-claude-code-usage-go-up-heres-the-measurement-edk</link>
      <guid>https://dev.to/awesome_fredtv_c0c3/token-saving-tools-made-my-claude-code-usage-go-up-heres-the-measurement-edk</guid>
      <description>&lt;p&gt;I kept hitting Claude Code's weekly limit, so before keeping any token-saving tool I now measure it on a fixed task set.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I measured
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;5 fixed tasks: fix a bug, scan a log, check git changes, summarize a CSV, summarize test results&lt;/li&gt;
&lt;li&gt;3 runs per task, same day, same test repo, &lt;code&gt;claude -p --output-format json&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Cost-weighted tokens = input 1, cache write 1.25, cache read 0.1, output 5&lt;/li&gt;
&lt;li&gt;Answer quality counted as part of correctness&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Results
&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 it does&lt;/th&gt;
&lt;th&gt;Cost-weighted tokens vs baseline&lt;/th&gt;
&lt;th&gt;Correct&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;rtk v0.51.0&lt;/td&gt;
&lt;td&gt;compresses shell output via a hook&lt;/td&gt;
&lt;td&gt;+7.1%&lt;/td&gt;
&lt;td&gt;15/15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;caveman v3.1.0&lt;/td&gt;
&lt;td&gt;makes replies ultra-terse&lt;/td&gt;
&lt;td&gt;+10.9%&lt;/td&gt;
&lt;td&gt;15/15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pxpipe v0.14.0&lt;/td&gt;
&lt;td&gt;renders bulky context as images via a local proxy&lt;/td&gt;
&lt;td&gt;+196.7%&lt;/td&gt;
&lt;td&gt;15/15&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Why all three went up
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Fewer tokens per step can mean more steps.&lt;/strong&gt; rtk trimmed output by ~63%, but Claude ran extra commands to see what was cut. Each turn re-reads the context, so cache reads rose 19%.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anything added to the system prompt is paid on every call.&lt;/strong&gt; caveman's rules (~2,900 tokens) cost more than the 12% output it saved.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Images are not free.&lt;/strong&gt; pxpipe's rendered context cost more than the original text; cache writes on the first call went from ~27K to ~102K.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Where my tokens actually go
&lt;/h2&gt;

&lt;p&gt;About 42% of my cost is the always-loaded context (system prompt, instructions, tool list). Command output is about 6%.&lt;/p&gt;

&lt;p&gt;Raw numbers and method: &lt;a href="https://github.com/awesomefred0827-hash/claude-token-log" rel="noopener noreferrer"&gt;https://github.com/awesomefred0827-hash/claude-token-log&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Next: vendor and patch
&lt;/h2&gt;

&lt;p&gt;I'm thinking of vendoring all three (pulling the source and patching it myself):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;rtk&lt;/strong&gt;: keep error lines uncompressed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;caveman&lt;/strong&gt;: one "be brief" rule, no skill list&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;pxpipe&lt;/strong&gt;: compress only past a context-size threshold&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What do you think? Would these patches work, or would you fix them differently? I'll re-test whatever you suggest and post the results.&lt;/p&gt;

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