compact-shaper

by Michael Prömpler · ★ 2 · updated 2 days ago

ToastsCommandsvalidates

0

Summarizes compactions as a handoff, and cuts re-readable tool output instead on /compact prune

install compact-shaper

Install

git clone https://github.com/MichaelP17/claude-mods
claude --plugin-dir ./claude-mods/compact-shaper

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.runsession.compact
API calls
$.command.register$.session.messages$.session.usage$.ui.toast
Can see
compaction
Reach
level 1 of 3 reads the transcriptdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/MichaelP17/claude-mods
Path in repo
compact-shaper
Source commit
4021b7c the exact code the scan read
Author
Michael Prömpler @MichaelP17
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 MichaelP17/claude-mods

cache-watch

MichaelP17/claude-mods

Shows how long the prompt cache stays warm and suggests compacting a large context at the right moment

★ 2BandsStatus lineGuards

concurrency-guard

MichaelP17/claude-mods

Caps parallel subagents and monitors; more need a stated reason and the user's approval

★ 2Status lineGuardsPrompt

config-snapshots

MichaelP17/claude-mods

Snapshot and roll back the Claude Code configuration through claude-config

★ 2PanesCommands

machine-guard

MichaelP17/claude-mods

Puts every command that changes the machine in front of the user before it runs

★ 2Guards

service-radar

MichaelP17/claude-mods

Keeps track of detached services Claude starts and stops them on request

★ 2PanesStatus lineGuards

status-band

MichaelP17/claude-mods

Shows context fill and usage limits in the footer under the prompt in the desktop app, where no status line exists

★ 2ReskinsGuards