What is lens?
lens is a Claude Code mod by kakwok that one pane for the session: plan, subagents with the tokens they spent and a timeline, files and commands Claude touched, and what Claude Code added to the prompt. It is listed under Cost & usage and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | kakwok |
| Repository | kakwok/claude-mods |
| Popularity | no public popularity data yet |
| Category | Cost & usage |
| Security | Review before installing (72/100) |
| Rank | #6,801 of 9,397 Claude Code mods; #1,289 in Cost & usage |
| Last commit | 2026-11-20 |
| Hooks | 9 events |
| Sees | every prompt, every tool call |
| Draws on | AbovePrompt, Pane |
Is lens safe to install?
lens scores 72/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; watches every prompt or event. It passed 5 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 files or config | Review |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.agent.list | |
$.clock.every | |
$.clock.now | |
$.command.register | |
$.config.list | |
$.config.set | changes config |
$.session.cwd | |
$.session.usage | |
$.ui.close | draws interface |
$.ui.invalidate | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install 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/kakwok/claude-mods claude plugin validate ./claude-mods/lens
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add kakwok/claude-mods && claude plugin install lens@claude-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs lens for you:
Install the "lens" Claude Code mod from https://github.com/kakwok/claude-mods/tree/main/lens. Run claude plugin validate on it first and show me what it can access before you enable it.
More from kakwok/claude-mods
This repository has 2 Claude Code mods on MCPMods.
- context-bar: Context-window bar above the prompt, broken down by category like /context with Messages split by source, plus plan usag (Low risk)