Hooks
Harness · hooks
Scripts the harness runs automatically at set moments of the agent’s work: before an action, after a file edit, on finish. An agent treats a rule in the instructions as advice, while a hook always runs, so hooks close the blocks that allow no exceptions.
Source: Claude Code hooks reference
Where it appears · 4
- AI agent = LLM + harness · Harness
- Claude in Chrome · Harness
- Harness engineering in practice · Harness
- AGENTS.md and CLAUDE.md, specs, rules and skills · Specs and context