# Chat modes

Build makes changes, Plan discusses and writes a plan first, Ask answers without editing. Learn when to use each mode.

The mode menu in the composer sets what the AI does with your message. There are four modes.

The mode menu with Build, Plan, Ask and Directions, each with what it does.

| Mode           | In the menu                                 | What it does                                                                                                                                          |
| -------------- | ------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Build**      | Changes your project                        | Reads the project, edits files, runs commands and checks the result. This is the default.                                                             |
| **Plan**       | Writes a plan you approve                   | Investigates the project and writes a plan you can review, edit and approve. No code changes.                                                         |
| **Ask**        | Reads and answers, changes nothing          | Reads your project, its history and the preview, explains code and suggests approaches, with links to the exact lines. No code changes.               |
| **Directions** | Shows real design proposals, builds nothing | Asks a few short questions about the look, then shows up to four design proposals as real pages for your site or your app. The one you pick is built. |

## Switch modes

- Open the mode menu in the composer and pick a mode.
- Press `Cmd/Ctrl + .` to open the mode menu.
- Press `Shift + Tab` in the composer to turn Plan mode on or off.
- Type `/build`, `/plan`, `/ask` or `/design`.

## Build

Use Build for clear, contained changes: a new section, a style fix, a form, a new page. The AI works until the change is done, then leaves a version card you can preview or revert.

```text
Add a contact form on the Contact page with name, email and message.
Show a success message after sending.
```

## Plan

Use Plan for larger or riskier changes, when you want to shape the approach first. When your Build message looks complex, the composer may suggest **This looks complex. Plan it first?** Choose **Switch to Plan** to accept.

1. ### Describe the goal

   Write what you want to achieve. The AI may ask you questions, with up to two question cards per message in Plan, or offer approaches to choose from. See [Questions, approvals and errors](/features/ai/questions-approvals-and-errors).
2. ### Review the plan

   The card fills in while Lyna AI writes the plan, marked **Writing**, and turns **Ready** when it is done. The steps come first, numbered and grouped by phase. A step that waits for another shows **After 1**. **Details** holds the approach and the key files. Switch between the **Plan** and **Markdown** views at the top of the card. Add, edit or remove steps, or mark one done yourself.

   A plan card with its numbered steps, the Details section and the Build plan button.
3. ### Build or keep planning

   - **Build plan**: switches to Build and builds the steps in order. Choose **Choose steps** to pick some of them, then **Build 2 steps** (the number is how many you picked).
   - **Keep planning**: ask for changes. Lyna AI revises the same plan, and your edits to its steps stay.
   - **More actions**: export the plan to your project as a file you own, duplicate it, or archive it.

While Lyna AI builds, the card folds and the steps above the composer show the progress, for example "3 of 5 todos completed". A step is marked done only when its work ran. When every step is done, the list reads "Plan built: 5 of 5 steps". A build that stopped halfway shows **Resume**, which builds only the steps still open.

## Project plans

Every plan is saved with your project. A follow-up question, a mode switch or a reload never hides or replaces a plan, and a new plan leaves the earlier ones as they were.

- Open **Project plans** from the chat header, the command palette or `/plans`. It lists every plan of the project, newest first, with the **Active**, **Built** and **Archived** filters and a search.
- For each plan: **Open**, **Build** or **Resume**, **Rename**, **Duplicate**, **Export to project**, **Archive** or **Restore**, and **Delete**.
- While a chat has an active plan, a chip above the composer shows its name and progress. Open the plan from it, or hide it from this chat.
- Restoring an earlier version of your project reopens the steps whose work it undid.

## Ask

Use Ask to understand before you change anything:

```text
How does the booking form send its data? Which files are involved?
```

Ask can look at your Git history, search the code, check the preview and run a type check. When an answer talks about your code, it names the file and the line: select `src/components/header.tsx:42` to open the code at that line. When an answer proposes a change, it ends with **Plan this** and **Build this**, which carry your question and the answer to that mode. The mode changes only when you choose one.

Ask is also the safest way to get a second opinion on an error. Nothing in your project changes.

When Ask needs a choice from you, it asks with the same question card as the other modes, one card per message. When you ask again about something it answered earlier, it gives the answer again in its reply, instead of pointing you back to the earlier one. After you send your answers, the card stays steady while Lyna AI's reply comes in. When you then choose **Build this**, the work and its version are named after your request, not after your answers.

## Directions

Use Directions to see real designs before anything is built:

```text
I want a fresh look for my bakery site. Show me what it could be.
```

Lyna AI asks one or two short questions about the look, then shows up to four proposals, each drawn as a real page with its colors, fonts and layout. An app gets app screens (a dashboard, a list and its details, a settings page) instead of a landing page.

A design proposal in the chat, drawn as a real page with its colors, fonts and layout, with its name, why it fits and its style chips.

- Open a proposal in full screen to look at it closely.
- **Decline** a proposal you do not want: it stays in place, dimmed, with **Undo**.
- **New set** draws up to four new proposals. It says what it costs before you press it, at the **Proposal quality** you have.
- Pick a proposal, or **Let Lyna pick**: Lyna AI switches to Build and builds it with that look.

A bug report, a question or a request to build is not about the look: Lyna AI answers it directly, or offers to switch to Build.

Directions never changes your project on its own. When a question about the look comes up in Build, **Show me real designs** draws the pages there too, and says first what it costs.

> [!NOTE]
>
> **Which mode should I use?**
>
> Not sure what to change? Start in **Ask**. Know what you want but it touches many files? Use **Plan**. Clear, small change? Use **Build**. Not sure about the look? Use **Directions**.

## Related

- [Chat](/features/ai/chat): Everything in the chat panel.
- [Roadmap and tasks](/features/ai/roadmap): Track larger work as features with their tasks.
- [Agent teams](/features/ai/agent-teams): Split big jobs across parallel agents.
- [Prompting best practices](/prompting/best-practices): Get better results.
