From fast-jev-compaction
Compacts sessions early by removing the tool calls and outputs Claude no longer needs, keeping your messages and Claude's replies word for word. Needs an API key; without one, or when that frees too little space, the usual summary runs.
2 events · 8 calls
Ships in fast-jev-compaction. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
process.runhttp.fetchenv.getsettings.readEach event it registers a hook on, with the matcher when it sets one
session.compactturn.completeEvery mods API method its source calls, by namespace
getfetchruncompactusagereadlogtoastGEMINI_API_KEYGEMINI_DECISIONS_API_KEYTYPESAFE_API_KEYWhere Claude Code finds the mod
hooks/hooks.jsonhooks/fast-jev.ts (written ./fast-jev.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 grixu/cc-toolkit --plugin fast-jev-compaction