lens
by Pedro La Rosa · ★ 1 · updated yesterday
Puts tsc, linter and secret-scan diagnostics in the result of every Edit and Write, so Claude fixes what it broke in the same turn
Install
/plugin marketplace add PedroLaRosa/claude-code/plugin install lens@pedro-la-rosa-claude-codeThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
tool.callcommand.runui.rendersession.startturn.startturn.complete- API calls
$.clock.after$.command.register$.fs.exists$.fs.list$.fs.read$.fs.stat$.process.run$.process.spawn$.prompt.submit$.session.root$.store.delete$.store.get$.store.set$.tool.register$.ui.invalidate$.ui.log$.ui.toast- Draws
SessionMode- Can see
every tool callmcp__lens__lens_diagnostics callsmcp__lens__lens_diagnostic_mark calls- Reach
- level 2 of 3 other: $.process.spawnruns processesdrives Claudereads filespersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/PedroLaRosa/claude-code
- Path in repo
mods/lens- Source commit
947c119the exact code the scan read- Author
- Pedro La Rosa @PedroLaRosa
- License
- No license declared — ask the author before reusing code.
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from PedroLaRosa/claude-code
dep-bouncer
PedroLaRosa/claude-code
Supply-chain gate: vets npm/pnpm/yarn/bun installs against the registry before they run
lazygit-popup
PedroLaRosa/claude-code
alt+g opens lazygit in a tmux popup; ESC (or q) quits lazygit and closes it
model-effort-switcher
PedroLaRosa/claude-code
Shows the model and effort under the prompt, cycled with alt+up/down (model), alt+left/right (effort) and alt+. (ultracode)
token-weather-usage
PedroLaRosa/claude-code
Demo: colored pills above the prompt: context tokens with weather, 5h/7d limits vs time elapsed, prompt cache time left, session cost, running subagents. No network, no files, no process access.