smart-compact
by Ahmed Gharib · ★ 0 · updated yesterday
0
Lets Claude compact its own context at a step boundary it picks, with its own instructions, then resume the work.
Install
/plugin marketplace add Gharib89/claude-mods/plugin install smart-compact@claude-modsThen 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.starttool.callturn.completesession.compact- API calls
$.clock.after$.prompt.submit$.session.compact$.session.usage$.tool.register$.ui.toast- Can see
? callsevery tool callcompaction- Reach
- level 2 of 3 drives Claudedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/Gharib89/claude-mods
- Path in repo
plugins/smart-compact- Author
- Ahmed Gharib @Gharib89
- License
- No license declared — ask the author before reusing code.
- 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.