cd /news/ai-agents/show-hn-show-context-see-what-claude… · home › topics › ai-agents › article
[ARTICLE · art-174585] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Show HN: Show-context, see what Claude Code read in a session

A developer released show-context, an MIT-licensed open-source tool run via `npx show-context` inside a Claude Code session, that displays every file, search, MCP result, skill and web page a session read, sized by real token use. In the author's example, a session on the Express codebase held 33,003 tokens before any code was read — 12k of tool definitions, 7.8k of skill descriptions and 6.4k of MCP instructions — while the file reads that answered the question totaled 1,873 tokens. The tool requires Node.js 22 or later, has no dependencies, binds its optional local server to 127.0.0.1 with a random 32-byte token per route, and its 'Where did this come from?' feature runs the local Claude Code CLI on an unsaved fork of the session, costing tokens like any Claude Code call.

key takeaway

In the author's Express-codebase session, 33,003 tokens of tool definitions, skill descriptions and MCP instructions loaded before any file read, versus 1,873 tokens for the reads that answered the question — show-context surfaces that split so you know what to trim.

read3 min views1 publishedNov 23, 2026
Show HN: Show-context, see what Claude Code read in a session
Image: Michielbdejong (auto-discovered)

See what fills your Claude Code context window, and where each answer came from.

npx show-context

Run it inside any Claude Code session (as ! npx show-context). It opens one local page with the whole conversation and every file, search, MCP result, skill and web page the session read, sized by real token use.

I asked Claude Code a simple question about the Express codebase. Before it read a single line of code, the session already held 33,003 tokens: 12k of tool definitions, 7.8k of skill descriptions, 6.4k of MCP instructions. The file reads that answered the question? 1,873 tokens.

You can't see any of that from the chat. show-context makes it visible, so you know what to trim and which answers to trust.

Where did this come from? Select any sentence Claude wrote and ask. A split view links it, with numbered lines, to the exact passages in the files it read. Select text inside a tool call to ask why the call was made.

Show context mode. What loaded at session start (system prompt, tools, CLAUDE.md, skills, MCP), then each read in order. Block height grows with token size, colors mark File, Explore, MCP, Skill and Web reads. A size filter hides the small stuff (under 2,000 tokens by default). Click a row to see its full text.

npm install -g show-context

Or run it without installing: npx show-context. Requires Node.js 22 or later. No dependencies.

Inside Claude Code:

! show-context

From a terminal, pick a session by ID or prefix:

show-context <session-id-or-prefix>
Option What it does
--no-open Print the live URL, don't open the browser
--static Write a static page, no local server
--help Show all options and environment variables

Environment variables: SHOW_CONTEXT_OUT (output file, default ~/.cache/show-context/show-context.html), SHOW_CONTEXT_PROJECTS (Claude projects folder), SHOW_CONTEXT_PORT, SHOW_CONTEXT_IDLE_MS (server idle timeout, default 30 minutes), SHOW_CONTEXT_CLAUDE_BIN (Claude Code binary).

  • It reads one local session transcript and never changes it.

  • The page is a single self-contained HTML file. The optional server binds to 127.0.0.1 only, and every route needs a random 32-byte token.

  • Token counts come from the real input token use of each model call. When several items enter one call together, the increase is split by their character count.

  • Reads are files, shell reads and searches, MCP reads, skills and web results. Writes, edits and commands that run things are not reads.

  • Only Where did this come from? uses the network. It runs your local Claude Code CLI on a fork of the session with no tools, and costs tokens like any Claude Code call. The fork is not saved, and your session stays untouched.

  • It depends on the Claude Code transcript format, which can change.

  • Subagent reads are not shown yet.

  • Where did this come from? works with Claude Code only.

Issues and PRs are welcome. See CONTRIBUTING.md and the good first issues.

MIT

── more in #ai-agents 4 stories · sorted by recency
── more on @show-context 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-show-context…] indexed:0 read:3min 2026-11-23 · —