From smart-compact
Compacts at the right moment: after a commit or green tests, a minute before the prompt cache expires, or when Claude asks for it with its own request_compact tool.
7 events · 13 calls
Ships in smart-compact. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callprocess.runcommand.runprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.starttool.call{tool=mcp__smart-compact__request_compact}tool.call{tool=Bash}tool.call{tool=PowerShell}prompt.submitturn.completeclassic.PreCompactui.close{id=smart-compact}ui.render{component=Pane, requestId=smart-compact}ui.render{component=AbovePrompt}Every mods API method its source calls, by namespace
afternowrunruncompactusagegetsetregistercloseopenresolvetoastWhere 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.
smart-compact@hellosverre-mods is listed by hellosverre/claude-skins — review the source before installing
npx claudepluginhub hellosverre/claude-skins --plugin smart-compact