What is early-compact?
early-compact is a Claude Code mod by DanielGarcia-Carrillo that has Claude write a checkpoint once context passes a threshold, then compacts early with that checkpoint as the brief and resumes the work. It is listed under Context & memory and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | DanielGarcia-Carrillo |
| Repository | DanielGarcia-Carrillo/claude-improvements |
| Popularity | no public popularity data yet |
| Category | Context & memory |
| Security | Review before installing (72/100) |
| Rank | #2,982 of 5,272 Claude Code mods; #276 in Context & memory |
| License | MIT |
| Last commit | 2026-10-09 |
| Hooks | 6 events |
| Sees | compaction, every prompt |
| Draws on | nothing |
Is early-compact safe to install?
early-compact scores 72/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; watches every prompt or event. It passed 5 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes files or config | Review |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.now | |
$.command.register | |
$.command.run | drives Claude |
$.fs.write | writes files |
$.prompt.submit | drives Claude |
$.session.id | |
$.session.root | |
$.session.usage | |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install early-compact?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/DanielGarcia-Carrillo/claude-improvements claude plugin validate ./claude-improvements/mods/early-compact
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/DanielGarcia-Carrillo/claude-improvements && claude --plugin-dir ./claude-improvements/mods/early-compact
Or ask Claude to set it up
Paste this into Claude Code and it installs early-compact for you:
Install the "early-compact" Claude Code mod from https://github.com/DanielGarcia-Carrillo/claude-improvements/tree/main/mods/early-compact. Run claude plugin validate on it first and show me what it can access before you enable it.
More from DanielGarcia-Carrillo/claude-improvements
This repository has 2 Claude Code mods on MCPMods.
- lens: Sorts each of Claude's replies into what's in progress, what needs you and what got done, in a side pane and in place in (Low risk)