When an agent modifies files in your workspace, Mains captures every change and presents them in a built-in diff viewer. You can review exactly what was added, removed, or modified — then decide what to keep, discard, or edit before syncing with your repository.Documentation Index
Fetch the complete documentation index at: https://docs.mains.dev/llms.txt
Use this file to discover all available pages before exploring further.
Reviewing Changes
After an agent session completes work, open the diff viewer to see all modified files. Changes are displayed in a unified diff format with line-by-line highlighting:- Green lines — newly added code
- Red lines — removed code
- File list — all changed files in a sidebar, grouped by directory
Actions
The diff viewer guides you through the steps to get your changes merged:| Action | Description |
|---|---|
| Accept | Keep the change as-is |
| Discard | Revert the file to its original state |
| Commit | Commit staged changes with a generated or custom message |
| Push | Push commits to the remote branch |
| Create PR | Open a pull request directly from the diff viewer |
