prompt.attachment
A Claude Code settings key, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
New prompt.attachment hook lets plugins rewrite or remove text attached to a message
Not Anthropic's. This is the line from the earliest changelog entry here that named it, v2.1.277.
In the changelogs
7Releases whose published page names prompt.attachment.
-
v2.1.311
Hooks runtime skips needless work, with two variables to turn this off
The hooks runtime now skips work when only default handlers apply; two environment variables switch the shortcuts off
found in this entry's text
-
v2.1.299
Plugin hook modules get more events and organization policy limits
Plugin hook modules can respond to more events, while plugins people install themselves face limits where an organization manages Claude Code
found in this entry's text
-
v2.1.277
New 'prompt.attachment' hook type lets plugins rewrite or drop message attachment text
New
prompt.attachmenthook lets plugins rewrite or remove text attached to a messagenamed in this entry, found in this entry's text
-
v2.1.277
New plugin hook event: prompt.attachment
Plugins can now hook into 'prompt.attachment' to rewrite or drop attachment text before it reaches the model
named in this entry, found in this entry's text
-
v2.1.277
New prompt.edit / prompt.attachment telemetry validation checks
New validation checks were added for prompt-edit and prompt-attachment telemetry replay data
found in this entry's text
-
v2.1.277
callModel wrapper resolves prompt.attachment hooks before each model call
Model calls now resolve
prompt.attachmenthooks just before each call, if enablednamed in this entry, found in this entry's text
-
v2.1.277
New prompt.attachment resolution wired into query pipeline via th()
Model calls now run a new prompt-attachment resolution step, still skippable via settingsHooksOff
named in this entry, found in this entry's text
First cited
3The earliest release whose published evidence quoted prompt.attachment was v2.1.277, 18 Sep 2026. That is the oldest release this project wrote about it, so it is a floor on the name's age and not the release that introduced it. It is not a presence reading: which builds carried the name is the table below.
Presence across releases
0The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the settings key does. All settings keys.