auto-compact
by rathialok901 · ★ 0 · updated 16 Oct 2026
Compacts the conversation once context passes a threshold (/compact-at)
Install
/plugin marketplace add rathialok901/claudemods/plugin install auto-compact@claudemodsThen 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.runsession.measure- API calls
$.command.register$.session.compact$.state.get$.state.set$.store.get$.store.set$.ui.toast- Reach
- level 2 of 3 drives Claudereads mod statepersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/rathialok901/claudemods
- Path in repo
plugins/auto-compact- Source commit
5c821bdthe exact code the scan read- Author
- @rathialok901
- 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.
More from rathialok901/claudemods
agent-dashboard
rathialok901/claudemods
Live pane of subagents: type, task, elapsed time, tool calls and status
budget-guard
rathialok901/claudemods
Daily spend budget: warns as you approach it and asks before going over (/budget)
done-sound
rathialok901/claudemods
Chime when a long turn finishes, a different sound when it fails
explain-risky
rathialok901/claudemods
Explains risky commands in one plain-English line while their approval prompt is open
guardrails
rathialok901/claudemods
Blocks destructive commands and access to secret files, for Claude and its agents (/guardrails)
long-term-memory
rathialok901/claudemods
Remembers session summaries, decisions and preferences across sessions, in a file you can edit (/brain)
mascot
rathialok901/claudemods
A little character above the prompt that reacts to what Claude is doing (/mascot)
model-advisor
rathialok901/claudemods
Picks Sonnet or Opus for each prompt by how hard it is (/model-advisor)
mods-center
rathialok901/claudemods
A colourful control panel for all your mods: live status and one-key toggles (/mods)
next-step
rathialok901/claudemods
Suggests the next prompt after each turn: run tests, fix the error, commit (Tab to take)
phone-alert
rathialok901/claudemods
Alerts your phone through ntfy or iMessage when a long task finishes or Claude needs you while you're away (/phone-alert)
prompt-enhancer
rathialok901/claudemods
Adds the last error and recent files behind short, vague prompts like 'fix it' (/enhancer)