compact-lens
by Ewan · ★ 0 · updated 29 Oct 2026
0
See every compaction of a session and what its summary dropped, give your prompts or any lost detail back to Claude, pin facts that must survive, and edit the summary.
Install
/plugin marketplace add ewanlimr25/compact-lens/plugin install compact-lens@compact-lensThen 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
session.startclassic.SessionStartclassic.PostCompactsession.compactturn.stepturn.completeclassic.ConfigChangeclassic.PostModelSwitchtool.callcommand.runprompt.submitprompt.composeui.render- API calls
$.clock.after$.clock.now$.command.register$.env.get$.fs.exists$.fs.list$.fs.read$.fs.stat$.fs.write$.process.spawn$.prompt.fill$.prompt.read$.session.append$.session.id$.session.messages$.session.root$.session.usage$.session.version$.settings.read$.state.get$.state.set$.store.get$.store.set$.tool.register$.ui.close$.ui.log$.ui.open$.ui.resolve$.ui.status$.ui.toast- Draws
Pane- Can see
classic hookscompactionmcp__compact-lens__keep callsmcp__compact-lens__apply callsmcp__compact-lens__recall callsevery prompt- Reach
- level 2 of 3 runs processeswrites filesdrives Claudewrites the prompt boxreads filesreads env varsreads settingsreads the transcriptreads the prompt boxreads mod statepersists 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/ewanlimr25/compact-lens
- Path in repo
- repository root
- Source commit
4cd6cb8the exact code the scan read- Author
- Ewan @ewanlimr25
- License
- MIT
- 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.
Related mods
Other mods in Panes, close to this one by stars.