context-lens
Reviewed
at commit 6de1b69
A live /context line with window fill and growth per turn, plus a pane with per-category bars.
0 upvotes
Log in to upvote or save- Made by
- Arunjay
- Pinned commit
-
6de1b69a555a412aea7b9a374ad6c0de7e47ac4e - What we checked
-
Pins a status line under the prompt with how full the context window is and how much each turn added, and adds a /context-lens pane with per-category bars and estimated turns before auto-compaction. It only reads token counts from Claude Code itself. It reads no files, runs no programs and stores nothing.
Review details
Static review of the source at the pinned commit; not run. Registers session.start (registers /context-lens, takes a first reading), turn.complete (main session only), session.compact and command.run for clear and for /context-lens, ui.close and ui.render for the Pane. Readings come from $.session.usage with a local summary breakdown; /context-lens refresh asks for the full breakdown, which Claude Code counts with its token-count API on your own account. Output goes to $.ui.status and a pane. Failures are swallowed and the last good reading is kept. Growth history is kept in module memory only.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: no
- Runs programs on your machine: no
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: no
- Shows something on screen: yes
- Hooked events
A live /context: a pinned line under the prompt with the window fill and the growth per turn, and /context-lens for a pane with the per-category bars and how many turns are left before auto-compaction.
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/context-lens/)