What is memory-lens?
memory-lens is a Claude Code mod by dwarvesf that recalls the few memories related to each prompt: one line for the human, one context entry for the model. Local files only, no network on the hot path. It is listed under Context & memory and has 15 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | dwarvesf |
| Repository | dwarvesf/dwarves-kit |
| Popularity | 15 GitHub stars |
| Category | Context & memory |
| Security | Review before installing (72/100) |
| Rank | #614 of 9,397 Claude Code mods; #65 in Context & memory |
| License | MIT |
| Last commit | 2026-11-30 |
| Hooks | 4 events |
| Sees | every prompt, every tool call |
| Draws on | nothing |
Is memory-lens safe to install?
memory-lens scores 72/100 on the MCPMods security check: Review before installing. Things to review: reads environment variables; 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 no files or config | Pass |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.ui.log | draws interface |
How do I install memory-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/dwarvesf/dwarves-kit claude plugin validate ./dwarves-kit/integrations/claude-code/memory-lens
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/dwarvesf/dwarves-kit && claude --plugin-dir ./dwarves-kit/integrations/claude-code/memory-lens
Or ask Claude to set it up
Paste this into Claude Code and it installs memory-lens for you:
Install the "memory-lens" Claude Code mod from https://github.com/dwarvesf/dwarves-kit/tree/master/integrations/claude-code/memory-lens. Run claude plugin validate on it first and show me what it can access before you enable it.
More from dwarvesf/dwarves-kit
This repository has 5 Claude Code mods on MCPMods.
- board-pane: /board opens a pane with the kit's board output and a Refresh button (Review before installing)
- context-inspector: Context waste analyzer for Claude Code: what fills the window, re-reads, near-duplicate outputs, what compaction kept, a (Review before installing)
- loop-detective: Detect repeated Bash failures and edit/retry cycles with evidence, live cases and investigation prompts (Low risk)
- secrets-veil: Masks secret values in tool results before the model reads them: named vendor variables, value-shape patterns, and high- (Low risk)