Skip to content
Development
Hook

Hooks

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

From plugin
lumen
2433 skills2 agents2 hooks
Install
$ npx -y skills add ory/lumen --agent claude-code

Ships with lumen. Installing the plugin gets these hooks.

What fires, and when

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.

  • Matchesstartup|resume|clear|compact"${CLAUDE_PLUGIN_ROOT}/scripts/run" hook session-start lumen --host claude --plugin-name lumen

PreToolUse

  • MatchesGrep|Bash"${CLAUDE_PLUGIN_ROOT}/scripts/run" hook pre-tool-use lumen --plugin-name lumen
Read hooks/hooks.json
Ships withlumen

Save 30% token costs when using Claude Code, Codex, OpenCode for free - with open source, local semantic search. Works for small and large codebases and monorepos! Enterprise-ready and fully compliant via Ollama and SQLite-vec.

Get the whole plugin