Cmd. /hooks
Shows configured hooks and their triggers. Editing a hook changes what runs when its event occurs.
Key takeaways
- Inspect hook configuration and events.
- Check the input surface and availability before using the examples below.
Purpose
Inspect hook configuration and events.
/hooksAvailability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Current reference |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-09-22 · Claude Code 2.1.278 |
The installed command menu and account or organization settings determine availability.
Examples
/hooksEffects and persistence
Shows configured hooks and their triggers. Editing a hook changes what runs when its event occurs.
Cautions
Inspect event, command, and scope together. A hook can execute whenever its configured event occurs.