{"version":"2.1.336","anchor":"at-mention-file-reads-now-run-through-hooks","canonical_anchor":"at-mention-file-reads-now-run-through-hooks","heading":"@-mentioned files now pass through hooks and too-large files become references","tier":"notice","area":"Hooks","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/at-mention-file-reads-now-run-through-hooks","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### @-mentioned files now pass through hooks and too-large files become references\n\n@-mentioned files now run through hooks that can add context, and files over the size limit are flagged as unread instead of dropped\n\n**Unclear.** Which hook event fires for an @-mentioned file is not stated, so it is unclear which hook to configure.\n\n**What**\n\nWhen 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:\n\n- 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.\n\n- Files over the size limit are no longer silently dropped. Instead, Claude gets an `at_mention_reference` marked as unread with the reason `too_large`. Before, nothing was returned for such a file. Files that were already read are also now split out and handled separately.\n\n**Why**\n\nHooks 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.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}