<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Context Compression on RockB</title><link>https://baeseokjae.github.io/tags/context-compression/</link><description>Recent content in Context Compression on RockB</description><image><title>RockB</title><url>https://baeseokjae.github.io/images/og-default.png</url><link>https://baeseokjae.github.io/images/og-default.png</link></image><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 21 Jun 2026 12:00:00 +0000</lastBuildDate><atom:link href="https://baeseokjae.github.io/tags/context-compression/index.xml" rel="self" type="application/rss+xml"/><item><title>Coding Agent Token Waste Reduction: The Complete Guide to Cutting LLM Costs by 60-80%</title><link>https://baeseokjae.github.io/posts/coding-agent-token-waste-reduction-guide-2026/</link><pubDate>Sun, 21 Jun 2026 12:00:00 +0000</pubDate><guid>https://baeseokjae.github.io/posts/coding-agent-token-waste-reduction-guide-2026/</guid><description>AI coding agents burn 10-100x more tokens than chat. Here is exactly where the waste goes and how to cut it 60-80% with prompt caching, model routing, c...</description><content:encoded><![CDATA[<p>A single developer running Claude Code full-time can burn $3,000-$13,000/month in API costs. A 20-person team using coding agents at the same intensity hits $47K/month before they realize something is wrong. The research across Beam, AgentMarketCap, and Stanford&rsquo;s Digital Economy Lab points to the same number: 60-70% of that spending is waste — redundant context loading, fat prompts, wrong model choices, and bloated session histories.</p>
<p>This guide covers the eight strategies that actually move the needle, ranked by impact, with code and configs you can apply today.</p>
<h2 id="where-your-tokens-actually-go-the-45252010-breakdown">Where Your Tokens Actually Go: The 45/25/20/10 Breakdown</h2>
<p>I&rsquo;ve found that most teams cannot answer the first question: what fraction of my token spend is waste? The numbers from every published source converge on the same distribution for agentic coding workloads:</p>
<table>
  <thead>
      <tr>
          <th>Category</th>
          <th>Share</th>
          <th>What It Is</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Context loading</td>
          <td>45%</td>
          <td>Re-reading project files, system prompts, and instructions on every call</td>
      </tr>
      <tr>
          <td>Conversation history</td>
          <td>25%</td>
          <td>Every prior message stuffed into each new request</td>
      </tr>
      <tr>
          <td>Output generation</td>
          <td>20%</td>
          <td>The actual code and responses (smallest slice)</td>
      </tr>
      <tr>
          <td>Retries + corrections</td>
          <td>10%</td>
          <td>Failed attempts, error recovery, correction loops</td>
      </tr>
  </tbody>
</table>
<p>The first two categories — 70% of total spend — are pure overhead. The model re-reads the same files and the same conversation on every single turn. Fixing those two things alone cuts your bill in half.</p>
<h2 id="1-prompt-caching-the-40-90-discount">1. Prompt Caching: The 40-90% Discount</h2>
<p>Prompt caching is the single highest-ROI change you can make. Both Anthropic and OpenAI discount cached input tokens by 50-90%:</p>
<ul>
<li><strong>Anthropic</strong>: $0.30/M input tokens cached vs $3.00/M uncached (90% off). Auto-enables for repeated prefix content since Claude Opus 4.7.</li>
<li><strong>OpenAI</strong>: 50% discount on cached tokens since GPT-5.5. Requires explicit <code>cached_tokens</code> parameter.</li>
</ul>
<p>The implementation is deceptively simple but easy to get wrong:</p>



<div class="goat svg-container ">
  
    <svg
      xmlns="http://www.w3.org/2000/svg"
      font-family="Menlo,Lucida Console,monospace"
      
        viewBox="0 0 472 201"
      >
      <g transform='translate(8,16)'>
