---
type: "post"
id: "claude-code-templates-cli-tool-components-mods-ui-54bc60"
slug: "claude-code-templates-cli-tool-components-mods-ui-54bc60"
title: "claude-code-templates/cli-tool/components/mods/ui/turn-inspector at main | davila7/claude-code-templates"
description: "## A clearer view of context is not the same as exact attribution"
retrieval_nugget: "## A clearer view of context is not the same as exact attribution"
published_at: "2026-10-13"
updated_at: "2026-10-13"
record_date: "2026-10-13"
date_kind: "published_at"
topics: ["claude","claude-code"]
source_urls: ["https://github.com/davila7/claude-code-templates/tree/main/cli-tool/components/mods/ui/turn-inspector"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:claude-code-templates-cli-tool-components-mods-ui-54bc60"
status: "published"
visuals: []
editorial_provenance: {"schema_version":"newruntime-editorial-copy-v1","content_status":"source_grounded_final","final_copy_sha256":"sha256:d10baa82344bed50cc61c6ccc61c122cfea9dee1b15293b1e69d6799d4d87f6c","reviewed_at":"2026-10-13T14:08:37.162Z","source_evidence_count":1,"verified_claim_count":2,"site_analysis_schema_version":"newruntime-site-analysis-v1","site_object_kind":"field_note","observed_fact_count":2,"implication_count":1,"watch_condition_count":1,"related_record_count":0}
analysis: {"schema_version":"newruntime-site-analysis-v1","object_kind":"field_note","thesis":"turn-level visibility can help developers diagnose context growth, but block-level token attribution remains an estimate.","observed_facts":[{"text":"The README describes a side pane with one row per model request, context-window usage, and expandable input/output blocks.","source_urls":["https://github.com/davila7/claude-code-templates/tree/main/cli-tool/components/mods/ui/turn-inspector"]},{"text":"The README says request input and output totals come from API usage and are exact, while per-block allocations are estimates.","source_urls":["https://github.com/davila7/claude-code-templates/tree/main/cli-tool/components/mods/ui/turn-inspector"]}],"mechanism":"the mod observes turn and tool-call hook events, while splitting request-level usage across individual blocks by estimated size.","why_now":"as Claude Code sessions accumulate tool round trips and earlier turns, a per-turn view offers a practical way to inspect where context grows.","implications":["use the view to locate likely sources of context growth, while treating block-level figures as directional rather than exact."],"evidence_boundary":"these claims come from the mod’s own GitHub README; they do not establish independent accuracy testing or prove that every displayed block can be measured precisely.","watch_conditions":["look for independent tests or revisions that change how resumed-session estimates and block allocations are calculated."],"related_records":[],"new_branch_reason":"No prior New Runtime analytical record was supplied for this release; this note opens a distinct record on context observability and measurement limits."}
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/claude-code-templates-cli-tool-components-mods-ui-54bc60/","markdown":"https://newruntime.com/posts/claude-code-templates-cli-tool-components-mods-ui-54bc60.md","json":"https://newruntime.com/posts/claude-code-templates-cli-tool-components-mods-ui-54bc60.json"}
---

# claude-code-templates/cli-tool/components/mods/ui/turn-inspector at main | davila7/claude-code-templates

## Retrieval answer

## A clearer view of context is not the same as exact attribution

## A clearer view of context is not the same as exact attribution

The Turn Inspector mod makes Claude Code’s context window legible as a sequence of requests rather than a single growing token total. **The thesis: turn-level visibility can help developers diagnose context growth, but block-level token attribution remains an estimate.** The repository README describes a side pane with one row per model request, context-window usage, and expandable input/output blocks.

**The mechanism: the mod observes turn and tool-call hook events, while splitting request-level usage across individual blocks by estimated size.** The README says request input and output totals come from API usage and are exact; allocations to blocks such as thinking, text, and tool use are estimates because the engine reports one total per request. It also says the mod passes hook events onward unchanged. **Why now: as Claude Code sessions accumulate tool round trips and earlier turns, a per-turn view offers a practical way to inspect where context grows.** This is a visibility aid, not a change to the model’s context handling.

**The evidence boundary: these claims come from the mod’s own GitHub README; they do not establish independent accuracy testing or prove that every displayed block can be measured precisely.** For builders, **the first implication: use the view to locate likely sources of context growth, while treating block-level figures as directional rather than exact.** **The first watch condition: look for independent tests or revisions that change how resumed-session estimates and block allocations are calculated.**

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Claude](https://newruntime.com/topics/claude.md): Explore the claude topic hub.
- topic hub: [Claude Code](https://newruntime.com/topics/claude-code.md): Explore the claude-code topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Source Ledger](https://newruntime.com/source-ledger.json): Inspect the public source evidence graph.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
