Hooks

Scripts that fire automatically at lifecycle events for deterministic control over AI behavior.

Why it matters

Hooks give deterministic control over non-deterministic AI. They ensure certain checks always happen.

In practice

We use Claude Code hooks to enforce quality gates: pre-commit hooks run linting, post-tool hooks validate changes.

Related terms

Back to glossary