From collision-guard
Asks before Claude edits a file another open chat changed in the last 30 minutes: Proceed, Move to a worktree, or Cancel (/guard)
5 events · 16 calls
Ships in collision-guard. 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.writefs.existsfs.listfs.readenv.getprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startsession.endprompt.submittool.call{tool=Edit|Write|NotebookEdit}command.run{command=guard|collision-guard}Every mods API method its source calls, by namespace
everynowregistergetexistslistreadwriteruncwdidsurfacesgetsetasklogHOMEUSERPROFILEWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.mjs (written ./register.mjs)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 crileiton/crileiton-mods --plugin collision-guard