lens

lens is a Claude Code mod by Dominic-DK that langfuse-lite for Claude Code — records load, usage, cache hits, turn scores and cost per session; /lens pane and prompt line; lens-review skill.

Updated 2026-11-25

What is lens?

lens is a Claude Code mod by Dominic-DK that langfuse-lite for Claude Code — records load, usage, cache hits, turn scores and cost per session; /lens pane and prompt line; lens-review skill. It is listed under Cost & usage and has 3 GitHub stars.

TypeClaude code mod
AuthorDominic-DK
RepositoryDominic-DK/harnist
Popularity3 GitHub stars
CategoryCost & usage
SecurityReview before installing (68/100)
Rank#1,957 of 9,397 Claude Code mods; #308 in Cost & usage
LicenseMIT
Last commit2026-11-25
Hooks16 events
Seescompaction, every skill, every tool call, mcp__lens__report calls, subagent spawns, the system prompt
Draws onPromptHint, Pane

Is lens safe to install?

lens scores 68/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables. It passed 4 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 files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.agent.list
$.clock.every
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.fs.writewrites files
$.prompt.submitdrives Claude
$.session.cwd
$.session.id
$.session.model
$.session.turns
$.session.usage
$.session.version
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.tool.registerdrives Claude
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface

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

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/Dominic-DK/harnist/tree/main/lens. Run claude plugin validate on it first and show me what it can access before you enable it.

More from Dominic-DK/harnist

This repository has 2 Claude Code mods on MCPMods.

  • runtime: harnist runtime mod — per-role subagent loading: trims skill list, MCP notes and CLAUDE.md per subagent type, enforces s (Low risk)