It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
Version
0.1.0
Repo stars
9
Last change
2026-10-16
What it can reach
Draws in the session
Reads usage or context figures
Needs Claude Code 2.1.269 or newer, in an interactive terminal. Restart Claude Code. The README turns function hooks on by setting CLAUDE_CODE_ENABLE_FUNCTION_HOOKS to 1 under env in ~/.claude/settings.json; the official docs say 2.1.287 and later ignore that flag. A pinned line under the prompt updates after every turn: how full the window is, the tokens used, what the last turn added, and how many more turns fit at the recent pace. Figures the engine has not reported yet are left out, so the line is shorter early in a session. Before the first answer it reads ctx waiting for the first answer. /context-lens opens a pane with that reading by category, the growth, and the headroom. Running it again closes the pane. /context-lens refresh counts every category the way /context does, and the README says that sends one token-count request per tool and memory file. That count runs only when you ask. After each finished turn the line is a local estimate and sends no requests. Claude Code 2.1.272 and later draw the category bars. On 2.1.270 and earlier the pane draws the window bar alone. From 110 columns in the fullscreen layout the pane docks beside the transcript. Otherwise it sits above the prompt. A checkout starts with CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude --plugin-dir plugins/context-lens.
The marketplace name is claude-mods. The same marketplace also lists quota-meter, token-ledger, and budget-guard. This page installs context-lens. context-xray opens the exact breakdown with /xray, and its token-count requests run when the pane opens. context-inspector draws waste in the window, such as re-reads and near-duplicates. context-bar draws one stacked bar. This one pins a live line, and the exact count runs only on /context-lens refresh. Those token-count requests go through Claude Code on your own login, so this page does not list network access.
Demo
From the author's repo.
What it hooks into
session.startWhen a session starts
turn.completeWhen a turn ends
session.compactWhen the context is compacted
command.runWhen you run its slash command/clear
ui.closeWhen its pane closes
ui.renderDraws into the sessionPane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Files
The author's README and source, 4 files. They load when you open them.