Claude Code mod visualizes context usage turn by turn
The Turn Inspector mod in the davila7/claude-code-templates repository adds a side pane that displays Claude Code sessions one request at a time. Its README says the view separates system prompt and tools, earlier turns, new user input or tool results, and model output; it also shows context-window usage and turn-level usage totals.
Rows can be expanded to inspect blocks such as thinking, text, and tool use. The README distinguishes exact request-level input and output totals, sourced from API usage, from block-level allocations, which are estimates because the engine reports one total per request. The mod observes hook events and passes them through unchanged. It can be installed with npx claude-code-templates@latest --mod ui/turn-inspector.