Promptles
Claude Code

Hook (Claude Code)

intermediate

Definition

A command you set up in Claude Code's settings that runs automatically every time a certain event happens, such as right after Claude edits a file, so a rule is followed without anyone having to remember it.

In the wild

A team adds a hook that blocks any edit to the file holding their passwords, so it stays untouched even when a prompt forgets to mention it.

More from Claude Code