# Annotate

Point at an element, an area or lines of code, leave a note for your team or for Lyna AI, mention people and agents, and follow every note in the Annotate tab.

Annotate lets you point at what to change and say it right there: on an element of your page, on an area you draw, or on lines of code. Post the note as a thread for your team, or send it to Lyna AI with what the element is, where it lives in your code and a picture of it.

The canvas with Annotate on: an element outlined with a note card open under it, the hint row at the bottom, a pin on another element, and the Annotate tab open on the right.

## What you can do

- Turn on Annotate with **Annotate** in the bottom bar, or press `M`.
- Click an element, add more with `Shift`, or drag over an area and draw on it.
- Leave a note on one or more lines of code, in an open file or while you review changes.
- Type `@` to mention a teammate, who is told right away, or an agent, which takes on the work.
- Post a note for your team, send it to Lyna AI, or collect several notes and send them at once.
- Reply, resolve, mute, re-attach or delete threads in the **Annotate** tab, filtered by **Open**, **Mentions**, **Mine** or **Resolved**.
- Get your mentions, replies and AI answers in the notifications inbox, by email or as a browser notification.
- Leave notes from your phone.

## Leave a note on an element

1. ### Turn on Annotate

   Choose **Annotate** in the bottom bar, or press `M`. The first time, a card titled **Point at what to change** explains how it works: choose **Try it** or **Not now**. While Annotate is on, a row of hints at the bottom shows the keys, with **Exit** at its end.
2. ### Pick the element

   Move the pointer over your page: the element under it is outlined, with its name. Press `Up` or `Down` to move to its parent or its child. Click to open a note card under the element.
3. ### Write the note

   Type in **Write a note, @ to mention**. Then choose **Comment** to post it as a thread for your team, or **Send to AI** to hand it to Lyna AI. A posted note shows a pin on the top right corner of its element.

Every gesture while Annotate is on:

| Gesture                                | What it does                                                                                  |
| -------------------------------------- | --------------------------------------------------------------------------------------------- |
| Click                                  | Opens a note on the element.                                                                  |
| `Shift` + click, or `Cmd/Ctrl` + click | Adds an element to the note, or takes it out. A note holds up to 20 elements.                 |
| Drag                                   | Draws an area. `Shift` makes it a square, `Alt` (`Option` on a Mac) draws it from its center. |
| `Alt` + click                          | Adds the element to the chat, or to the note that is open.                                    |
| Double-click                           | Edits the element's text in place.                                                            |
| `Up` / `Down`                          | Moves the outline to the parent or the child element.                                         |
| `Esc`                                  | Closes the innermost thing first: a drag, a text edit, the `@` list, the note, then Annotate. |

A note that holds text stays open when you click elsewhere. An empty note moves to the element you click.

### The note card

