lossless-compaction
by Iori Yoshida · ★ 0 · updated yesterday
0
Lossless context compaction for Claude Code: old tool output moves to local files and comes back unchanged by id, or by what it is about with a Jev key.
Install
/plugin marketplace add yottayoshida/lossless-compaction/plugin install lossless-compaction@lossless-compactionThen 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.startcommand.runtool.calltool.describeprompt.attachmentprompt.submitsession.compact- API calls
$.clock.sleep$.command.register$.env.get$.env.set$.fs.exists$.fs.list$.fs.read$.fs.stat$.fs.write$.http.fetch$.process.run$.session.id$.session.messages$.session.usage$.settings.read$.tool.register$.ui.log$.ui.toast- Can see
every tool callmcp__lossless-compaction__recall callsmcp__lossless-compaction__find callsevery promptcompaction- Reach
- level 3 of 3 networkruns processeswrites filessets env varsdrives Claudereads filesreads env varsreads settingsreads the transcriptdraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/yottayoshida/lossless-compaction
- Path in repo
- repository root
- Author
- Iori Yoshida @yottayoshida
- License
- Apache-2.0
- First published
- Last pushed
- First listed here
- On X
- Mentioned in 1 post on X
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.
Posts about this repo
Claude CodeのCompaction時間を52秒→0.26秒にして、要約せずロスレスにするpluginを作りました。爆速compactionを試して欲しいです https://github.com/yottayoshida/lossless-compaction