Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By yonatangrossv0.1.1MITIn 1 marketplace
Recalls the few memories related to each prompt you send (never on automated turns or file tool calls): one line for the human, one context entry for the model. Local files only, no network on the hot path.
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; reads files; reads environment variables (HOME); reads or rewrites your prompts.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Recalls the few memories related to each prompt. The model gets them as one context entry; your pane shows nothing. /memory-lens show <n> prints a recalled memory when you want it.
Requires Claude Code 2.1.283 or later (the prompt.submit answer shape below was measured on that binary).
Copy this folder to your project:
cp -r mods/memory-lens/ /path/to/your/project/mods/
On CC 2.1.266 through 2.1.286, enable function hooks in your shell profile or personal settings (not needed on 2.1.287+, where Mods are public):
export CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1
Start Claude Code with the plugin directory:
claude --plugin-dir mods/memory-lens
~/.claude/projects/<project>/memory/*.md (Claude Code's own memory files) in the background. A worktree under <repo>/.worktrees/<name> maps to its parent repo's folder, because a worktree's own folder is usually empty. MEMORY.md index files are never recalled.n/3 title · match words row goes to the debug log only. The file name stays in the model's context only.Both live in ~/.claude/memory-lens/:
| File | What it is |
|---|---|
private.json | { "clientTerms": ["..."] }: words that mark a memory as client data. Its title is hidden on screen; the model still gets it. A memory in a clients-* project is always treated this way. |
mirror-<project>.json | { "items": [{ "id", "title", "summary", "source" }] }: titles of remote knowledge, written by a job outside this mod. The lens recalls them like local memories and tells the model to fetch the body by id only if needed. |
Secret-shaped text (key prefixes, PEM headers) reaches neither the screen nor the model.
| Event | Matcher | Notes |
|---|---|---|
session.start | {} | Find the memory folder, build the index in the background, register /memory-lens |
prompt.submit | {} | Query, put the context on the event before next(), draw the line |
tool.call | {} | Write and Edit only: re-index a memory that was just written |
command.run | { command: 'memory-lens' } | stats, reload, show <n> |
$.env.get('HOME'), $.fs.list, $.fs.read: the memory folder and the two optional files$.ui.log with { to: 'debug' }: the recall row and one line with the index size (nothing is drawn in the pane)$.clock.after: caps the first prompt's wait for the index at 2 s$.command.register: /memory-lensprocess.run, no http.fetch, no storeprompt.submit answers { text, context? } where context is a list of non-empty strings (the binary's checkArgument for that event). The context lands in the transcript as a hook_additional_context attachment.next(e) settled never reached the model: the classic UserPromptSubmit hooks run inside next(e) and the turn had started. The lens therefore puts the context on the event it passes to next(e).$.ui.log call draws as a replacement glyph, Claude Code prefixes the plugin name, and a second $.ui.log in the same hook call did not draw. Hence one line per prompt.Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub yonatangross/orchestkit --plugin memory-lensPlugins from other owners that cover similar ground