{"slug": "show-hn-show-context-see-what-claude-code-read-in-a-session", "title": "Show HN: Show-context, see what Claude Code read in a session", "summary": "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.", "body_md": "**See what fills your Claude Code context window, and where each answer came from.**\n\n```\nnpx show-context\n```\n\nRun 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.\n\nI 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.**\n\nYou 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.\n\n**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.\n\n**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.\n\n```\nnpm install -g show-context\n```\n\nOr run it without installing: `npx show-context`. Requires Node.js 22 or later. No dependencies.\n\nInside Claude Code:\n\n```\n! show-context\n```\n\nFrom a terminal, pick a session by ID or prefix:\n\n```\nshow-context <session-id-or-prefix>\n```\n\n| Option | What it does | \n|---|---|\n| `--no-open` | Print the live URL, don't open the browser | \n| `--static` | Write a static page, no local server | \n| `--help` | Show all options and environment variables | \n\nEnvironment 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).\n\n- It reads one local session transcript and never changes it.\n- 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.\n- 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.\n- Reads are files, shell reads and searches, MCP reads, skills and web results. Writes, edits and commands that run things are not reads.\n- **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.\n\n- It depends on the Claude Code transcript format, which can change.\n- Subagent reads are not shown yet.\n- *Where did this come from?* works with Claude Code only.\n\nIssues and PRs are welcome. See [CONTRIBUTING.md](https://github.com/bernatsampera/show-context/blob/master/CONTRIBUTING.md) and the [good first issues](https://github.com/bernatsampera/show-context/labels/good%20first%20issue).\n\nMIT", "url": "https://wpnews.pro/news/show-hn-show-context-see-what-claude-code-read-in-a-session", "canonical_source": "https://github.com/bernatsampera/show-context", "published_at": "2026-11-23 08:27:35+00:00", "updated_at": "2026-11-23 08:44:08.543740+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "large-language-models"], "entities": ["show-context", "Claude Code", "Anthropic", "Express", "Node.js", "bernatsampera"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-show-context-see-what-claude-code-read-in-a-session", "markdown": "https://wpnews.pro/news/show-hn-show-context-see-what-claude-code-read-in-a-session.md", "text": "https://wpnews.pro/news/show-hn-show-context-see-what-claude-code-read-in-a-session.txt", "jsonld": "https://wpnews.pro/news/show-hn-show-context-see-what-claude-code-read-in-a-session.jsonld"}}