Files
cindy/apps/desktop/help-knowledge/attachments.md
fmfsaisai e6a2c44af0 feat(desktop): 添加目录先列最近使用的目录,再打开系统选择器
对话区「+」里的「添加目录…」改为在面板内打开「添加目录」二级页:先列出最近
使用的项目目录,点一下即加为可读写目录;底部「选择其他文件夹」才打开系统
选择器。标题旁注明「Agent 可读写」。

Main 新增一条可写授权来源:只认 recent_workdirs 里原样保存且磁盘上存在的
路径,与把它选作任务工作目录同等范围;系统选择器授权与保存时的校验不变。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-11-03 15:28:56 +08:00

3.7 KiB

id, title, summary
id title summary
attachments Attaching files and images, and referencing code Paste / drag images and files, use the composer's + / @ panel to attach files, reference files, tasks, browser tabs and more, and add extra directories the agent can work in.

You can give the agent more than plain text.

Images and files:

  • Paste an image from the clipboard (e.g. a screenshot), or drag files onto the composer / task window. You can also open the composer's + menu and choose Add files, images, or videos… to pick files from the OS dialog.
  • Images (PNG, JPEG, WEBP, GIF) are sent to the model as images. Other files (PDF, Office documents, code, text, videos, etc.) are attached by path, and the agent opens or reads them as needed.
  • Attachments appear above the input. Click an image to open a full-screen preview; click a text / code file to preview its contents. Hover a thumbnail and click × to remove it.
  • Pasting a copied folder inserts it as a folder reference instead of an attachment.
  • Pasting a very long block of text (about 24+ lines or 4,000+ characters) folds it into a Pasted text chip; click the chip to view or edit it.
  • Local file attachments aren't available in tasks running on an SSH remote host — paste the content directly instead.

The + menu and @ mentions:

  • Clicking + (left of the composer toolbar) and typing @ open the same panel. It lists actions — Add files, images, or videos…, New goal, Plan mode, Collaboration, and Add directory… — followed by your installed plugins and the task's extra directories. Type to filter; ↑ / ↓ and Enter select.
  • Things you can reference with @:
    • Files and folders in the task's working directory (extra directories aren't scanned by the picker).
    • Agents defined in the project.
    • Tasks — type a keyword to find past tasks and reference them.
    • Teammates — "Message or delegate" to one of your teammates.
    • The current task's built-in browser tabs and open app windows on this computer (local tasks only).
    • Plugin commands and plugin resources.
  • Matching favors names that start with what you typed, then falls back to in-order fuzzy matching on names and paths.

Extra directories:

  • Choose Add directory… in the + menu to open the Add directory page. It lists your recent project directories (the same list as the project picker; search appears when there are 5 or more) — click one to add it. Choose a different folder at the bottom opens the OS dialog. The agent can read and write in added directories, in addition to the working directory. Added directories are listed under Directories in the same panel; hover one to remove it.
  • The recent list leaves out directories that are already added, no longer exist on disk, or are the working directory, one of its subdirectories, or one of its parents. To add a parent directory, use Choose a different folder. Press Backspace in the empty search box, or the back arrow, to return to the main panel.
  • Per task; up to 10 extra directories (Limit reached (10) when full). Available for local Claude Code, Codex, and Pi tasks; not available for SSH remote or linked-device tasks.
  • Choosing a subdirectory of the working directory is silently skipped (already covered). Choosing a parent / ancestor directory asks you to confirm first, because the agent could then modify everything inside it.

Notes:

  • Attachments are sent with that one message only; they're not implicitly re-included on later turns.
  • An @ reference just inserts a reference into your prompt — it's the agent's job to actually open / read the referenced item.