A /session-lens pane for Claude Code: what fills the context window, what each turn cost, and every tool, MCP server and skill each agent used.
A Claude Code mod that opens a pane with /session-lens. It shows where the context window and the session's tokens went, for the main agent and every subagent it launched, while the session runs.
The session in this picture is made up, and so are its figures.
At the prompt of a Claude Code terminal session:
Answer y to add the marketplace, then pick a scope. From a shell:
This also installs Anthropic's session-report plugin, which the pane's report line runs. It comes from the official marketplace, which Claude Code adds at your first interactive session. On a machine that has not had one, as in a script, add it first, or the pane will not load:
- Claude Code 2.1.308 or later. - /usr/bin/python3 with select.kqueue (macOS) to watch for claude -p child sessions as they start. Without it the lens lists ~/.claude/sessions/ while a Bash call runs instead. - jq on the PATH. The pane reads the session's own record under ~/.claude/projects/ with it. Without jq the pane says so and shows only what /context knows. - macOS: brew install jq - Linux: sudo apt install jq - Windows: winget install jqlang.jq
The pane draws with semantic design tokens (hooks/views/palette.ts), never a raw colour. Colour answers three questions, each on a channel of its own, so one never hides another. The hue family says who: the main agent plum, a subagent mineral, an agent a subagent started a fainter tone of its parent. Distinct hues inside one whole say which kind: every kind of token in a cost bar has its own hue (input sky, the cache writes cobalt, the hour-long one darker, cache reads haze, out
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/neokn--session-lens.html)
ChatGPT thinks. Codex works. Use ChatGPT as the planning brain while keeping the Codex harness.
qybaihe/bla🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> H
INK-Q/agy-fastNon-invasive MCP accelerator plugin for Google Antigravity (CLI/Desktop/IDE): cuts LLM turns (-34%), token quota (-31%), and upload traffic (-40%) without affecting native UI or diffs.
shinthink/blitzstrike⚡ Blitz Strike — a universal MCP penetration-testing toolbelt. Structured methodology: reconnaissance & attack-surface mapping, source-to-sink analysis, and live validation. 57 escalation chains, 130-
0xwilliamortiz/openclaude-improvedruns anywhere. uses anything
halofyai/halofyHalofy is the open access and governance layer for AI agents across your organization. Identity, policy, provenance, audit, and signed erasure.
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.