Hooks
Hooks run project commands at specific points in a Session. The editor exposes enablement and the last execution output.
What it is
Hooks run project commands at specific points in a Session. The editor exposes enablement and the last execution output.
How to use it
- Open Hooks, inspect discovered sources and enable the commands you intend to run.
- Configure userPromptSubmitted, preToolUse, postToolUse or agentStop.
- Review output after an execution.
Settings and files
Sources include .knotic/hooks/*.json, .github/hooks/*.json, .claude/settings.json, .claude/settings.local.json, .codex/hooks.json and command hooks in .codex/config.toml.
Limits
Before-hooks fail closed. Scripts from other tools may need changes because tool names differ. Hooks run in desktop and CLI Sessions.