From coherence
Coherence's hooks through one warm process per session, with its verdicts where the user reads them
16 events · 28 calls
Ships in coherence. 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.runprocess.spawnhttp.fetchfs.writefs.existsfs.listfs.readfs.statenv.getsettings.readEach event it registers a hook on, with the matcher when it sets one
session.startclassic.SessionStartclassic.SubagentStartclassic.UserPromptSubmitclassic.PostToolUseclassic.Stopclassic.SubagentStopclassic.PreToolUsesession.endturn.completeui.render{component=ToolUse}ui.render{component=AbovePrompt}command.run{command=scope}command.run{command=journal}tool.call{tool=/"^mcp__coherence__journal$"/}ui.press{plugin=coherence, component=AbovePrompt, element=journal}ui.open{id=coherence-journal}tool.call{tool=Bash}ui.scroll{component=Pane, requestId=coherence-journal}ui.render{component=Pane, requestId=coherence-journal}Every mods API method its source calls, by namespace
listaftereverynowregistergetexistslistreadstatwritefetchrunspawncwdidrootreadgetsetregisterlogopenpanesresolvescrollstatustoastCOHERENCE_HOMECOHERENCE_MOD_TIMESWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.tsx (written ./register.tsx)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 posthog/coherence --plugin coherence