Browse documentation

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

  1. Open Hooks, inspect discovered sources and enable the commands you intend to run.
  2. Configure userPromptSubmitted, preToolUse, postToolUse or agentStop.
  3. 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.

Related