Commit a578548
feat: add notification hook for user input prompts (#1415)
* feat: add notification hook for user input prompts
Add Linux desktop notification hook that triggers when Claude Code
is awaiting user input. This is the first hook implementation in the
project and establishes the pattern for future hooks.
The hook uses notify-send to display system notifications in two scenarios:
- When Claude requests tool usage permission
- When the prompt input remains idle for 60+ seconds
Configuration added to .claude/settings.json (version-controlled) to
make notifications available project-wide.
Closes #1414
* docs: add comprehensive hooks configuration documentation
Add detailed hooks section to claude-code-settings.md explaining:
- Hook structure and syntax
- Available hook events and their purposes
- Matcher field behavior with comparison table
- Important distinction between empty string and wildcard matchers
- Current notification hook configuration and prerequisites
- Security best practices for hook implementation
This documentation establishes the pattern for future hook implementations
and clarifies the non-intuitive empty string matcher for Notification hooks.
* refactor: simplify hooks documentation to link official docs
Replace detailed hook documentation with links to authoritative sources:
- https://docs.claude.com/en/docs/claude-code/hooks
- https://docs.claude.com/en/docs/claude-code/hooks-guide
Keep only project-specific information about implemented hooks.
Avoids duplicating official docs that may change over time.
* Update .claude/settings.json
Co-authored-by: amazon-q-developer[bot] <208079219+amazon-q-developer[bot]@users.noreply.github.com>
---------
Co-authored-by: amazon-q-developer[bot] <208079219+amazon-q-developer[bot]@users.noreply.github.com>1 parent fed54d0 commit a578548
2 files changed
Lines changed: 52 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
68 | 81 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
58 | 96 | | |
59 | 97 | | |
60 | 98 | | |
| |||
0 commit comments