context-lens

context-lens is a Claude Code mod by Arunjay4213 that 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.

Updated 2026-10-16

What is context-lens?

context-lens is a Claude Code mod by Arunjay4213 that 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. It is listed under Context & memory and has 9 GitHub stars.

TypeClaude code mod
AuthorArunjay4213
RepositoryArunjay4213/claude-mods
Popularity9 GitHub stars
CategoryContext & memory
SecurityLow risk (96/100)
Rank#536 of 5,272 Claude Code mods; #63 in Context & memory
Last commit2026-10-16
Hooks6 events
Seescompaction
Draws onPane

Is context-lens safe to install?

context-lens scores 96/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 7 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.command.register
$.session.usage
$.ui.closedraws interface
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface

How do I install context-lens?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/Arunjay4213/claude-mods
    claude plugin validate ./claude-mods/plugins/context-lens
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add Arunjay4213/claude-mods && claude plugin install context-lens@claude-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs context-lens for you:

Install the "context-lens" Claude Code mod from https://github.com/Arunjay4213/claude-mods/tree/main/plugins/context-lens. Run claude plugin validate on it first and show me what it can access before you enable it.

More from Arunjay4213/claude-mods

This repository has 4 Claude Code mods on MCPMods.

  • budget-guard: Stops a session before it runs past a budget. Three figures are guarded, each with a limit you set: the session cost in (Review before installing)
  • quota-meter: Shows the subscription plan limits - the 5-hour window, the 7-day window and a gateway spend limit - as a pinned status (Low risk)
  • token-ledger: A per-turn cost and token ledger: a pinned status line with the session cost, the last turn's tokens and the cache hit r (Low risk)