compact-lens
by Ewan · ★ 0 · updated 8 days ago
0
See what a compaction takes away and what it leaves, pin facts that must survive it, and edit the summary afterwards.
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.startsession.compactturn.stepturn.completetool.callcommand.runprompt.submitprompt.composeui.render- API calls
$.clock.after$.clock.now$.command.register$.env.get$.fs.exists$.fs.read$.fs.write$.prompt.fill$.prompt.read$.session.append$.session.id$.session.messages$.session.usage$.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
compactionmcp__compact-lens__keep callsmcp__compact-lens__apply callsevery prompt- Reach
- level 2 of 3 other: $.prompt.readother: $.state.getother: $.state.setwrites filesdrives Claudewrites the prompt boxreads filesreads env varsreads the transcriptpersists 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
ec7332cthe 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.