What is auto-compact?
auto-compact is a Claude Code mod by u6vu06Ou. Auto-compacts an idle Claude Code conversation shortly before the prompt cache expires, so the next summarization request warms the cache instead of reprocessing the full history. It is listed under Cost & usage and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | u6vu06Ou |
| Repository | u6vu06Ou/auto-compact |
| Popularity | no public popularity data yet |
| Category | Cost & usage |
| Security | Review before installing (72/100) |
| Rank | #8,964 of 9,397 Claude Code mods; #1,785 in Cost & usage |
| License | MIT |
| Last commit | 2026-11-05 |
| Hooks | 2 events |
| Sees | only the events it hooks |
| Draws on | nothing |
Is auto-compact safe to install?
auto-compact scores 72/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables. 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 |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.now | |
$.env.get | reads env vars |
$.fs.read | reads files |
$.fs.write | writes files |
$.session.compact | drives Claude |
$.session.id | |
$.session.model | |
$.ui.toast | draws interface |
How do I install auto-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/u6vu06Ou/auto-compact claude plugin validate ./auto-compact/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add u6vu06Ou/auto-compact && claude plugin install auto-compact@auto-compact
Or ask Claude to set it up
Paste this into Claude Code and it installs auto-compact for you:
Install the "auto-compact" Claude Code mod from https://github.com/u6vu06Ou/auto-compact. Run claude plugin validate on it first and show me what it can access before you enable it.