claudemods

All Claude Code modsHarzerHeribert/claude-modpack

smart-compact

A Claude Code mod in HarzerHeribert/claude-modpack

Keeps an idle session's prompt cache warm, or compacts it just before it expires, whichever is cheaper, and says on the status line whether the next prompt is ready or cold.

smart-compact reaches L2 (writes or runs) by its classified calls and passed claude plugin validate on Claude Code 2.1.312.

Install hint

/plugin install smart-compact --marketplace HarzerHeribert/claude-modpack

From the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runsdrives Claude, reads the transcript, reads the prompt box, reads mod state, persists state, draws, other: $.statusline.remove, other: $.statusline.set

Validation

Passed on Claude Code 2.1.312

Listed under Prompt cache mods for Claude Code.

View the source on GitHub Back to the list

What the scan recorded

Observed events
classic hooks, compaction
Hooks
session.start, classic.SessionStart, session.end {reason=clear}, turn.start, turn.step, turn.complete, ui.render {component=UserMessage}, session.compact, command.run {command=cache}
API calls
$.agent.list, $.clock.after, $.clock.every, $.clock.now, $.command.register, $.command.run, $.model.fork, $.prompt.read, $.session.compact, $.session.messages, $.session.usage, $.state.get, $.state.set, $.statusline.remove, $.statusline.set, $.store.get, $.store.set, $.ui.log, $.ui.status
Validation on 2.1.312
Passed
Scanned revision
0b9097a7b7cc
Marketplace passed
claude-modpack

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.

More from HarzerHeribert/claude-modpack

Badge for your README

Reach badge for smart-compact Validation badge for smart-compact

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/HarzerHeribert--claude-modpack--smart-compact-reach.svg)](https://mods.aidojo.si/mods/HarzerHeribert--claude-modpack--smart-compact/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/HarzerHeribert--claude-modpack--smart-compact-validates.svg)](https://mods.aidojo.si/mods/HarzerHeribert--claude-modpack--smart-compact/)