- **Add to batch** keeps the note for a later send instead of posting it. See [Send several notes at once](#send-several-notes-at-once).
- **Edit styles**, on a note about one element, selects the element with its styles open.
- **Dictate** turns your voice into words, in browsers that support it.
- When the card has no room under or above its element, it docks at the side: **Show element** brings the element back into view.

| Key in a note      | What it does                                                                    |
| ------------------ | ------------------------------------------------------------------------------- |
| `Enter`            | Posts the note, or adds it to the batch when **Add to batch** is on.            |
| `Shift + Enter`    | Starts a new line.                                                              |
| `Cmd/Ctrl + Enter` | Sends the note to Lyna AI.                                                      |
| `Cmd/Ctrl + L`     | Moves the note to the chat's message box, without sending it.                   |
| `Cmd/Ctrl + Z`     | Undoes your last mark or the note's text, else the last change of your project. |

## Mark an area

Drag over your page to draw a box around what you mean, such as a gap or a group of elements. The note opens on that area, and the markup tools show above the hint row: **Draw**, **Ellipse**, **Rectangle**, **Arrow** and **Undo mark**. A note sent to Lyna AI carries a picture of the area with your marks.

An area drawn over a section of the page with an arrow and an ellipse on it, the markup tools above the hint row, and the note card open beside the area.

## Mention people and agents

Type `@` in any note or reply. A list opens where you type, with **People** first, then **Agents**. Type a few letters to narrow it (case and accents do not matter), move with `Up` and `Down`, and press `Enter` or `Tab` to pick. The pick becomes a colored chip, and a line under the field says who will be told and which agent will answer.

A note card with the @ list open under the text, showing People with their avatars, then Agents, and the line under the field that says who will be told.

- **A teammate** you mention is told right away, in their notifications inbox, and by email or browser notification if their settings allow it. Only a name picked from the list counts: `@name` typed or pasted stays plain text and tells nobody. The list never offers you.
- **An agent** you mention takes on the note: it starts the work, and its answer is posted back in the thread, signed by the agent, with **Show more** on a long answer. Starting an agent needs edit access to the project.

You can also mention people in the chat. See [Mentions and context](/features/ai/mentions-and-context).

## Send notes to Lyna AI

**Send to AI** sends the note in one chat message: your words, what each element is (its tag, its text and its component), where it lives in your code, and a picture of it. Lyna AI reads the note with the rest of the chat. If it is already working, the note joins the running turn, or waits for the next one when it carries a picture.

On a thread that is already posted, **Send to AI** sends the note with its replies. Lyna AI posts its answer back in the thread, and the card shows where it is: **AI queued**, **AI working**, **AI needs input**, **AI answered**, **AI stopped** or **AI failed**. **View in chat** opens the chat message.

A send needs a model chosen in the chat, and your role in the project must allow you to use its AI.

### Send several notes at once

1. ### Collect the notes

   Turn on **Add to batch** in the note card, then choose **Comment** or press `Enter`. The note closes, and a numbered pin shows on its element. Do the same for each change you want. A batch holds up to 12 notes.
2. ### Check the list

   The **Annotate** button in the bottom bar becomes **Send (n)**. Open the arrow beside it, or click a numbered pin, to see **Pending notes**. The arrow keys move between notes, and `Delete` removes the one that has the focus. **Clear all** empties the batch.
3. ### Send them

   Choose **Send (n)** or **Send all to the AI**: Lyna AI gets every note in one message, numbered in order. To share them with your team instead, choose **Post all as comments**: each note becomes a thread.

Three numbered pins on elements of the page and the Send (3) button in the bottom bar with the Pending notes list open above it.

The batch stays in this browser until you send it, and signing out clears it.

## The Annotate tab

The switch at the top of the right panel moves between **Chat** and **Annotate**, with a dot when a thread has news for you. Clicking a pin on the canvas also opens its thread in this tab.

The Annotate tab with the Open, Mentions, Mine and Resolved chips and their counts, the Place and Sort menus, and note cards with their place, first words, replies and AI state.

- **Open**, **Mentions**, **Mine** and **Resolved** filter the notes, each with its count.
- **Place** shows **All places**, only the **Canvas**, or only the **Code**.
- **Sort** orders the notes by **Newest**, **Oldest** or **Latest activity**, and **Group by place** groups them by page or by file.
- **Pending** lists the notes of your batch, with **Send to AI**, **Post all** and **Clear all**.
- Each card shows where the note is, its first words, its replies and the state of Lyna AI, with **Resolve** and **Send to AI**. **Detached** means its element is gone from the page, and **Outdated** that its code changed.

Open a card to read its thread:

| Action                             | How                                                                                                                               |
| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| Reply                              | Write in **Reply, @ to mention someone**, then choose **Reply**, or **Reply and send to AI** (`Cmd/Ctrl + Enter`).                |
| Go to the note                     | **Show** selects the element on the canvas and brings it into view. On a code note, **Open in code** opens the file at its lines. |
| Resolve or reopen                  | **Resolve**, or **Reopen** on a resolved thread.                                                                                  |
| Stop the notifications of a thread | **Mute this thread**. A direct mention still reaches you. **Unmute this thread** turns them back on.                              |
| Move a note to another element     | **Re-attach**, on a detached note: Annotate turns on, then click the new element.                                                 |
| Share a thread                     | **Copy link**. The link opens the thread for anyone who can open the project.                                                     |
| Delete                             | **Delete thread** in **More actions**, or **Delete** on a message of yours. Both ask first and remove it for everyone.            |

**All notes** goes back to the list. Pins of open threads show on the canvas even when Annotate is off, and several threads on one element share one pin with their count.

## Notes on code

1. ### Pick the lines

   In **Code** mode, open a file and point at a line: a **+** shows beside its number. Choose it (**Add a note on line N**), or `Cmd/Ctrl` + click the line number. To note several lines, select them, right-click and choose **Add Annotation**. A note covers up to 60 lines.
2. ### Write the note

   Type in **Write a note on this code, @ to mention**, then choose **Comment** or press `Enter`, or **Send to AI**.

The thread sits between the lines, under the last one. Choose its row to open it, then **Add reply...**, **Resolve** or **Reopen**, and **Send to AI**. The thread follows the code as it changes. When its lines change, it reads **The code changed since this note was written.** and stays near its old place. Notes on the page's elements also show in the code, on the line where the element is written.

The same threads show on the changes page and in the diff of a file, with the **+** on each line. See [Agent Review](/features/code/agent-review#notes-from-your-team).

A file open in the code editor with a note thread between two lines and its replies, and the Comments view in the left column listing the notes by file.

**Comments** in the views rail lists every note on code, by file, with the number of open notes on its icon:

- Filter with **Open**, **Resolved**, **All**, **Mentions** or **Mine**, or type in **Search comments**.
- Choose a row to open its file at the note. **Previous comment** and **Next comment** walk through them, and **Collapse all files** folds the list.
- Point at a row for **Resolve**, **Reopen** and **Send to AI**.

## Notifications

A mention, a reply in a thread you take part in, and an agent's answer to your note reach the bell of the notifications inbox as they happen. Your settings choose which of them also reach you by email or as a browser notification. See [Notifications](/features/account/notifications).

## Annotate on a phone

1. ### Turn it on

   On the preview, choose **Annotate** in the top bar. Tap an element of your page to open **New note**.
2. ### Write the note

   The row at the top moves the note to the parent or the child element. **Add element**, then a tap on another element, adds it to the note: choose **Done** when you have them all. Then choose **Comment**, **Send to AI**, or turn on **Batch** and choose **Add to batch**.
3. ### Send or leave

   The bar at the bottom holds **Undo**, **Send (n)** for your batch and **Exit**.

Choose **Annotate** again while it is on, or **Comments** in **Chat actions**, to open **Notes**, filtered by **Open**, **Mentions**, **Mine** or **Resolved**. Open a note to read it, reply, **Resolve** or **Reopen** it. Drawing an area is only on a computer.

A project open on a phone with Annotate on: an element outlined on the preview and the New note sheet with the note field, Add element, the Batch switch, Send to AI and Comment.

## Who can do what

- Everyone who can open the project, viewers included, can read notes, write them and reply.
- The author of a thread or an editor of the project can delete the thread or re-attach it. Each person deletes only their own messages.
- Sending a note to Lyna AI follows your role in the project, and a mentioned agent starts only for someone who can edit the project.

> [!NOTE]
>
> **Comments in the Explore gallery**
>
> Public projects in the Explore gallery have their own comment thread under each project page. See [Explore gallery](/features/collaborate/explore-gallery#comments).

## Shortcuts

| Action                        | Shortcut           |
| ----------------------------- | ------------------ |
| Turn Annotate on or off       | `M`                |
| Post the note                 | `Enter`            |
| New line                      | `Shift + Enter`    |
| Send the note to Lyna AI      | `Cmd/Ctrl + Enter` |
| Move the note to the chat     | `Cmd/Ctrl + L`     |
| Parent or child element       | `Up` / `Down`      |
| Add or remove an element      | `Shift` + click    |
| Add the element to the chat   | `Alt` + click      |
| Close the note, then Annotate | `Esc`              |

## Related

- [Notifications](/features/account/notifications): The bell, the inbox, email and browser notifications.
- [Agent Review](/features/code/agent-review): Let an agent find issues in your changes.
- [Canvas](/features/design/canvas): Select and edit elements.
- [Chat](/features/ai/chat): Hand a change to Lyna AI.
