Turn the "AI black box" into a controllable workflow.
Config lives in the vault
Hook configuration sits at `<WorkspaceDir>/.kition/hooks.json` and travels with the vault. New machine, new team — same config.
Six lifecycle points
PreToolUse / PostToolUse wrap each tool call; SessionStart / Stop set up or clean resources; UserPromptSubmit rewrites or pre-processes input; Notification routes alerts.
Real-world uses
Audit — log every file write to a remote sink. Comply — block agent access to specific paths. Cache — store expensive web_fetch results. Augment — translate instructions into your DSL.
Composable with MCP and subagents
Hooks can fire new MCP calls or refuse a subagent spawn. The whole machinery composes cleanly.