/hooks
A Claude Code slash command, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
What it is
View [hook](/docs/en/hooks) configurations for tool events
Anthropic's own wording. Read off Commands, captured 2026-08-28.
Presence across releases
The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Changelog entries naming it
-
v2.1.247Device-hooks consent gains a distrusted outcome when the saved answer's file cannot be checked
If your saved hooks-sharing answer can't be verified, you're asked to decide again in /hooks.
named in this entry
-
v2.1.246Cloud sessions can run this machine's hooks, once you have agreed locally
Cloud sessions can run your local hooks once you agree on this machine; run /hooks to decide.
named in this entry
-
v2.1.246Clearer warning when a saved hooks answer cannot be reused in a cloud session
The warning about a set-aside hooks decision in a cloud session is now one short line pointing at /hooks.
named in this entry
-
v2.1.242A planner deciding, hook by hook, what a cloud session gets, plus a /hooks panel for it
A planner decides which of your hooks a cloud session gets, with a /hooks panel to review it.
named in this entry
-
v2.1.242Per-machine decision about whether cloud sessions may run your hooks
A Hooks settings row lets you decide whether cloud sessions may run this machine's hooks.
named in this entry
-
v2.1.219New DirectoryAdded hook event
You can now run a hook whenever a directory is added mid-session, including via /add-dir.
named in this entry
Documentation pages
- Commands reference table Claude Code CLI
- How the agent loop works mentions it Claude Code CLI
- Use Claude Code features in the SDK mentions it Claude Code CLI
- Intercept and control agent behavior with hooks mentions it Claude Code CLI
- Modifying system prompts mentions it Claude Code CLI
- Observability with OpenTelemetry mentions it Claude Code CLI
- Agent SDK overview mentions it Claude Code CLI
- Configure permissions mentions it Claude Code CLI
- Agent SDK reference - Python mentions it Claude Code CLI
- Quickstart mentions it Claude Code CLI
- Streaming Input mentions it Claude Code CLI
- Agent SDK reference - TypeScript mentions it Claude Code CLI
- Handle approvals and user input mentions it Claude Code CLI
A reference table page is one whose own table defines this name, and it is where the description above came from. A page that mentions it carries the name somewhere in its text and may say nothing about it at all. Every page carrying it.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the slash command does. All slash commands.