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.

Updated 2026-10-09

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.

TypeClaude code mod
AuthorDanielGarcia-Carrillo
RepositoryDanielGarcia-Carrillo/claude-improvements
Popularityno public popularity data yet
CategoryContext & memory
SecurityReview before installing (72/100)
Rank#2,982 of 5,272 Claude Code mods; #276 in Context & memory
LicenseMIT
Last commit2026-10-09
Hooks6 events
Seescompaction, every prompt
Draws onnothing

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.

CheckResult
No network accessPass
Starts no processesPass
Writes files or configReview
Doesn't read environment variablesPass
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.now
$.command.register
$.command.rundrives Claude
$.fs.writewrites files
$.prompt.submitdrives Claude
$.session.id
$.session.root
$.session.usage
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install early-compact?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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)