Skip to content
Productivity
Hook

Hooks

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

Install
$ npx -y skills add XBlueSky/cortexes --agent claude-code

Ships with cortex. Installing the plugin gets these hooks.

What fires, and when

SessionEnd

  • Runs 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.

  • Runs session-start-inject.sh.
Read hooks/hooks.json
Ships withcortex

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

Get the whole plugin, auto-invoked
Stats
12
Stars
0
Views
4
Forks
Active
Maintenance
Python
Language
Apache-2.0
License
3h ago
Last commit
2mo ago
Created

Repo: XBlueSky/cortexes