# Hook

Band: established — Settled. Documented by a primary source and not seriously disputed.
Group: The harness

A shell command the harness runs at a fixed point in the agent's loop — not a request to the model. Exit codes are the interface: a non-zero exit can block the transition the hook fired on. It is the only lever on this page the model cannot argue with, which is also why an untrusted repository that can write a hook has execution on your machine. The distinction worth holding: an instruction is obeyed by disposition, a hook is enforced by the harness.

## See also

- [Verification gate](https://clickai.dev/legend/verification-gate)
- [Worktree isolation](https://clickai.dev/legend/worktree-isolation)
- [Self-reported green](https://clickai.dev/legend/self-reported-green)

---

Full legend: https://clickai.dev/legend.md
