New Claude Code mod reveals context window contents turn by turn
The ui/turn-inspector mod shows what is inside Claude’s context window at each step, including the system prompt, tools, memory, prior turns, model response, and tool results.
A new mod lets you see exactly what is inside the Claude context window on each turn:
- tools;
- memory;
- previous turns;
- model response;
- tool call results.
Watch how Claude’s context window fills up turn by turn, and finally understand where all those tokens go in your session.
Installation:
npx claude-code-templates --mod ui/turn-inspector
Why it matters
AnalysisIt helps developers debug token usage and understand context growth in Claude Code sessions.
Discuss in community
Share your questions and insights with developers
Related in Ecosystem
Practical guides, core terminology, and agent skills
Claude Code Projects: How a Single AI Orchestrates a Team of Autonomous Agents
A deep dive into Claude Code Projects: Coordinator and Threads architecture, parallel branches, shared memory via MEMORY.md, and cloud agent management.
Claude Code adds automatic fixes for excessive token usage in /usage menu
Starting with Claude Code 2.1.305, users can automatically apply fixes that reduce excessive token usage and inspect Prompt cache hit/miss statistics.
MCP Servers and Claude Code: A Practical Guide to Connecting and Building
How to expand Claude Code's capabilities with Model Context Protocol: connecting the filesystem, GitHub, PostgreSQL, Brave Search, and developing a custom server in TypeScript.
Context Window
The maximum operational token capacity that a language model can simultaneously hold in the Self-Attention mechanism and KV Cache memory during a single inference request.