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.
| Type | Claude code mod |
|---|---|
| Author | Arunjay4213 |
| Repository | Arunjay4213/claude-mods |
| Popularity | 9 GitHub stars |
| Category | Context & memory |
| Security | Low risk (96/100) |
| Rank | #536 of 5,272 Claude Code mods; #63 in Context & memory |
| Last commit | 2026-10-16 |
| Hooks | 6 events |
| Sees | compaction |
| Draws on | Pane |
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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.command.register | |
$.session.usage | |
$.ui.close | draws interface |
$.ui.invalidate | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
How do I install context-lens?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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
- 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)