From compaction-guard
Saves the task, plan and recent asks to a handoff file before each compaction, puts it back after, and warns when compaction starts thrashing.
3 events · 16 calls
Ships in compaction-guard. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
fs.writefs.readfs.statenv.getEach event it registers a hook on, with the matcher when it sets one
session.compactsession.startcommand.run{command=handoff}command.run{command=handoff-load}Every mods API method its source calls, by namespace
nowregistergetreadstatwriteidmessagesrootdeletegetsetlognotifystatustoastHOMEUSERPROFILEWhere 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 effinrich/claude-mods --plugin compaction-guard