# The design agent (https://www.dessn.com/docs/working-in-dessn/design-agent)

Ask Dessn's design agent to change a frame, make a new page or state, or try several directions, in your app's own code.

The design agent designs in your app's real code. Ask in your own words and it changes a frame, or adds new frames for
a new page, a state or a few directions to compare, reusing your app's own components. In the app it's called
**Dessn**: its buttons say **Ask Dessn**, and you talk to it in **threads**.

## Ask for a change
<Steps>
<Step>

### Pick what to change
Select a frame and press ⌘Enter (**Ask Dessn**), or press **New thread** in the left sidebar. To point at one part of a
page, press **Select** (E) and click the parts you mean.

</Step>
<Step>

### Say what you want
Type your ask and press Enter. Attach screenshots or files with **Attach files**. Not sure where to start? Try one of
the suggestions: **Create 3 variants**, **Map out the entire flow**, **Show me all the states** or **Review and fix**.

</Step>
<Step>

### Watch it work
The thread shows what it's doing and for how long. A small edit takes seconds; a new page or several directions take a
few minutes. You can keep working, close the thread, or press **Stop generating**. A message you send while it works
waits its turn.

</Step>
</Steps>

When it's done, the changed or new frames are on the file, and each change is a [version](https://www.dessn.com/docs/working-in-dessn/frames#versions)
you can go back from. Reply in the same thread to keep refining.

## Good asks
- Name the page and the change: "On Settings, move billing into its own tab."
- Ask for options when you're exploring: "Three directions for the empty dashboard, one bolder."
- Ask for states: "Show checkout with a declined card, and with a long address."
- Ask it to map a flow: "Lay out sign-up as frames joined by arrows."
- Refer to your design system: "Use our Button and Card, not new ones."

The design agent follows the instructions in your repository's `AGENTS.md`, `CLAUDE.md` or `DESIGN.md`.

## Threads
Threads are listed in the left sidebar under **This file**. Open one to read along, reply or pick up where someone left
off.

## Petal and the design agent
[Petal](https://www.dessn.com/docs/getting-started/petal) is your guide: she's beside your Library, answers questions about Dessn and
your project, and starts design work for you. The design agent does the work, in a thread on a file.

## What it costs
Design work uses [credits](https://www.dessn.com/docs/billing#how-credits-are-counted). A prompt usually uses 1 to 5; big asks, like several
directions at once, can use 10 or more. When you're close to your last credits, Dessn says so before you send. Your own
[coding agent](https://www.dessn.com/docs/mcp) on your computer (Claude Code, Codex, Cursor) can also change frames, and its own edits use
no credits.
