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.
| Type | Claude code mod |
|---|---|
| Author | Dominic-DK |
| Repository | Dominic-DK/harnist |
| Popularity | 3 GitHub stars |
| Category | Cost & usage |
| Security | Review before installing (68/100) |
| Rank | #1,957 of 9,397 Claude Code mods; #308 in Cost & usage |
| License | MIT |
| Last commit | 2026-11-25 |
| Hooks | 16 events |
| Sees | compaction, every skill, every tool call, mcp__lens__report calls, subagent spawns, the system prompt |
| Draws on | PromptHint, 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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes files or config | Review |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.agent.list | |
$.clock.every | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.prompt.submit | drives Claude |
$.session.cwd | |
$.session.id | |
$.session.model | |
$.session.turns | |
$.session.usage | |
$.session.version | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.tool.register | drives Claude |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | 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/Dominic-DK/harnist claude plugin validate ./harnist/lens
- 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)