# Composer

The composer is a text box for writing long prompts and commands, with files
and images. It sends to the active terminal, or to every visible terminal in
the project. Handy for AI agents.

## Use it

| Action | Default shortcut |
| --- | --- |
| Open or close | `Cmd+I` |
| Enhance prompt | `Cmd+Opt+E` |
| Send and press Return | `Cmd+Return` |
| Send without Return | `Cmd+Shift+Return` |
| Close | `Esc` |

- Sending first clears the terminal's prompt with `Ctrl+U`, in programs that
  support it.
- With text selected, only the selection is sent.
- **Send to All Split Panes** in the **…** menu sends to every pane you can see
  in the project. If one of them isn't a live terminal, such as an extension
  tab, nothing is sent.
- A failed send keeps the draft. Some terminals may already have received it,
  so check before retrying.
- Each project keeps its own draft, saved across restarts.
- The sparkles button (or `Cmd+Opt+E`) rewrites the draft with the AI CLI
  chosen in **Settings → AI → Prompt Enhancer** and shows a preview so you can
  choose **Replace**, **Append Below**, or **Discard**. Auto uses the first
  installed CLI, an empty model uses that CLI's default, and **Prompt
  instructions** starts with a built-in default you can edit or reset with
  **Restore Default**. If the draft changes while the rewrite is running, Muxy
  keeps what you wrote. An empty draft is left alone.

## Files and images

Attach with **Attach File**, drag and drop, or paste.

- Files are inserted as quoted paths.
- Images appear as `[Image N]`. By default they are put on the clipboard and
  sent with `Ctrl+V`, which AI tools read. Set **Settings → Composer → Image
  submission** to paste file paths instead.
- For [remote](remote-servers.md) terminals, attachments are uploaded and the
  remote path is sent.

## Layout

The composer opens as a panel on the right or bottom, or as a floating box
that closes after sending. Switch from its **…** menu, which also has
**Clear After Sending**, **Clear on Close**, and **Reset Composer Size**.
`Cmd+=` and `Cmd+-` change its font size.
