Skip to content
Productivity
Hook

Hooks

What cortexes runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
cortexes
216 skills6 commands2 hooks
Install
> /plugin marketplace add XBlueSky/cortexes
> /plugin install cortexes@cortex

Ships with cortexes. Installing the plugin gets these hooks.

What fires, and when

SessionEnd

  • bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-end-record.sh

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-start-inject.sh
Read hooks/hooks.json

In the plugin's words

How cortexes describes its own hook set.

Cortexes plugin hooks — session recording and memory injection
Ships withcortexes

Personal knowledge vault plugin for Claude Code — session recording, memory distillation, and hybrid semantic + BM25 retrieval.

Get the whole plugin, auto-invoked