From compact-keeper
After a compaction, adds one message with exact facts from before it: your latest prompt in full, up to 4 earlier ones, the files edited, the todo list and the last failed shell command. At most 4,000 characters. No model calls.
7 events · 6 calls
Ships in compact-keeper. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startprompt.submittool.callsession.compactsession.endcommand.run{command=compact-keeper}ui.render{component=Pane, requestId=compact-keeper}Every mods API method its source calls, by namespace
registergetsetopenresolvetoastWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.tsx (written ./register.tsx)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub vedantandhale/claude-pro-kit --plugin compact-keeper