Build with AI

Mentions and context

Type @ to add files, folders, a web page, your Git changes or current problems to a message, so the AI looks in the right place. The same menu adds components, blocks, templates, people and agents.

Use @ to point the AI at the files, pages and changes your message is about. The AI can search your project on its own, but pointing it to the right place makes answers faster and more precise.

What you can add with @

OptionWhat it adds
FilesOne or more files from your project.
FoldersA whole folder.
URLA web page. Lyna fetches it and adds its content.
Git ChangesYour current staged and unstaged changes.
ProblemsThe current errors and warnings from diagnostics.

Add a mention

  1. Type @

    In the composer, type @. The menu opens on All. Choose Files, folders and links at the end of the list, or press → until Files. A word with a / or a . after the @, such as @src/routes or @button.tsx, opens the file list at once.

  2. Pick an option

    Use the arrow keys to move and Enter to select.

  3. Choose what to add

    Search for the file or folder, or paste the URL and choose Add.

The mention appears in your message. You can add several.

Components, blocks, templates, people and agents

The same @ menu lists the components, blocks and site templates of Lyna's library, with a picture and a live preview of each, the people of the project and your agents. Pick one to build with that exact item, to mention a teammate or to give an agent the task. See References with @.

Other ways to give context

  • Select an element on the canvas before you write. The AI gets the element and its code location.
  • Add to AI chat with Cmd/Ctrl + Shift + L to send the current selection.
  • Attach a screenshot or an image. See Attachments and screenshots.
  • Knowledge, rules and memory give the AI lasting context on every turn. See Knowledge and memory and Rules.

See how full the context is

Everything you mention fills the model's context window, along with the conversation itself. The context meter, right above the message box, shows how much of the window your next message will use, for example 119k / 200k. Its bar has two parts: what is sent with every message (Lyna's instructions) and your conversation.

Its label says what happens next, such as Compacts soon or Compacts next message. Select the meter, or type /context, to see what fills the context, part by part.

When the conversation gets full, Lyna compacts it on its own: it replaces the older part with a summary and keeps your latest messages. To do it yourself, type /compact. To start fresh, choose New Chat: your earlier conversations stay in the History.

Every label of the meter, the context details and compaction are explained in Chat history and context.

Need help?

Ask the team, read what changed, or learn from the blog.