Layout
On a computer, the editor has two panels:- Chat on the left, where you talk to the AI.
- Workspace on the right, with tabs for the preview, code, data and more.
Header
The header above the chat shows:- A back arrow (Back to Apps) that returns to the Apps page.
- The app’s icon and name. Click the name to rename the app. Renaming doesn’t change the app’s URL.
- + (tooltip “Create a new conversation”). Starts a fresh conversation with the AI.
- The history button (tooltip “Show conversation history”). Opens Conversation History, where you switch to an earlier conversation or delete one. You can’t delete the last remaining conversation.
Chat with the AI
Type in the box (“Ask me anything…”) and pressEnter to send. Shift + Enter adds a new line. Ask for changes, or ask questions about how the app works:
How does the approval flow decide who gets notified?
Choose a model
The model selector at the bottom of the message box defaults to Auto, which picks a suitable model for each conversation. You can pick a specific model instead. See AI models. Your model choice is a personal setting. It applies to every app you build and doesn’t change anything for other builders or for coworkers.Attach images
Open the + menu and choose Upload image, or paste or drag an image into the chat. You can attach up to 10 images per message, 5 MB each. Screenshots of a design you like or of an error are both useful. The app chat accepts images only, not documents. The same + menu has Connect integration, so you can connect a tool without leaving the editor. Icons for your connected integrations sit next to it.While the AI works
While the AI works, the top of its reply shows what it’s doing right now and how long it has been working, for example “Editing page.tsx…” or “Running tests…”. Each finished step becomes a line in the reply, such as “Ran type check” or “Installed react-flow”. Some steps stand out:- Exploring: … / Explored: … — the AI is reading through your code to answer a question before it changes anything.
- Coding: … / Coded: … — the AI handed a piece of work to a coding helper.
- Large file detected, optimizing… — a file grew past 800 lines, so the AI splits it into smaller files. This happens automatically and keeps the code easier to change.
What the AI can do
The AI can:- Read, search, create, edit and delete files.
- Install packages from Duet Agents’s approved list. See Tech stack.
- Create and change tables in the app’s database, and query other databases your organization has connected, including shared organization databases.
- Run data queries and custom APIs, and use your integrations and MCP servers.
- Run the app’s unit tests and type checks.
- Open the preview in a browser, click through it and take screenshots to check its work. It also looks for runtime errors, text that’s too small or hard to read, and images that don’t load. You see steps like “Opened app preview” and “Inspected app preview”, often with a screenshot.
- Restart the preview and read its logs.
- Publish the app, check its publish status and read publish logs. See Publishing.
- Show a button to connect an integration or an external database, or to contact support.
- Generate images.
Standing instructions
Instead of repeating the same rules in every prompt, write them down once:- Custom AI Instructions in Settings → Personal → Preferences apply to every app you build, including when a coworker codes on your behalf. They also apply when you chat with coworkers.
- Organization AI instructions in Settings → AI → Models & AI apply to everyone’s apps and to coworkers. Only Owners and Admins can edit them.
README.md. The AI reads the README before it starts new work. See Working with code.
Workspace tabs
The workspace opens with Preview, Code and Data. Add more from the + (Add tab) menu:
A tab loads the first time you open it. When the panel is too narrow for every label, the tabs you’re not on show only their icon. Hover over an icon to see its name.
Close a tab with its × when more than one is open. Duet Agents remembers your open tabs. You can also link straight to a tab by adding
?tab= to the editor URL, for example ?tab=code.
The preview
The Preview tab runs a development copy of your app in a private sandbox. It updates as the AI changes code, and you can click through it like a real user. The bar above the preview has:- Reload preview.
- Screenshot and Select, to point at what you want changed. See Point at what to change.
- A page selector listing the app’s pages. Pages that need a value in the URL, like
/orders/[id], are listed but can’t be selected. Reach them through the app’s own links. - A lock icon to restrict which members can open individual pages. See Access and sharing.
- Full screen / Exit full screen.
- Nobody is signed in inside the preview. Features that depend on the current user show placeholder data there. Check them in the published app.
- The preview and the published app share one database. Records you create while testing show up in the live app. See App data.
- Only people who can edit the app see the preview. To share the app, publish it. See Publishing.
Point at what to change
Instead of describing where something is, show the AI:- Select. Click Select, then click an element in the preview. A box opens under it with the element’s file. If the element has text, click it under Text to edit the wording directly, without the AI (“Text updated”). Or describe the change you want and click Send. View code opens the element’s file at that line in the Code tab.
- Screenshot. Click Screenshot, then drag over part of the preview, or click to capture the whole view. Describe the change and click Send. The screenshot is attached to your message. Retake captures again.
Status messages
When the app shows an error
If the app hits an unhandled error in the preview’s browser, for example a crash that shows the app’s own error page, Duet Agents asks the AI to fix it for you. You see “The preview crashed. Asking the builder to fix it…”, and a message with the error goes to the AI, which fixes it and then carries on with your request. Errors the app catches and handles itself aren’t sent. These automatic fix requests show in the chat as short events, not as your messages, for example “Preview crashed — asking the builder to fix it (1/3)”. Failed builds and failed publishes show the same way (“Build failed”, “Tests failed”, “Publish failed”). Click See details to read the error. Automatic fixes for preview crashes only run after you’ve sent a message since opening the editor. They wait while the AI is busy with a reply, a build or a question for you, and while the editor’s browser tab is in the background. To avoid loops:- The same error is only sent once.
- The AI gets at most three automatic fix requests per message you send.
- Clicking Stop turns automatic fixes off until you send your next message.
- Error Details expands the error log. Copy to clipboard copies it.
- Fix with AI sends the error to the chat as “I’m getting an error: …” so the AI can fix it.
- Retry reloads the preview.
Builds and Auto Build
A build checks that your app compiles and that its tests pass. Auto Build controls whether this happens after the AI’s changes. Find it in Settings → Personal → Preferences (“Build and test the app after changes the builder hasn’t already checked”). It’s on by default.- On: after an AI reply that changes code, Duet Agents builds the app and runs its tests, unless the AI already checked its last change itself. If something fails, the errors go to the AI automatically so it can fix them, up to two times in a row. After that you see “Your app still has errors. Send a message to keep fixing them.” When everything passes, you see “Your app is ready”.
- Off: the preview just refreshes after each change. Run a build yourself with Build app.
The … menu
The … menu at the top right of the workspace has these actions. They only affect the preview, not the published app.
Next to the menu are the Share button (tooltip “Share this app with people at your organization or guests”) and the Publish button. See Access and sharing and Publishing.

