Skip to content

Hooks

Hooks run deterministic checks at known lifecycle points.

Canonical source:

source/hooks/**
scripts/hook-stop-validation.mjs

Generated outputs:

dist/codex/.codex/hooks.json
dist/codex/.codex/hooks/stop-validation.mjs
dist/claude/.claude/settings.json
dist/claude/.claude/hooks/stop-validation.mjs
plugins/agent-engineering/hooks/**

The initial hook validates that package.json is valid JSON when present.

This is intentionally small. Add stronger hooks only after they prove useful in repeated reviews.