We’ve rolled out another update to Claude Code to help customize...

@alexalbert__
Alex Albert@alexalbert__
138 views Jul 03, 2025 ~1 min read
Advertisement
1
We’ve rolled out another update to Claude Code to help customize your workflows: Hooks.
0:16
2
Hooks are user-defined shell commands that execute at various points in Claude Code’s agent loop.

They give you deterministic control over Claude Code’s behavior to ensure certain actions always happen at certain times.
Media image
3
You can create hooks for:
- Notifications (e.g. via Slack) on prompt completions
- Logging and observability
- Custom permissions and approvals
- Running lints after every write
4
To create a hook, run the /hooks command within Claude Code. Select the kind of hook event (when you want the action triggered), then define the hook command.
0:12
5
For complex hooks, we recommend writing a script and calling it.

You can find an example in our repo here: github.com/anthropics/cla…
6
Read the docs to get started with hooks and further customize Claude Code: docs.anthropic.com/en/docs/claude…
Actions
What You Can Do
  • Export as PDF or Markdown
  • Batch Export to Notion
  • Bookmark & Highlight
  • Screenshot Tweet
Create Free Account

Includes 7-day Premium trial

Advertisement