session-lens

session-lens is a Claude Code mod by danielcheng80 that 在輸入框上方顯示目前模型、context 用量,以及本 session 各 plugin 的 skill 與 hook 注入量.

Updated 2026-10-22

What is session-lens?

session-lens is a Claude Code mod by danielcheng80 that 在輸入框上方顯示目前模型、context 用量,以及本 session 各 plugin 的 skill 與 hook 注入量. It is listed under Context & memory and has 1 GitHub stars.

TypeClaude code mod
Authordanielcheng80
Repositorydanielcheng80/session-lens
Popularity1 GitHub stars
CategoryContext & memory
SecurityLow risk (92/100)
Rank#3,480 of 9,397 Claude Code mods; #318 in Context & memory
Last commit2026-10-22
Hooks8 events
Seesclassic hooks, every skill
Draws onAbovePrompt

Is session-lens safe to install?

session-lens scores 92/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 6 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
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.session.model
$.session.usage
$.state.get
$.state.set
$.ui.resolvedraws interface

How do I install session-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/danielcheng80/session-lens
    claude plugin validate ./session-lens/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add danielcheng80/session-lens && claude plugin install session-lens@session-lens

Or ask Claude to set it up

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

Install the "session-lens" Claude Code mod from https://github.com/danielcheng80/session-lens. Run claude plugin validate on it first and show me what it can access before you enable it.