context-lens

by Arunjay · ★ 4 · updated 20 days ago

PanesStatus lineCommandsvalidates

0

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.

install context-lens

Install

/plugin marketplace add Arunjay4213/claude-mods
/plugin install context-lens@claude-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startturn.completesession.compactcommand.runui.closeui.render
API calls
$.command.register$.session.usage$.ui.close$.ui.invalidate$.ui.log$.ui.open$.ui.resolve$.ui.status
Draws
Pane
Can see
compaction
Reach
level 0 of 3 draws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/Arunjay4213/claude-mods
Path in repo
plugins/context-lens
Author
Arunjay @Arunjay4213
License
No license declared — ask the author before reusing code.
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from Arunjay4213/claude-mods

budget-guard

Arunjay4213/claude-mods

Stops a session before it runs past a budget. Three figures are guarded, each with a limit you set: the session cost in dollars, the 5-hour plan window and the 7-day plan window. It says nothing until a figure nears its limit, then pins a status line and warns once; past the limit it refuses tool calls and asks before sending another prompt. /guard shows the state and changes the limits.

★ 4Status lineGuardsCommands

quota-meter

Arunjay4213/claude-mods

Shows the subscription plan limits - the 5-hour window, the 7-day window and a gateway spend limit - as a pinned status line under the prompt, with a reset countdown and a projection of when you would hit 100% at the pace of the last few samples. /quota opens a pane with a bar, the reset clock time and the burn rate for each window.

★ 4PanesStatus lineCommands

token-ledger

Arunjay4213/claude-mods

A per-turn cost and token ledger: a pinned status line with the session cost, the last turn's tokens and the cache hit ratio, and /ledger for a table of the recent turns with their model, tokens, cache reads and writes, duration and cost.

★ 4PanesStatus lineCommands