Hook

Appears in 2 tutorials

A command the harness runs automatically at a defined moment — before or after a tool call, when a session starts, and so on.

As used in How Claude Code Works →

A command the harness runs automatically at a defined moment — before or after a tool call, when a session starts, and so on. Hooks let you enforce rules and automate steps that Claude itself shouldn't have to remember.

As used in Git, GitHub & GitHub Copilot →

Scripts run at Git events; tools that share hooks across a team. (Mod 9)