<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: 강래민</title>
    <description>The latest articles on Forem by 강래민 (@kangraemin).</description>
    <link>https://forem.com/kangraemin</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3833629%2F83fe13cd-7f19-4cac-b229-95c590c8b318.png</url>
      <title>Forem: 강래민</title>
      <link>https://forem.com/kangraemin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/kangraemin"/>
    <language>en</language>
    <item>
      <title>I Built a MITM Proxy to See What Claude Code Actually Sends to Anthropic</title>
      <dc:creator>강래민</dc:creator>
      <pubDate>Thu, 19 Mar 2026 15:12:20 +0000</pubDate>
      <link>https://forem.com/kangraemin/i-built-a-mitm-proxy-to-see-what-claude-code-actually-sends-to-anthropic-26ic</link>
      <guid>https://forem.com/kangraemin/i-built-a-mitm-proxy-to-see-what-claude-code-actually-sends-to-anthropic-26ic</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0n8t1k7bkcvsrc8rv14a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0n8t1k7bkcvsrc8rv14a.png" alt=" " width="800" height="513"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ever wondered what Claude Code is actually sending to the Anthropic API behind the scenes? I did — so I built Claude Inspector, a macOS desktop app that intercepts and visualizes Claude Code's HTTP traffic in real time via a local MITM proxy.&lt;/p&gt;

&lt;p&gt;Claude Code CLI → Inspector (localhost:9090) → api.anthropic.com&lt;/p&gt;

&lt;p&gt;All traffic stays local. Nothing is stored or shared.&lt;/p&gt;

&lt;h4&gt;
  
  
  How It Works
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Open Claude Inspector and click Start Proxy&lt;/li&gt;
&lt;li&gt;Run Claude Code with the proxy env var: ANTHROPIC_BASE_URL=&lt;a href="http://localhost:9090" rel="noopener noreferrer"&gt;http://localhost:9090&lt;/a&gt; claude&lt;/li&gt;
&lt;li&gt;Every API request and response is captured and visualized in real time&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  What I Found
&lt;/h3&gt;

&lt;h4&gt;
  
  
  1. Your CLAUDE.md is sent on every single request
&lt;/h4&gt;

&lt;p&gt;Every request silently prepends your project CLAUDE.md, global rules, and memory files as a system-reminder block. The structure looks like this:&lt;/p&gt;

&lt;p&gt;Available skills list  (~2KB)&lt;br&gt;
CLAUDE.md + rules + memory  (~10KB)&lt;br&gt;
Your actual message  (whatever you typed)&lt;/p&gt;

&lt;p&gt;That's ~12KB of overhead before you type a single word — and it repeats on every request.&lt;/p&gt;

&lt;h4&gt;
  
  
  2. MCP tools are lazy-loaded
&lt;/h4&gt;

&lt;p&gt;Built-in tools (27 of them) ship with full JSON schemas on every request. MCP tools, however, start as name-only placeholders. Their schemas get injected dynamically only when the model actually requests them — so unused MCP tools don't cost you tokens.&lt;/p&gt;

&lt;h4&gt;
  
  
  3. Screenshots are expensive
&lt;/h4&gt;

&lt;p&gt;Images are base64-encoded and embedded directly in the JSON body. A single screenshot can add hundreds of kilobytes to your request. That one "quick screenshot" costs way more than you'd expect.&lt;/p&gt;

&lt;h4&gt;
  
  
  4. Skills vs. Commands are handled very differently
&lt;/h4&gt;

&lt;p&gt;Local Commands (/clear, /mcp)&lt;br&gt;
→ Model only sees the result, never the command itself&lt;/p&gt;

&lt;p&gt;Skills (/commit, Skill("finish"))&lt;br&gt;
→ Full prompt text is injected into the conversation&lt;br&gt;
→ That prompt persists for the rest of the session&lt;/p&gt;

&lt;p&gt;Skills inject their entire prompt text into your conversation and it stays there for the rest of the session.&lt;/p&gt;

&lt;h4&gt;
  
  
  5. Full conversation history is resent every time
&lt;/h4&gt;

&lt;p&gt;Every API request includes your entire conversation history from the beginning. The longer your session runs, the more you pay — linearly.&lt;/p&gt;

&lt;p&gt;A 30-turn conversation generates 1MB+ of cumulative data sent per request. That's before any actual work is done.&lt;/p&gt;

&lt;h4&gt;
  
  
  6. Sub-agents are fully isolated
&lt;/h4&gt;

&lt;p&gt;When Claude spawns a sub-agent via the Agent tool, it creates a completely independent API call with no access to the parent conversation history. Each agent starts fresh.&lt;/p&gt;

&lt;h3&gt;
  
  
  What You Should Do About It
&lt;/h3&gt;

&lt;p&gt;These findings have real implications for your workflow and costs&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Keep your CLAUDE.md lean. Every line gets sent on every request. Trim anything that isn't actively useful.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use screenshots sparingly. One image can cost as much as several paragraphs of text in tokens.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use /clear in long sessions. After ~20-30 turns, hit /clear to reset the context window. Your costs will thank you.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Don't over-install MCP tools. Unused MCP tools don't cost tokens (they're lazy-loaded), but the initial name list still adds up if you have dozens installed.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Try It Yourself
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--cask&lt;/span&gt; kangraemin/tap/claude-inspector &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;sleep &lt;/span&gt;2 &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; open &lt;span class="nt"&gt;-a&lt;/span&gt; &lt;span class="s2"&gt;"Claude Inspector"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or grab the DMG from GitHub Releases.&lt;/p&gt;

&lt;p&gt;Source code: &lt;a href="//github.com/kangraemin/claude-inspector"&gt;github.com/kangraemin/claude-inspector&lt;/a&gt;&lt;/p&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>devtools</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
