Hook Development (Codex)
Codex does not use Claude plugin hooks directly. Build equivalent guardrails with repository-native tooling.
Preferred Mechanisms
AGENTS.mdfor behavioral policy.- Pre-commit/CI checks for enforcement.
- Wrapper scripts or Make targets for safe workflows.
Workflow
- Define the exact unsafe behavior to catch.
- Add deterministic checks (lint/static/security/tests) with clear failure output.
- Keep checks fast and scoped.
- Add bypass policy only if necessary and auditable.
- Document remediation steps for each failure.