<path d='M 0,96 L 16,96' fill='none' stroke='currentColor'></path>
<text text-anchor='middle' x='0' y='4' fill='currentColor' style='font-size:1em'>#</text>
<text text-anchor='middle' x='0' y='20' fill='currentColor' style='font-size:1em'>S</text>
<text text-anchor='middle' x='0' y='36' fill='currentColor' style='font-size:1em'>R</text>
<text text-anchor='middle' x='0' y='52' fill='currentColor' style='font-size:1em'>-</text>
<text text-anchor='middle' x='0' y='68' fill='currentColor' style='font-size:1em'>-</text>
<text text-anchor='middle' x='0' y='84' fill='currentColor' style='font-size:1em'>-</text>
<text text-anchor='middle' x='0' y='116' fill='currentColor' style='font-size:1em'>U</text>
<text text-anchor='middle' x='0' y='148' fill='currentColor' style='font-size:1em'>#</text>
<text text-anchor='middle' x='0' y='164' fill='currentColor' style='font-size:1em'>U</text>
<text text-anchor='middle' x='0' y='180' fill='currentColor' style='font-size:1em'>S</text>
<text text-anchor='middle' x='8' y='20' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='8' y='36' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='8' y='116' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='8' y='164' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='8' y='180' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='16' y='4' fill='currentColor' style='font-size:1em'>G</text>
<text text-anchor='middle' x='16' y='20' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='16' y='36' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='16' y='52' fill='currentColor' style='font-size:1em'>F</text>
<text text-anchor='middle' x='16' y='68' fill='currentColor' style='font-size:1em'>C</text>
<text text-anchor='middle' x='16' y='84' fill='currentColor' style='font-size:1em'>V</text>
<text text-anchor='middle' x='16' y='116' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='16' y='148' fill='currentColor' style='font-size:1em'>B</text>
<text text-anchor='middle' x='16' y='164' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='16' y='180' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='24' y='4' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='24' y='20' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='24' y='36' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='24' y='52' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='24' y='68' fill='currentColor' style='font-size:1em'>h</text>
<text text-anchor='middle' x='24' y='84' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='24' y='116' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='24' y='148' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='24' y='164' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='24' y='180' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='32' y='4' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='32' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='32' y='36' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='32' y='52' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='32' y='68' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='32' y='84' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='32' y='116' fill='currentColor' style='font-size:1em'>:</text>
<text text-anchor='middle' x='32' y='148' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='32' y='164' fill='currentColor' style='font-size:1em'>:</text>
<text text-anchor='middle' x='32' y='180' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='40' y='4' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='40' y='20' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='40' y='36' fill='currentColor' style='font-size:1em'>:</text>
<text text-anchor='middle' x='40' y='52' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='40' y='68' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='40' y='84' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='40' y='148' fill='currentColor' style='font-size:1em'>:</text>
<text text-anchor='middle' x='40' y='180' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='48' y='4' fill='currentColor' style='font-size:1em'>:</text>
<text text-anchor='middle' x='48' y='20' fill='currentColor' style='font-size:1em'>:</text>
<text text-anchor='middle' x='48' y='68' fill='currentColor' style='font-size:1em'>k</text>
<text text-anchor='middle' x='48' y='84' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='48' y='116' fill='currentColor' style='font-size:1em'>R</text>
<text text-anchor='middle' x='48' y='164' fill='currentColor' style='font-size:1em'>I</text>
<text text-anchor='middle' x='48' y='180' fill='currentColor' style='font-size:1em'>:</text>
<text text-anchor='middle' x='56' y='52' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='56' y='84' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='56' y='116' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='56' y='148' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='56' y='164' fill='currentColor' style='font-size:1em'>'</text>
<text text-anchor='middle' x='64' y='4' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='64' y='20' fill='currentColor' style='font-size:1em'>Y</text>
<text text-anchor='middle' x='64' y='52' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='64' y='68' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='64' y='84' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='64' y='116' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='64' y='148' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='64' y='164' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='64' y='180' fill='currentColor' style='font-size:1em'>[</text>
<text text-anchor='middle' x='72' y='4' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='72' y='20' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='72' y='52' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='72' y='68' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='72' y='84' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='72' y='116' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='72' y='148' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='72' y='180' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='80' y='4' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='80' y='20' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='80' y='52' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='80' y='68' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='80' y='116' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='80' y='148' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='80' y='164' fill='currentColor' style='font-size:1em'>w</text>
<text text-anchor='middle' x='80' y='180' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='88' y='4' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='88' y='52' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='88' y='68' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='88' y='84' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='88' y='116' fill='currentColor' style='font-size:1em'>w</text>
<text text-anchor='middle' x='88' y='148' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='88' y='164' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='88' y='180' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='96' y='4' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='96' y='20' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='96' y='52' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='96' y='84' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='96' y='148' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='96' y='164' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='96' y='180' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='104' y='4' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='104' y='20' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='104' y='52' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='104' y='68' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='104' y='84' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='104' y='116' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='104' y='148' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='104' y='164' fill='currentColor' style='font-size:1em'>k</text>
<text text-anchor='middle' x='112' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='112' y='52' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='112' y='68' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='112' y='84' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='112' y='116' fill='currentColor' style='font-size:1em'>h</text>
<text text-anchor='middle' x='112' y='164' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='112' y='180' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='120' y='4' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='120' y='68' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='120' y='84' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='120' y='116' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='120' y='148' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='120' y='164' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='120' y='180' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='128' y='4' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='128' y='20' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='128' y='52' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='128' y='68' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='128' y='84' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='128' y='116' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='128' y='148' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='128' y='164' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='128' y='180' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='136' y='4' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='136' y='52' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='136' y='68' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='136' y='84' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='136' y='148' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='136' y='180' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='144' y='4' fill='currentColor' style='font-size:1em'>f</text>
<text text-anchor='middle' x='144' y='20' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='144' y='52' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='144' y='68' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='144' y='116' fill='currentColor' style='font-size:1em'>P</text>
<text text-anchor='middle' x='144' y='148' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='144' y='164' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='144' y='180' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='152' y='4' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='152' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='152' y='52' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='152' y='68' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='152' y='84' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='152' y='116' fill='currentColor' style='font-size:1em'>R</text>
<text text-anchor='middle' x='152' y='148' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='152' y='164' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='152' y='180' fill='currentColor' style='font-size:1em'>]</text>
<text text-anchor='middle' x='160' y='4' fill='currentColor' style='font-size:1em'>x</text>
<text text-anchor='middle' x='160' y='20' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='160' y='52' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='160' y='68' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='160' y='84' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='160' y='116' fill='currentColor' style='font-size:1em'>:</text>
<text text-anchor='middle' x='160' y='148' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='168' y='20' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='168' y='52' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='168' y='84' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='168' y='148' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='168' y='164' fill='currentColor' style='font-size:1em'>[</text>
<text text-anchor='middle' x='176' y='4' fill='currentColor' style='font-size:1em'>f</text>
<text text-anchor='middle' x='176' y='20' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='176' y='52' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='176' y='84' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='176' y='116' fill='currentColor' style='font-size:1em'>[</text>
<text text-anchor='middle' x='176' y='164' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='184' y='4' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='184' y='20' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='184' y='52' fill='currentColor' style='font-size:1em'>b</text>
<text text-anchor='middle' x='184' y='116' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='184' y='148' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='184' y='164' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='192' y='4' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='192' y='52' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='192' y='84' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='192' y='116' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='192' y='148' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='192' y='164' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='200' y='4' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='200' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='200' y='52' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='200' y='84' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='200' y='116' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='200' y='148' fill='currentColor' style='font-size:1em'>x</text>
<text text-anchor='middle' x='200' y='164' fill='currentColor' style='font-size:1em'>j</text>
<text text-anchor='middle' x='208' y='4' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='208' y='20' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='208' y='52' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='208' y='84' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='208' y='116' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='208' y='148' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='208' y='164' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='216' y='4' fill='currentColor' style='font-size:1em'>,</text>
<text text-anchor='middle' x='216' y='20' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='216' y='52' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='216' y='84' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='216' y='116' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='216' y='148' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='216' y='164' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='224' y='20' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='224' y='52' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='224' y='84' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='224' y='116' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='224' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='232' y='4' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='232' y='20' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='232' y='52' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='232' y='116' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='232' y='148' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='240' y='4' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='240' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='240' y='52' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='240' y='84' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='240' y='148' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='240' y='164' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='248' y='4' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='248' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='248' y='84' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='248' y='116' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='248' y='148' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='248' y='164' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='256' y='4' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='256' y='20' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='256' y='84' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='256' y='116' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='256' y='148' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='256' y='164' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='264' y='4' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='264' y='84' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='264' y='116' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='264' y='164' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='272' y='4' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='272' y='20' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='272' y='84' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='272' y='116' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='272' y='148' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='272' y='164' fill='currentColor' style='font-size:1em'>]</text>
<text text-anchor='middle' x='280' y='4' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='280' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='280' y='116' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='280' y='148' fill='currentColor' style='font-size:1em'>h</text>
<text text-anchor='middle' x='280' y='164' fill='currentColor' style='font-size:1em'>.</text>
<text text-anchor='middle' x='288' y='20' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='288' y='116' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='288' y='148' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='296' y='4' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='296' y='20' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='296' y='116' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='296' y='164' fill='currentColor' style='font-size:1em'>R</text>
<text text-anchor='middle' x='304' y='4' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='304' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='304' y='148' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='304' y='164' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='312' y='4' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='312' y='20' fill='currentColor' style='font-size:1em'>w</text>
<text text-anchor='middle' x='312' y='116' fill='currentColor' style='font-size:1em'>h</text>
<text text-anchor='middle' x='312' y='148' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='312' y='164' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='320' y='4' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='320' y='20' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='320' y='116' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='320' y='148' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='320' y='164' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='328' y='4' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='328' y='20' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='328' y='116' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='328' y='148' fill='currentColor' style='font-size:1em'>f</text>
<text text-anchor='middle' x='328' y='164' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='336' y='4' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='336' y='20' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='336' y='116' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='336' y='148' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='336' y='164' fill='currentColor' style='font-size:1em'>w</text>
<text text-anchor='middle' x='344' y='4' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='344' y='116' fill='currentColor' style='font-size:1em'>]</text>
<text text-anchor='middle' x='344' y='148' fill='currentColor' style='font-size:1em'>x</text>
<text text-anchor='middle' x='352' y='20' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='352' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='360' y='4' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='360' y='20' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='360' y='164' fill='currentColor' style='font-size:1em'>h</text>
<text text-anchor='middle' x='368' y='4' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='368' y='20' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='368' y='164' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='376' y='4' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='376' y='20' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='376' y='164' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='384' y='4' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='392' y='20' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='392' y='164' fill='currentColor' style='font-size:1em'>P</text>
<text text-anchor='middle' x='400' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='400' y='164' fill='currentColor' style='font-size:1em'>R</text>
<text text-anchor='middle' x='408' y='20' fill='currentColor' style='font-size:1em'>q</text>
<text text-anchor='middle' x='408' y='164' fill='currentColor' style='font-size:1em'>.</text>
<text text-anchor='middle' x='416' y='20' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='424' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='432' y='20' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='440' y='20' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='448' y='20' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='456' y='20' fill='currentColor' style='font-size:1em'>.</text>
</g>

    </svg>
  
