---
title: "Discussion on \"Where the Tokens Actually Go: Measuring a Claude Code Session\" | Hashnode"
description: "Discussion on \"Where the Tokens Actually Go: Measuring a Claude Code Session\". One question in Claude Code was eating about 4% of my context window. I was sure the cause was the pile of MCP servers and connectors I had installed. I was wrong. Here is what measuring showed, and t"
url: "https://hashnode.com/posts/where-the-tokens-actually-go-measuring-a-claude-code-session/6b10dc24eb35e2931c16cb68"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Where the Tokens Actually Go: Measuring a Claude Code Session](https://michaelagentlab.hashnode.dev/where-the-tokens-actually-go-measuring-a-claude-code-session?utm_source=hashnode&utm_medium=feed)

One question in Claude Code was eating about 4% of my context window. I was sure the cause was the pile of MCP servers and connectors I had installed. I was wrong. Here is what measuring showed, and t

5h ago · 7 min read · michaelagentlab.hashnode.dev  
Read the article

-   [#claude-code](https://hashnode.com/tag/claude-code)
-   [#ai](https://hashnode.com/tag/ai)
-   [#llm](https://hashnode.com/tag/llm)
-   [#productivity](https://hashnode.com/tag/productivity)

## Written by

[Michael Chuang](https://hashnode.com/@mikem8)

@mikem8

  
[View profile](https://hashnode.com/@mikem8)

## Responses 1

Markdown supported · ⌘↵ to post

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[55m ago](https://hashnode.com/posts/where-the-tokens-actually-go-measuring-a-claude-code-session/6b10dc24eb35e2931c16cb68/comment/6b1115e16ebf934669b76898)

Measuring an 82k-token session before tearing out connectors completely flipped the intuition: deferred connectors carrying 165k tokens of schemas cost zero until invoked, and the 22k startup overhead stayed cached, while 60k tokens (73%) came from rolling conversation history and verbose 9 KB search payloads re-sent on every subsequent turn.

That "paid once versus paid every turn" rule is the cleanest optimization lens for coding agents. Slimming MCP search responses down to compact metadata plus a 160-character summary—so the agent only loads full bodies for the one or two files it actually selects—compounds across every remaining turn in a 40-turn session.
