Claude Code Notification: notices and permission boundaries
Inspect notification types and matchers separately from permission decisions.
Read the notification type and text · Notification hooks do not control permissions · Limit the matcher in a settings copy
At a glance
This page inspects one event contract from official Claude Code hook documentation. Use a reviewed settings copy, inspect event input and output, then observe loading. This run checked synthetic JSON only and enabled no actual hook.
Runtime and applicability
- Article type
- Spec file
- Verified
- Applies to
- Claude Code Applies to the Claude Code hook event documented here.
- Tools
File locations
| Path | Scope | How it is read |
|---|---|---|
.claude/settings.json | Project hooks settings copy; preserve existing configuration. | Read by Claude Code under settings loading and the event contract; not enabled in this run. |
When to use
- Inspect notification types and matchers separately from permission decisions.
When not to use
- The event or required fields are unclear, or a local JSON check is expected to replace permission and execution evidence.
Read the notification type and text
Notification input contains message, notification_type and optional title. A matcher selects a notification type such as permission_prompt rather than a tool command. Establish which notices to record. A permission-prompt notice does not establish tool approval or execution.
Notification hooks do not control permissions
Documentation says Notification hooks cannot block or modify notices. systemMessage and continue are discarded, while terminalSequence can still produce terminal-notification effects. Inspect the permission event contract for control. Returning continue=false here does not deny a call, and forwarding a notice does not approve it.
Limit the matcher in a settings copy
In a settings copy, inspect hooks.Notification matcher and command path and record only required notification_type values. Types have distinct triggering conditions, without identical notices for every request, instant of idleness or client. This page installs no script and sends no desktop or external messages. Inspect current documentation and client before enabling.
Only synthetic notices were filtered locally
Local exact-type filtering retained permission_prompt and excluded idle_prompt from two synthetic notices, preserving an absent title. No Notification hook was triggered. Inspect types, triggering and delivery in logs, with separate event evidence for permission effects. Stop new forwarding when the destination or content is unclear.
Sources
All links are official pages; verification dates are listed per source, and links point to the version checked.