Files
What you can do
Section titled “What you can do”The Files Pane shows the worktree’s folders and files as a tree. You can view and edit a file’s contents, copy paths, attach files to the chat, and more.
When to use it
Section titled “When to use it”Use it when you want to open and check files that the Agent created or changed. Also use it when you want to point the Agent to a specific file in a request.
Open and hide
Section titled “Open and hide”Press the Files button on the right side of the top of the screen to open the Files Pane. Press it again to hide the Pane. The button’s tooltip shows the shortcut, such as “Open Files (⌘⇧E)” and “Hide Files (⌘⇧E)”.
- The shortcut is ⌘⇧E (macOS) / Ctrl+Shift+E (Windows).
- There is no display condition. You can use it in any worktree.
- When you open a Pane with a button or a shortcut, the Pane that was open closes.
- Drag the left edge of the Pane to change its width.
Open a file
Section titled “Open a file”Press a folder row to expand it, and press a file row to open a screen that shows its contents.
Press “Open folder” at the top of the Pane to open the worktree’s folder in Finder (File Explorer on Windows). Press “Reload” to get the tree again.

View and edit the contents
Section titled “View and edit the contents”On the screen that shows the contents, press “Edit” to edit them. While there are edits, “Unsaved” appears next to the file name. Press “Save” or ⌘S (macOS) / Ctrl+S (Windows) to save.
- Content larger than 1 MiB cannot be saved.
- If the file was changed outside the app while it was open, a confirmation asking whether to overwrite it appears before saving.
- If you press “Cancel” or “Close” while there are unsaved edits, a confirmation asking whether to discard the changes appears.
- “Edit” and the font size buttons (“A−” and “A+”) appear for files other than images. You can change the font size from 10px to 32px.
- Markdown files (files with the .md or .markdown extension) are shown formatted. Press “Show source” to switch to the source, and “Show formatted” to switch back to the formatted view. These buttons appear only for Markdown files.

Right-click menu
Section titled “Right-click menu”Right-click a row in the tree to show a menu. The menu items are as follows.
- “Open with Default App”: Opens the file with the OS’s default app. A confirmation appears for files that may be executed.
- “Preview”: Appears only for HTML files. Shows the file in the Browser Pane.
- “Attach to Chat”: Attaches the file to the chat input. You cannot choose it while the Agent is starting, while the worktree is being removed, or while the conversation is being compacted.
- “Show in Finder” (“Show in File Explorer” on Windows): Opens the location of the file or folder.
- “Copy Path” and “Copy Relative Path”: Copy the path of the file or folder. The relative path is the path from the worktree’s folder.
- “Delete”: Deletes the file. A confirmation appears, and the deleted file is moved to the Trash. You cannot choose it while the Agent is running.
“Open with Default App”, “Preview”, “Attach to Chat”, and “Delete” appear only for file rows.
You can also attach a file by dragging its row to the chat. For attachments, see Attachments.