early-compact
by Daniel Garcia Carrillo · ★ 0 · updated 9 days ago
0
Has Claude write a checkpoint once context passes a threshold, then compacts early with that checkpoint as the brief and resumes the work
Install
git clone https://github.com/DanielGarcia-Carrillo/claude-improvementsclaude --plugin-dir ./claude-improvements/mods/early-compactThen 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.runprompt.submitturn.startturn.completesession.compact- API calls
$.clock.after$.clock.now$.command.register$.command.run$.fs.write$.prompt.submit$.session.id$.session.root$.session.usage$.ui.status$.ui.toast- Can see
every promptcompaction- Reach
- level 2 of 3 writes filesdrives 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/DanielGarcia-Carrillo/claude-improvements
- Path in repo
mods/early-compact- Source commit
7b207c4the exact code the scan read- Author
- Daniel Garcia Carrillo @DanielGarcia-Carrillo
- 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.