All documentation pages

Files and images

You can attach any kind of file (images, PDFs, text, code) to your next message, question, /discuss, /pipeline task or note. AgentDuo copies each file and tells both agents where the copy is.

On this page

Attaching

How to attach files in each interface
InterfaceHow
Desktop appThe attach button, paste an image, or drop files on the composer.
VS CodeThe paperclip, paste an image (Cmd/Ctrl+V), or hold Shift while dragging files from Finder or Explorer onto the composer. A drag from VS Code’s own Explorer carries no file: use the paperclip.
Terminal/attach <path> for each file; /attachments lists the waiting files and /detach <n|all> removes them. The terminal does not read images from the clipboard: save the image, then attach it.

The files wait until you send them with your next message. Sending with an empty input sends the files alone (to the agent named under the input, or as a note while a pipeline works).

Paths in /attach

The terminal reads the path the way a shell reads one word:

duo

/attach notes.md
/attach "~/Desktop/My notes.pdf"
/attach shots/bug\ 2.png
/attach "it's.png"
  • A relative path starts from the workspace; ~/ from your home folder, quoted or not. Write \~ or ./~ for a folder named ~. Nothing is globbed or expanded.
  • A literal ' goes in double quotes; 'it''s' reads as its, as in the shell.
  • On Windows a backslash separates folders and escapes nothing, so a path with spaces goes in quotes (/attach "C:\Users\me\My notes.pdf"), and ~\ is your home folder too.

Limits

Attachment limits
LimitValue
Files per message20
Size of one file20 MB
All files of one message50 MB
Images sent to Claude as images, per call20, each at most 8000 pixels on a side and 5 MB once base64-encoded, 20 MB in all
Images sent to Codex as images, per call20

What the agents receive

  • Every prompt lists the attached files with the paths of their copies, so both agents can read them with their own tools. Whether an agent can make sense of a given binary file is up to it.
  • PNG, JPEG, GIF and WebP images also go to the model as images: to Claude as image blocks of a stream-json message, to Codex with --image=<path>.
  • An image past Claude’s limits, one whose size AgentDuo cannot read, or an SVG goes as a path only, and a warning says so.
  • A later question only lists an earlier message’s files by path; the images are not sent again.

Images and cost

Images are sent again with every call of a /discuss and of a pipeline (each step, retry and repair is a call of its own), which costs tokens and time each time. Attach images to the message that needs them, and prefer a cropped screenshot to a full screen.

Where the copies are kept

  • A conversation’s files are copied, bytes unchanged, into .agentduo/runs/conversations/<id>/attachments/.
  • A pipeline task’s files go into its run’s attachments/ folder, so /resume needs neither the original nor the conversation.
  • Copies are never part of a snapshot or of the diff the reviewer sees.
  • A file waiting to be sent is dropped by /new and when the chat, tab or app closes; a sent one stays. The prompt log (prompt.md) records the text only, never the images’ data.

Note

At a decision, waiting files do not go with your answer: send them with a message first, or choose Decide later and /resume with a note. Your answers.