Plugins can now implement a prompt.attachment hook to rewrite or remove text attached to a message before it reaches the model
What
Claude Code adds a new hook event type, prompt.attachment, that plugins can implement to inspect and change text attached to a user's message. A hook can rewrite the attachment's text or leave it out entirely before it reaches the model. Claude Code logs what changed and which plugin or hook made the change, including whether the origin was the plugin, a hook, or the engine's own default handling.
Why This lets plugins control what attachment content actually gets sent to the model, for example filtering or transforming pasted content before use, with a record of what was changed and by what.
Whether `prompt.edit` does anything yet is unclear, since it appears in the event list without any visible dispatch wiring.