Agent notes
A layer can carry notes written for agents. Select the layer and add Notes for AI at the bottom of the Design panel; the section holds two fields:
- Context — what the layer means or does, such as "opens the sign-up dialog". Agents read it when a message concerns this layer: the layers the message mentions and the selection, or the whole page when there are none.
- Prompt — a request about this layer. Run prompt sends it to the chat, so a request you repeat often does not need retyping.
The plus button adds the notes, the minus removes them. Notes are saved in the file with the layer, and a .pen file's context notes and prompt cards are read the same way.
The full rules — which messages carry which notes, and how agents treat context versus prompts — are in the AI chat guide.