Get the latest tech news

Claude Code now supports hooks


Customize and extend Claude Code's behavior by registering shell commands

Hooks provide deterministic control over Claude Code’s behavior, ensuring certain actions always happen rather than relying on the LLM to choose to run them. By encoding these rules as hooks rather than prompting instructions, you turn suggestions into app-level code that executes every time it is expected to run. In this quickstart, you’ll add a hook that logs the shell commands that Claude Code runs.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of hooks

hooks

Photo of Claude Code

Claude Code

Related news:

News photo

Remote MCP Support in Claude Code

News photo

Why Claude Code feels like magic?

News photo

Snorting the AGI with Claude Code