From tidy
Gives the model a tool to compact its own context, suggests compacting at boundaries, and keeps the prompt cache warm while background work runs.
9 events · 17 calls
Ships in tidy. 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.runfs.readenv.getsettings.readmodel.forkprompt.submitprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.starttool.call{tool=mcp__tidy__compact}tool.callclassic.StopFailureclassic.Stopsession.compactprompt.submitturn.stepturn.startturn.completeEvery mods API method its source calls, by namespace
aftereverynowsleepgetreadforkrunsubmitcompactidusagereadgetsetregistertoastCLAUDE_CODE_PROMPT_CACHE_TTLCLAUDE_CODE_USE_BEDROCKCLAUDE_CODE_USE_FOUNDRYCLAUDE_CODE_USE_VERTEXCLAUDE_CONFIG_DIRDISABLE_PROMPT_CACHINGENABLE_PROMPT_CACHING_1HENABLE_PROMPT_CACHING_1H_BEDROCKFORCE_PROMPT_CACHING_5MHOMEWhere 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 jmcarthur/claude-plugins --plugin tidy