From compact-adviser
Suggests (or, opt-in, runs) /compact at a completed checkpoint, judged by TypeSafe Jev. Its hooks module activates only when CLAUDE_CODE_ENABLE_FUNCTION_HOOKS is exactly 1 and is otherwise a complete no-op.
9 events · 31 calls
Ships in compact-adviser. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
http.fetchfs.writefs.readenv.getconfig.setcommand.runprompt.submitprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startprompt.submitcommand.runturn.startturn.completesession.compactcommand.run{command=compact-adviser}config.describe{key=compact-adviser.typesafeApiKey}ui.close{id=compact-adviser}ui.render{component=Pane}Every mods API method its source calls, by namespace
afternowsleepregisterrunlistsetgetreadwritefetchsubmitcompactcwdidmessagesusagedeletegetkeyssetaskclosefocusinvalidatelogopenpanesresolvestatustoastCLAUDE_CODE_ENABLE_FUNCTION_HOOKSCOMPACT_ADVISER_DISABLECOMPACT_ADVISER_TEST_ENDPOINTHOMETYPESAFE_API_KEYTYPESAFE_BASEWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.ts (written ./register.ts)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 kunchenguid/compact-adviser --plugin compact-adviser