</div>
<p>The cache key is the prefix. If your system prompt changes even slightly between calls, the cache misses and you pay full price. Keep your <code>CLAUDE.md</code> and <code>AGENTS.md</code> files stable within a session. I&rsquo;ve seen teams accidentally include the current timestamp in their system prompt — that single detail invalidates every cache hit.</p>
<p><strong>Real data</strong>: Prompt caching alone can cut total input costs by 40-90% depending on how much of your prompt is static prefix (<a href="/posts/llm-prompt-caching-guide-2026/">full breakdown</a>).</p>
<h2 id="2-model-routing-the-702010-rule">2. Model Routing: The 70/20/10 Rule</h2>
<p>The second biggest lever is not using a frontier model for every task. The data across RouteLLM (ICLR 2025) and AgentMarketCap shows that agentic workloads break down into three tiers:</p>
<ul>
<li><strong>70% simple tasks</strong>: Lint fixes, doc generation, simple refactors, test writing</li>
<li><strong>20% moderate reasoning</strong>: Bug diagnosis, API integration, architectural decisions</li>
<li><strong>10% complex architecture</strong>: System design, cross-cutting refactors, novel solutions</li>
</ul>
<p>Route the bottom 70% to small models ($0.10-0.50/MTok), 20% to mid-tier ($1-5/MTok), and only 10% to frontier models ($15-60/MTok). RouteLLM demonstrated 85% cost reduction while maintaining 95% of GPT-4 performance on the Agentic Coding benchmark.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-python" data-lang="python"><span style="display:flex;"><span><span style="color:#75715e"># Simple router example</span>
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">def</span> <span style="color:#a6e22e">route_task</span>(task: str, complexity: str) <span style="color:#f92672">-&gt;</span> str:
</span></span><span style="display:flex;"><span>    routing <span style="color:#f92672">=</span> {
</span></span><span style="display:flex;"><span>        <span style="color:#e6db74">&#34;simple&#34;</span>: <span style="color:#e6db74">&#34;claude-sonnet-4-20260514&#34;</span>,   <span style="color:#75715e"># $3/MTok</span>
</span></span><span style="display:flex;"><span>        <span style="color:#e6db74">&#34;moderate&#34;</span>: <span style="color:#e6db74">&#34;claude-opus-4-8-20260601&#34;</span>,  <span style="color:#75715e"># $15/MTok</span>
</span></span><span style="display:flex;"><span>        <span style="color:#e6db74">&#34;complex&#34;</span>: <span style="color:#e6db74">&#34;claude-fable-5-20260609&#34;</span>,    <span style="color:#75715e"># $60/MTok (before ban)</span>
</span></span><span style="display:flex;"><span>    }
</span></span><span style="display:flex;"><span>    <span style="color:#66d9ef">return</span> routing<span style="color:#f92672">.</span>get(complexity, <span style="color:#e6db74">&#34;claude-sonnet-4-20260514&#34;</span>)
</span></span></code></pre></div><p>If you use an AI gateway like Portkey or LiteLLM, set up routing rules at the proxy level so individual developers do not need to think about model selection. The proxy inspects the request metadata and routes accordingly.</p>
<h2 id="3-context-compression-the-compact-habit">3. Context Compression: The <code>/compact</code> Habit</h2>
<p>A typical agent session after 30 turns has accumulated 25,000-35,000 tokens of conversation history. Most of it is irrelevant to the current task — the model re-reads every prior thought, every tool result, every error message from 20 turns ago.</p>
<p>Claude Code&rsquo;s <code>/compact</code> command summarizes the conversation to its essential state, dropping old turns. Use it every 15-20 messages. For other tools, the same principle applies: summarize, don&rsquo;t append.</p>
<p>For prompt-level compression, tools like LLMLingua achieve 20-50% token reduction by removing redundant tokens from the prompt while preserving semantic content. The trade-off is a slight increase in latency (100-500ms for compression) and occasional loss of nuance in highly technical prompts.</p>
<p><strong>When compression hurts</strong>: If your prompt contains precise version numbers, exact error messages, or specific code snippets, compression can drop critical detail. Only compress instructional and explanatory text, not data.</p>
<h2 id="4-agentsmd-progressive-disclosure-70-token-reduction">4. AGENTS.md Progressive Disclosure: 70% Token Reduction</h2>
<p>This is the most underused optimization. Most teams dump every instruction, every convention, every workflow into a single <code>AGENTS.md</code> file. The agent loads the entire file at session start and re-reads it on every context window reset.</p>
<p>The fix is modular progressive disclosure: keep the top-level file as a thin index with brief skill descriptions (~155 tokens for 4 skills), and load full content only when a skill is triggered:</p>



<div class="goat svg-container ">
  
    <svg
      xmlns="http://www.w3.org/2000/svg"
      font-family="Menlo,Lucida Console,monospace"
      
        viewBox="0 0 408 201"
      >
      <g transform='translate(8,16)'>
<text text-anchor='middle' x='0' y='4' fill='currentColor' style='font-size:1em'>#</text>
<text text-anchor='middle' x='0' y='20' fill='currentColor' style='font-size:1em'>#</text>
<text text-anchor='middle' x='0' y='36' fill='currentColor' style='font-size:1em'>R</text>
<text text-anchor='middle' x='0' y='68' fill='currentColor' style='font-size:1em'>#</text>
<text text-anchor='middle' x='0' y='84' fill='currentColor' style='font-size:1em'>W</text>
<text text-anchor='middle' x='0' y='116' fill='currentColor' style='font-size:1em'>#</text>
<text text-anchor='middle' x='0' y='132' fill='currentColor' style='font-size:1em'>A</text>
<text text-anchor='middle' x='0' y='164' fill='currentColor' style='font-size:1em'>#</text>
<text text-anchor='middle' x='0' y='180' fill='currentColor' style='font-size:1em'>G</text>
<text text-anchor='middle' x='8' y='20' fill='currentColor' style='font-size:1em'>#</text>
<text text-anchor='middle' x='8' y='36' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='8' y='68' fill='currentColor' style='font-size:1em'>#</text>
<text text-anchor='middle' x='8' y='84' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='8' y='116' fill='currentColor' style='font-size:1em'>#</text>
<text text-anchor='middle' x='8' y='132' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='8' y='164' fill='currentColor' style='font-size:1em'>#</text>
<text text-anchor='middle' x='8' y='180' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='16' y='4' fill='currentColor' style='font-size:1em'>A</text>
<text text-anchor='middle' x='16' y='36' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='16' y='84' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='16' y='132' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='16' y='180' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='24' y='4' fill='currentColor' style='font-size:1em'>G</text>
<text text-anchor='middle' x='24' y='20' fill='currentColor' style='font-size:1em'>C</text>
<text text-anchor='middle' x='24' y='36' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='24' y='68' fill='currentColor' style='font-size:1em'>T</text>
<text text-anchor='middle' x='24' y='84' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='24' y='116' fill='currentColor' style='font-size:1em'>R</text>
<text text-anchor='middle' x='24' y='132' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='24' y='164' fill='currentColor' style='font-size:1em'>D</text>
<text text-anchor='middle' x='24' y='180' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='32' y='4' fill='currentColor' style='font-size:1em'>E</text>
<text text-anchor='middle' x='32' y='20' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='32' y='36' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='32' y='68' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='32' y='84' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='32' y='116' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='32' y='132' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='32' y='164' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='32' y='180' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='40' y='4' fill='currentColor' style='font-size:1em'>N</text>
<text text-anchor='middle' x='40' y='20' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='40' y='36' fill='currentColor' style='font-size:1em'>w</text>
<text text-anchor='middle' x='40' y='68' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='40' y='116' fill='currentColor' style='font-size:1em'>f</text>
<text text-anchor='middle' x='40' y='132' fill='currentColor' style='font-size:1em'>z</text>
<text text-anchor='middle' x='40' y='164' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='40' y='180' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='48' y='4' fill='currentColor' style='font-size:1em'>T</text>
<text text-anchor='middle' x='48' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='48' y='68' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='48' y='84' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='48' y='116' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='48' y='132' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='48' y='164' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='48' y='180' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='56' y='4' fill='currentColor' style='font-size:1em'>S</text>
<text text-anchor='middle' x='56' y='36' fill='currentColor' style='font-size:1em'>P</text>
<text text-anchor='middle' x='56' y='68' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='56' y='84' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='56' y='116' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='56' y='164' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='56' y='180' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='64' y='4' fill='currentColor' style='font-size:1em'>.</text>
<text text-anchor='middle' x='64' y='20' fill='currentColor' style='font-size:1em'>R</text>
<text text-anchor='middle' x='64' y='36' fill='currentColor' style='font-size:1em'>R</text>
<text text-anchor='middle' x='64' y='68' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='64' y='84' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='64' y='116' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='64' y='132' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='64' y='164' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='72' y='4' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='72' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='72' y='36' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='72' y='68' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='72' y='116' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='72' y='132' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='72' y='164' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='72' y='180' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='80' y='4' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='80' y='20' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='80' y='84' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='80' y='116' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='80' y='132' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='80' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='80' y='180' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='88' y='20' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='88' y='36' fill='currentColor' style='font-size:1em'>f</text>
<text text-anchor='middle' x='88' y='84' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='88' y='116' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='88' y='164' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='88' y='180' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='96' y='4' fill='currentColor' style='font-size:1em'>(</text>
<text text-anchor='middle' x='96' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='96' y='36' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='96' y='84' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='96' y='116' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='96' y='132' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='96' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='104' y='4' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='104' y='20' fill='currentColor' style='font-size:1em'>w</text>
<text text-anchor='middle' x='104' y='36' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='104' y='116' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='104' y='132' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='104' y='164' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='104' y='180' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='112' y='4' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='112' y='84' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='112' y='132' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='112' y='164' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='112' y='180' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='120' y='4' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='120' y='36' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='120' y='84' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='120' y='132' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='120' y='164' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='120' y='180' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='128' y='4' fill='currentColor' style='font-size:1em'>-</text>
<text text-anchor='middle' x='128' y='36' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='128' y='84' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='128' y='132' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='128' y='180' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='136' y='4' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='136' y='36' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='136' y='84' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='136' y='132' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='136' y='180' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='144' y='4' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='144' y='36' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='144' y='84' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='144' y='132' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='144' y='180' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='152' y='4' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='152' y='36' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='152' y='132' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='160' y='4' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='160' y='36' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='160' y='84' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='160' y='132' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='160' y='180' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='168' y='4' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='168' y='36' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='168' y='84' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='168' y='132' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='168' y='180' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='176' y='36' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='176' y='84' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='176' y='132' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='176' y='180' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='184' y='4' fill='currentColor' style='font-size:1em'>—</text>
<text text-anchor='middle' x='184' y='36' fill='currentColor' style='font-size:1em'>,</text>
<text text-anchor='middle' x='184' y='84' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='184' y='180' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='192' y='84' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='192' y='132' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='192' y='180' fill='currentColor' style='font-size:1em'>.</text>
<text text-anchor='middle' x='200' y='4' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='200' y='36' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='200' y='132' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='208' y='4' fill='currentColor' style='font-size:1em'>h</text>
<text text-anchor='middle' x='208' y='36' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='208' y='84' fill='currentColor' style='font-size:1em'>V</text>
<text text-anchor='middle' x='208' y='132' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='216' y='4' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='216' y='36' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='216' y='84' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='216' y='132' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='224' y='4' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='224' y='36' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='224' y='84' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='224' y='132' fill='currentColor' style='font-size:1em'>.</text>
<text text-anchor='middle' x='232' y='4' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='232' y='84' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='240' y='4' fill='currentColor' style='font-size:1em'>)</text>
<text text-anchor='middle' x='240' y='36' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='240' y='84' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='248' y='36' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='248' y='84' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='256' y='36' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='256' y='84' fill='currentColor' style='font-size:1em'>.</text>
<text text-anchor='middle' x='264' y='36' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='272' y='36' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='280' y='36' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='288' y='36' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='296' y='36' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='304' y='36' fill='currentColor' style='font-size:1em'>,</text>
<text text-anchor='middle' x='320' y='36' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='328' y='36' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='336' y='36' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='352' y='36' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='360' y='36' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='368' y='36' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='376' y='36' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='384' y='36' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='392' y='36' fill='currentColor' style='font-size:1em'>.</text>
</g>

    </svg>
  
</div>
<p>Each skill gets its own file (<code>AGENTS.d/code-review.md</code>, <code>AGENTS.d/testing.md</code>, etc.) loaded only when the agent needs it. SmartScope documented a 70% token reduction and 5x speed improvement with this approach.</p>
<h2 id="5-ast-level-dependency-mapping-65-without-changing-models">5. AST-Level Dependency Mapping: 65% Without Changing Models</h2>
<p>This one is counter-intuitive: you can cut tokens by two-thirds without switching to a cheaper model. The trick is replacing grep-based file search with precise AST-level dependency mapping.</p>
<p>Nicola Alessi documented a case study on a 200-file TypeScript project. With grep-based search, the agent read 40 files per query (8,200 input tokens). After switching to <code>vexp</code> (a Rust-based AST dependency mapper), it read 5 precisely-targeted files (2,100 input tokens) — a 65% reduction.</p>
<p>The mechanism: instead of searching for &ldquo;all files containing <code>calculateTotal</code>&rdquo;, the AST mapper resolves the actual import graph and reads only the files that <code>calculateTotal</code> depends on. The agent gets the same information with 80% fewer files.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#75715e"># Before: grep-based file search</span>
</span></span><span style="display:flex;"><span>rg <span style="color:#e6db74">&#34;calculateTotal&#34;</span> --type ts  <span style="color:#75715e"># finds 40+ files</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># After: AST dependency resolution</span>
</span></span><span style="display:flex;"><span>vexp calculateTotal --src ./src  <span style="color:#75715e"># resolves to 5 files</span>
</span></span></code></pre></div><h2 id="6-retrieval-based-memory-51-72-on-memory-tokens">6. Retrieval-Based Memory: 51-72% on Memory Tokens</h2>
<p>Memory systems are the silent budget killer. Naive memory injection dumps every stored memory entry into context on every call — 24 entries = 594 tokens. After a week of usage, that balloons past the useful context window.</p>
<p>Retrieval-based memory injects only the top 5-10 relevant entries per query. Mem0&rsquo;s 2026 Token Optimization Playbook benchmarked this at 594 tokens naive vs 166 tokens with retrieval — a 72% reduction. The trade-off: you need a vector store and a semantic similarity query per turn, adding ~200ms latency.</p>
<p>The practical setup: implement a cost alert that fires when memory context exceeds 20% of your total input tokens. That is the threshold where retrieval-based memory pays for itself in under a week.</p>
<h2 id="7-mcp-server-optimization-50-98-on-structured-data">7. MCP Server Optimization: 50-98% on Structured Data</h2>
<p>MCP tool responses are the most bloated data in the agent stack by volume. A single <code>list_files</code> response can dump thousands of lines of JSON. Three techniques fix this:</p>
<ul>
<li><strong>Compact schemas</strong>: Remove unused fields from tool response schemas. Most MCP servers return every field whether the caller needs it or not.</li>
<li><strong>TOON encoding</strong>: MindStudio demonstrated 90-98% reduction on repeated structured data by switching from JSON to a pipe-delimited compact format.</li>
<li><strong>Response summarization</strong>: Have the MCP server return a summary line before the full payload, so the agent can decide whether to read the detail.</li>
</ul>
<p>I have seen an MCP server that returned 12KB of JSON per file listing call. After compact schemas and summarization, it was 600 bytes. The agent made the same decisions either way.</p>
<h2 id="8-session-management-5-15">8. Session Management: 5-15%</h2>
<p>The smallest savings but the easiest to implement. Three rules:</p>
<ul>
<li>One task per session. When you switch tasks, start a fresh agent session.</li>
<li>Run <code>/compact</code> or equivalent before switching tasks within a session.</li>
<li>Reserve pay-per-token API calls for focused execution. Use flat-rate subscriptions (Copilot, Codex Spark) for exploratory work.</li>
</ul>
<p>The 5-15% range is small because it overlaps with the bigger strategies above. But it costs nothing and takes five minutes to adopt, so there is no reason not to do it.</p>
<h2 id="the-token-efficiency-decision-tree">The Token Efficiency Decision Tree</h2>
<p>Which optimization should you apply first? It depends on your setup:</p>



<div class="goat svg-container ">
  
    <svg
      xmlns="http://www.w3.org/2000/svg"
      font-family="Menlo,Lucida Console,monospace"
      
        viewBox="0 0 664 249"
      >
      <g transform='translate(8,16)'>
<circle cx='224' cy='48' r='6' stroke='currentColor' fill='#fff'></circle>
<text text-anchor='middle' x='0' y='4' fill='currentColor' style='font-size:1em'>Y</text>
<text text-anchor='middle' x='0' y='52' fill='currentColor' style='font-size:1em'>Y</text>
<text text-anchor='middle' x='0' y='100' fill='currentColor' style='font-size:1em'>Y</text>
<text text-anchor='middle' x='0' y='148' fill='currentColor' style='font-size:1em'>Y</text>
<text text-anchor='middle' x='0' y='212' fill='currentColor' style='font-size:1em'>Y</text>
<text text-anchor='middle' x='8' y='4' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='8' y='52' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='8' y='100' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='8' y='148' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='8' y='212' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='16' y='4' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='16' y='20' fill='currentColor' style='font-size:1em'>→</text>
<text text-anchor='middle' x='16' y='52' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='16' y='68' fill='currentColor' style='font-size:1em'>→</text>
<text text-anchor='middle' x='16' y='100' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='16' y='116' fill='currentColor' style='font-size:1em'>→</text>
<text text-anchor='middle' x='16' y='148' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='16' y='164' fill='currentColor' style='font-size:1em'>→</text>
<text text-anchor='middle' x='16' y='212' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='16' y='228' fill='currentColor' style='font-size:1em'>→</text>
<text text-anchor='middle' x='24' y='4' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='24' y='52' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='24' y='148' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='32' y='20' fill='currentColor' style='font-size:1em'>S</text>
<text text-anchor='middle' x='32' y='68' fill='currentColor' style='font-size:1em'>S</text>
<text text-anchor='middle' x='32' y='100' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='32' y='116' fill='currentColor' style='font-size:1em'>S</text>
<text text-anchor='middle' x='32' y='164' fill='currentColor' style='font-size:1em'>S</text>
<text text-anchor='middle' x='32' y='212' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='32' y='228' fill='currentColor' style='font-size:1em'>A</text>
<text text-anchor='middle' x='40' y='4' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='40' y='20' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='40' y='52' fill='currentColor' style='font-size:1em'>C</text>
<text text-anchor='middle' x='40' y='68' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='40' y='100' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='40' y='116' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='40' y='148' fill='currentColor' style='font-size:1em'>b</text>
<text text-anchor='middle' x='40' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='40' y='180' fill='currentColor' style='font-size:1em'>b</text>
<text text-anchor='middle' x='40' y='212' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='40' y='228' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='48' y='4' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='48' y='20' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='48' y='52' fill='currentColor' style='font-size:1em'>L</text>
<text text-anchor='middle' x='48' y='68' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='48' y='100' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='48' y='116' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='48' y='148' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='48' y='164' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='48' y='180' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='48' y='212' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='48' y='228' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='56' y='4' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='56' y='20' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='56' y='52' fill='currentColor' style='font-size:1em'>A</text>
<text text-anchor='middle' x='56' y='68' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='56' y='116' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='56' y='148' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='56' y='164' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='56' y='180' fill='currentColor' style='font-size:1em'>f</text>
<text text-anchor='middle' x='56' y='212' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='56' y='228' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='64' y='4' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='64' y='20' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='64' y='52' fill='currentColor' style='font-size:1em'>U</text>
<text text-anchor='middle' x='64' y='68' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='64' y='100' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='64' y='116' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='64' y='148' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='64' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='64' y='180' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='64' y='212' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='64' y='228' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='72' y='4' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='72' y='52' fill='currentColor' style='font-size:1em'>D</text>
<text text-anchor='middle' x='72' y='180' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='72' y='212' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='80' y='20' fill='currentColor' style='font-size:1em'>w</text>
<text text-anchor='middle' x='80' y='52' fill='currentColor' style='font-size:1em'>E</text>
<text text-anchor='middle' x='80' y='68' fill='currentColor' style='font-size:1em'>w</text>
<text text-anchor='middle' x='80' y='100' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='80' y='116' fill='currentColor' style='font-size:1em'>w</text>
<text text-anchor='middle' x='80' y='148' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='80' y='164' fill='currentColor' style='font-size:1em'>w</text>
<text text-anchor='middle' x='80' y='180' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='80' y='212' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='80' y='228' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='88' y='4' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='88' y='20' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='88' y='52' fill='currentColor' style='font-size:1em'>.</text>
<text text-anchor='middle' x='88' y='68' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='88' y='100' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='88' y='116' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='88' y='148' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='88' y='164' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='88' y='228' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='96' y='4' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='96' y='20' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='96' y='52' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='96' y='68' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='96' y='100' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='96' y='116' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='96' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='96' y='180' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='96' y='212' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='96' y='228' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='104' y='4' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='104' y='20' fill='currentColor' style='font-size:1em'>h</text>
<text text-anchor='middle' x='104' y='52' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='104' y='68' fill='currentColor' style='font-size:1em'>h</text>
<text text-anchor='middle' x='104' y='100' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='104' y='116' fill='currentColor' style='font-size:1em'>h</text>
<text text-anchor='middle' x='104' y='148' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='104' y='164' fill='currentColor' style='font-size:1em'>h</text>
<text text-anchor='middle' x='104' y='180' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='104' y='212' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='104' y='228' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='112' y='4' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='112' y='52' fill='currentColor' style='font-size:1em'>/</text>
<text text-anchor='middle' x='112' y='100' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='112' y='148' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='112' y='180' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='112' y='212' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='120' y='4' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='120' y='20' fill='currentColor' style='font-size:1em'>A</text>
<text text-anchor='middle' x='120' y='52' fill='currentColor' style='font-size:1em'>A</text>
<text text-anchor='middle' x='120' y='68' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='120' y='100' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='120' y='116' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='120' y='148' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='120' y='164' fill='currentColor' style='font-size:1em'>[</text>
<text text-anchor='middle' x='120' y='180' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='120' y='228' fill='currentColor' style='font-size:1em'>M</text>
<text text-anchor='middle' x='128' y='20' fill='currentColor' style='font-size:1em'>S</text>
<text text-anchor='middle' x='128' y='52' fill='currentColor' style='font-size:1em'>G</text>
<text text-anchor='middle' x='128' y='68' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='128' y='116' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='128' y='148' fill='currentColor' style='font-size:1em'>w</text>
<text text-anchor='middle' x='128' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='128' y='180' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='128' y='212' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='128' y='228' fill='currentColor' style='font-size:1em'>C</text>
<text text-anchor='middle' x='136' y='4' fill='currentColor' style='font-size:1em'>w</text>
<text text-anchor='middle' x='136' y='20' fill='currentColor' style='font-size:1em'>T</text>
<text text-anchor='middle' x='136' y='52' fill='currentColor' style='font-size:1em'>E</text>
<text text-anchor='middle' x='136' y='68' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='136' y='100' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='136' y='116' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='136' y='148' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='136' y='164' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='136' y='180' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='136' y='212' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='136' y='228' fill='currentColor' style='font-size:1em'>P</text>
<text text-anchor='middle' x='144' y='4' fill='currentColor' style='font-size:1em'>h</text>
<text text-anchor='middle' x='144' y='20' fill='currentColor' style='font-size:1em'>-</text>
<text text-anchor='middle' x='144' y='52' fill='currentColor' style='font-size:1em'>N</text>
<text text-anchor='middle' x='144' y='68' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='144' y='100' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='144' y='116' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='144' y='148' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='144' y='164' fill='currentColor' style='font-size:1em'>k</text>
<text text-anchor='middle' x='144' y='180' fill='currentColor' style='font-size:1em'>z</text>
<text text-anchor='middle' x='144' y='212' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='152' y='4' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='152' y='20' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='152' y='52' fill='currentColor' style='font-size:1em'>T</text>
<text text-anchor='middle' x='152' y='68' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='152' y='100' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='152' y='116' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='152' y='148' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='152' y='164' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='152' y='180' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='152' y='212' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='152' y='228' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='160' y='4' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='160' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='160' y='52' fill='currentColor' style='font-size:1em'>S</text>
<text text-anchor='middle' x='160' y='68' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='160' y='100' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='160' y='164' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='160' y='180' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='160' y='212' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='160' y='228' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='168' y='4' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='168' y='20' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='168' y='52' fill='currentColor' style='font-size:1em'>.</text>
<text text-anchor='middle' x='168' y='68' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='168' y='100' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='168' y='116' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='168' y='148' fill='currentColor' style='font-size:1em'>b</text>
<text text-anchor='middle' x='168' y='180' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='168' y='212' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='168' y='228' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='176' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='176' y='52' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='176' y='68' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='176' y='116' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='176' y='148' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='176' y='164' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='176' y='212' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='176' y='228' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='184' y='4' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='184' y='20' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='184' y='52' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='184' y='68' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='184' y='100' fill='currentColor' style='font-size:1em'>f</text>
<text text-anchor='middle' x='184' y='116' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='184' y='148' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='184' y='164' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='184' y='180' fill='currentColor' style='font-size:1em'>—</text>
<text text-anchor='middle' x='184' y='212' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='184' y='228' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='192' y='4' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='192' y='68' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='192' y='100' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='192' y='116' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='192' y='164' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='192' y='228' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='200' y='4' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='200' y='20' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='200' y='52' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='200' y='68' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='200' y='100' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='200' y='116' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='200' y='148' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='200' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='200' y='180' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='200' y='212' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='208' y='4' fill='currentColor' style='font-size:1em'>j</text>
<text text-anchor='middle' x='208' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='208' y='52' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='208' y='116' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='208' y='148' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='208' y='180' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='208' y='212' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='208' y='228' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='216' y='4' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='216' y='20' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='216' y='68' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='216' y='100' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='216' y='116' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='216' y='148' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='216' y='164' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='216' y='180' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='216' y='212' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='216' y='228' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='224' y='4' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='224' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='224' y='68' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='224' y='100' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='224' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='224' y='180' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='224' y='212' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='224' y='228' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='232' y='4' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='232' y='20' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='232' y='52' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='232' y='68' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='232' y='100' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='232' y='116' fill='currentColor' style='font-size:1em'>(</text>
<text text-anchor='middle' x='232' y='148' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='232' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='232' y='180' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='232' y='212' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='232' y='228' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='240' y='20' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='240' y='52' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='240' y='68' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='240' y='100' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='240' y='116' fill='currentColor' style='font-size:1em'>6</text>
<text text-anchor='middle' x='240' y='148' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='240' y='164' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='240' y='180' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='240' y='212' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='240' y='228' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='248' y='4' fill='currentColor' style='font-size:1em'>f</text>
<text text-anchor='middle' x='248' y='20' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='248' y='52' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='248' y='68' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='248' y='100' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='248' y='116' fill='currentColor' style='font-size:1em'>0</text>
<text text-anchor='middle' x='248' y='148' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='248' y='164' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='248' y='180' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='248' y='212' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='248' y='228' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='256' y='4' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='256' y='20' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='256' y='68' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='256' y='116' fill='currentColor' style='font-size:1em'>-</text>
<text text-anchor='middle' x='256' y='148' fill='currentColor' style='font-size:1em'>'</text>
<text text-anchor='middle' x='256' y='164' fill='currentColor' style='font-size:1em'>b</text>
<text text-anchor='middle' x='256' y='212' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='256' y='228' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='264' y='4' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='264' y='20' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='264' y='52' fill='currentColor' style='font-size:1em'>2</text>
<text text-anchor='middle' x='264' y='68' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='264' y='100' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='264' y='116' fill='currentColor' style='font-size:1em'>8</text>
<text text-anchor='middle' x='264' y='148' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='264' y='164' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='264' y='180' fill='currentColor' style='font-size:1em'>f</text>
<text text-anchor='middle' x='264' y='212' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='264' y='228' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='272' y='4' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='272' y='20' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='272' y='52' fill='currentColor' style='font-size:1em'>0</text>
<text text-anchor='middle' x='272' y='68' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='272' y='100' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='272' y='116' fill='currentColor' style='font-size:1em'>0</text>
<text text-anchor='middle' x='272' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='272' y='180' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='272' y='212' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='272' y='228' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='280' y='4' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='280' y='52' fill='currentColor' style='font-size:1em'>0</text>
<text text-anchor='middle' x='280' y='68' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='280' y='100' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='280' y='116' fill='currentColor' style='font-size:1em'>%</text>
<text text-anchor='middle' x='280' y='148' fill='currentColor' style='font-size:1em'>k</text>
<text text-anchor='middle' x='280' y='164' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='280' y='180' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='288' y='20' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='288' y='68' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='288' y='100' fill='currentColor' style='font-size:1em'>k</text>
<text text-anchor='middle' x='288' y='148' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='288' y='164' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='288' y='180' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='288' y='212' fill='currentColor' style='font-size:1em'>b</text>
<text text-anchor='middle' x='288' y='228' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='296' y='4' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='296' y='20' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='296' y='52' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='296' y='100' fill='currentColor' style='font-size:1em'>?</text>
<text text-anchor='middle' x='296' y='116' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='296' y='148' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='296' y='164' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='296' y='180' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='296' y='212' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='296' y='228' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='304' y='4' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='304' y='20' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='304' y='52' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='304' y='68' fill='currentColor' style='font-size:1em'>(</text>
<text text-anchor='middle' x='304' y='116' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='304' y='148' fill='currentColor' style='font-size:1em'>w</text>
<text text-anchor='middle' x='304' y='164' fill='currentColor' style='font-size:1em'>]</text>
<text text-anchor='middle' x='304' y='180' fill='currentColor' style='font-size:1em'>,</text>
<text text-anchor='middle' x='304' y='212' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='304' y='228' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='312' y='20' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='312' y='52' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='312' y='68' fill='currentColor' style='font-size:1em'>7</text>
<text text-anchor='middle' x='312' y='116' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='312' y='164' fill='currentColor' style='font-size:1em'>(</text>
<text text-anchor='middle' x='320' y='4' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='320' y='20' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='320' y='52' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='320' y='68' fill='currentColor' style='font-size:1em'>0</text>
<text text-anchor='middle' x='320' y='116' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='320' y='148' fill='currentColor' style='font-size:1em'>w</text>
<text text-anchor='middle' x='320' y='164' fill='currentColor' style='font-size:1em'>/</text>
<text text-anchor='middle' x='320' y='180' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='320' y='212' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='320' y='228' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='328' y='4' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='328' y='20' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='328' y='52' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='328' y='68' fill='currentColor' style='font-size:1em'>%</text>
<text text-anchor='middle' x='328' y='116' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='328' y='148' fill='currentColor' style='font-size:1em'>h</text>
<text text-anchor='middle' x='328' y='164' fill='currentColor' style='font-size:1em'>p</text>
<text text-anchor='middle' x='328' y='180' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='328' y='212' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='328' y='228' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='336' y='4' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='336' y='20' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='336' y='52' fill='currentColor' style='font-size:1em'>?</text>
<text text-anchor='middle' x='336' y='116' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='336' y='148' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='336' y='164' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='336' y='180' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='336' y='212' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='336' y='228' fill='currentColor' style='font-size:1em'>m</text>
<text text-anchor='middle' x='344' y='4' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='344' y='68' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='344' y='116' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='344' y='148' fill='currentColor' style='font-size:1em'>?</text>
<text text-anchor='middle' x='344' y='164' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='344' y='212' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='344' y='228' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='352' y='4' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='352' y='20' fill='currentColor' style='font-size:1em'>(</text>
<text text-anchor='middle' x='352' y='68' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='352' y='116' fill='currentColor' style='font-size:1em'>)</text>
<text text-anchor='middle' x='352' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='352' y='180' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='352' y='212' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='352' y='228' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='360' y='20' fill='currentColor' style='font-size:1em'>6</text>
<text text-anchor='middle' x='360' y='68' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='360' y='164' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='360' y='180' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='360' y='228' fill='currentColor' style='font-size:1em'>y</text>
<text text-anchor='middle' x='368' y='4' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='368' y='20' fill='currentColor' style='font-size:1em'>5</text>
<text text-anchor='middle' x='368' y='68' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='368' y='164' fill='currentColor' style='font-size:1em'>/</text>
<text text-anchor='middle' x='368' y='180' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='368' y='212' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='376' y='4' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='376' y='20' fill='currentColor' style='font-size:1em'>%</text>
<text text-anchor='middle' x='376' y='68' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='376' y='164' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='376' y='180' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='376' y='212' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='376' y='228' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='384' y='4' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='384' y='68' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='384' y='164' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='384' y='180' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='384' y='212' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='384' y='228' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='392' y='4' fill='currentColor' style='font-size:1em'>l</text>
<text text-anchor='middle' x='392' y='20' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='392' y='68' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='392' y='164' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='392' y='180' fill='currentColor' style='font-size:1em'>d</text>
<text text-anchor='middle' x='392' y='228' fill='currentColor' style='font-size:1em'>j</text>
<text text-anchor='middle' x='400' y='4' fill='currentColor' style='font-size:1em'>?</text>
<text text-anchor='middle' x='400' y='20' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='400' y='68' fill='currentColor' style='font-size:1em'>)</text>
<text text-anchor='middle' x='400' y='164' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='400' y='212' fill='currentColor' style='font-size:1em'>h</text>
<text text-anchor='middle' x='400' y='228' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='408' y='20' fill='currentColor' style='font-size:1em'>v</text>
<text text-anchor='middle' x='408' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='408' y='212' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='408' y='228' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='416' y='20' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='416' y='164' fill='currentColor' style='font-size:1em'>-</text>
<text text-anchor='middle' x='416' y='212' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='416' y='228' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='424' y='20' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='424' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='424' y='212' fill='currentColor' style='font-size:1em'>h</text>
<text text-anchor='middle' x='424' y='228' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='432' y='20' fill='currentColor' style='font-size:1em'>g</text>
<text text-anchor='middle' x='432' y='164' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='432' y='228' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='440' y='20' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='440' y='164' fill='currentColor' style='font-size:1em'>k</text>
<text text-anchor='middle' x='440' y='212' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='440' y='228' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='448' y='20' fill='currentColor' style='font-size:1em'>)</text>
<text text-anchor='middle' x='448' y='164' fill='currentColor' style='font-size:1em'>e</text>
<text text-anchor='middle' x='448' y='212' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='456' y='164' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='456' y='212' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='464' y='164' fill='currentColor' style='font-size:1em'>-</text>
<text text-anchor='middle' x='464' y='212' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='472' y='164' fill='currentColor' style='font-size:1em'>c</text>
<text text-anchor='middle' x='472' y='212' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='480' y='164' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='480' y='212' fill='currentColor' style='font-size:1em'>?</text>
<text text-anchor='middle' x='488' y='164' fill='currentColor' style='font-size:1em'>s</text>
<text text-anchor='middle' x='496' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='504' y='164' fill='currentColor' style='font-size:1em'>-</text>
<text text-anchor='middle' x='512' y='164' fill='currentColor' style='font-size:1em'>a</text>
<text text-anchor='middle' x='520' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='528' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='536' y='164' fill='currentColor' style='font-size:1em'>r</text>
<text text-anchor='middle' x='544' y='164' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='552' y='164' fill='currentColor' style='font-size:1em'>b</text>
<text text-anchor='middle' x='560' y='164' fill='currentColor' style='font-size:1em'>u</text>
<text text-anchor='middle' x='568' y='164' fill='currentColor' style='font-size:1em'>t</text>
<text text-anchor='middle' x='576' y='164' fill='currentColor' style='font-size:1em'>i</text>
<text text-anchor='middle' x='584' y='164' fill='currentColor' style='font-size:1em'>o</text>
<text text-anchor='middle' x='592' y='164' fill='currentColor' style='font-size:1em'>n</text>
<text text-anchor='middle' x='600' y='164' fill='currentColor' style='font-size:1em'>-</text>
<text text-anchor='middle' x='608' y='164' fill='currentColor' style='font-size:1em'>2</text>
<text text-anchor='middle' x='616' y='164' fill='currentColor' style='font-size:1em'>0</text>
<text text-anchor='middle' x='624' y='164' fill='currentColor' style='font-size:1em'>2</text>
<text text-anchor='middle' x='632' y='164' fill='currentColor' style='font-size:1em'>6</text>
<text text-anchor='middle' x='640' y='164' fill='currentColor' style='font-size:1em'>/</text>
<text text-anchor='middle' x='648' y='164' fill='currentColor' style='font-size:1em'>)</text>
</g>

    </svg>
  
</div>
<p>The Stanford Digital Economy Lab found that the same agentic task can vary 30x in token consumption between runs with zero correlation to output quality. If you are not measuring, you are guessing.</p>
<h2 id="putting-it-all-together-what-a-3200--1100-bill-looks-like">Putting It All Together: What a $3,200 → $1,100 Bill Looks Like</h2>
<p>Beam published a real-world breakdown for a solo developer:</p>
<table>
  <thead>
      <tr>
          <th>Strategy</th>
          <th>Before</th>
          <th>After</th>
          <th>Savings</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Prompt caching</td>
          <td>$3,200</td>
          <td>$1,920</td>
          <td>40%</td>
      </tr>
      <tr>
          <td>Model routing</td>
          <td>$1,920</td>
          <td>$640</td>
          <td>67%</td>
      </tr>
      <tr>
          <td>Context compression</td>
          <td>$640</td>
          <td>$448</td>
          <td>30%</td>
      </tr>
      <tr>
          <td>Session management</td>
          <td>$448</td>
          <td>$380</td>
          <td>15%</td>
      </tr>
  </tbody>
</table>
<p>The total: $3,200 → $380/month — an 88% reduction. The same pattern scales for teams: a 20-person org went from $47K to $16.5K using the same strategies.</p>
<p>None of these strategies require switching tools or frameworks. Every technique works with Claude Code, Cursor, Windsurf, Copilot, Codex CLI, or any other agent. The waste is structural, not tool-specific.</p>
<p>For a deeper look at measuring and attributing these costs in multi-agent production systems, see the <a href="/posts/agent-cost-circuit-breaker-pattern-guide-2026/">agent cost circuit breaker guide</a>.</p>
<h2 id="faq">FAQ</h2>
<h3 id="how-much-does-a-single-developer-spend-on-coding-agents-per-month">How much does a single developer spend on coding agents per month?</h3>
<p>A solo developer running Claude Code full-time spends $3,000-$13,000/month in API costs. With the optimization strategies in this guide, Beam documented a reduction from $3,200 to $380/month — an 88% cut.</p>
<h3 id="can-i-use-these-optimizations-with-any-coding-agent">Can I use these optimizations with any coding agent?</h3>
<p>Yes. Every technique works with Claude Code, Cursor, Windsurf, GitHub Copilot, Codex CLI, Cline, or any other agent. The waste patterns are structural to how agentic coding tools work, not specific to any vendor.</p>
<h3 id="what-is-the-single-fastest-way-to-reduce-token-waste">What is the single fastest way to reduce token waste?</h3>
<p>Measure first with token cost attribution, then apply the strategy matching your setup. If your AGENTS.md is over 200 lines, progressive disclosure gives 70% savings. If the agent reads whole files on every call, AST-level dependency mapping cuts 65%. If you use one model for everything, routing saves 60-80%.</p>
<h3 id="does-prompt-caching-work-with-every-llm-provider">Does prompt caching work with every LLM provider?</h3>
<p>Anthropic offers 90% discount on cached tokens (auto-enabled for repeated prefixes since Opus 4.7). OpenAI offers 50% with an explicit parameter. Google Gemini supports it with tiered discounts. The key requirement across all providers: keep your system prompt prefix stable within a session.</p>
<h3 id="will-these-optimizations-reduce-code-quality">Will these optimizations reduce code quality?</h3>
<p>No — in most cases they improve it. The Stanford study found 30x variance between runs with zero correlation to output quality. Model routing with RouteLLM maintains 95% of frontier model performance. AST-level dependency mapping gives the agent more precise context, not less.</p>
]]></content:encoded></item></channel></rss>