Unclear Which hook event fires for an @-mentioned file is not stated, so it is unclear which hook to configure.
What
When you @-mention a file (type @ followed by a file name in your message so Claude reads that file), Claude Code now handles it differently in two ways:
- Hooks now see @-mentioned file reads. A hook is a script or command you configure to run automatically at certain points. The file read now goes through a hook pipeline, and any context the hooks return (
hookContexts) is added to the result. Before, the file was read directly and hooks were not involved. - Files over the size limit are no longer silently dropped. Instead, Claude gets an
at_mention_referencemarked as unread with the reasontoo_large. Before, nothing was returned for such a file. Files that were already read are also now split out and handled separately.
Why
Hooks can now inspect @-mentions and add extra context of their own. When a mentioned file is too big to read, Claude is told the file exists but was not read, rather than having no sign of it at all.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
Which hook event fires for an @-mentioned file is not stated, so it is unclear which hook to configure.