smart-compact

by mdseyam-as · ★ 0 · updated 15 Oct 2026

Status lineCommandsPromptvalidates

0

Compacts the Claude Code context at the most cost-effective moment, aware of the warm prompt cache; Haiku judges task boundaries, topic switches and what to keep

install smart-compact

Install

/plugin marketplace add mdseyam-as/claude-smart-compact
/plugin install smart-compact@smart-compact

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

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.complete
API calls
$.clock.after$.clock.every$.clock.now$.command.register$.model.complete$.session.compact$.session.messages$.session.usage$.store.get$.store.set$.ui.status$.ui.toast
Can see
every prompt
Reach
level 2 of 3 drives Claudereads the transcriptpersists 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/mdseyam-as/claude-smart-compact
Path in repo
repository root
Source commit
d1f891c the exact code the scan read
Author
@mdseyam-as
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.