Find and open a file
Browse folders or search by file name, path, or content. Workspace search respects.gitignore.
Files referenced in an agent reply or diff open at the relevant location. Images open as image previews. Supported documents open in the document viewer.
Edit text
Open a text file and edit it directly. The editor saves changes automatically and updates the workspace diff. If another tool or agent changes the file on disk while you are editing, Mains reports the conflict so you can choose how to resolve it. A stale editor buffer does not silently overwrite the newer file.Add code to a message
Select code and choose Add selection to chat, or use the default editor shortcut⌘L.
You can also select files through @ to attach them to the composer. Combine code with an issue, review comment, or screenshot to explain the task.
